Views
No views yet
pranjalsingh/alpaca-Llama-3.1-70B-Instruct-chatmeta-llama/Llama-3.1-70B-Instructpranjalsingh/alpaca-Llama-3.1-70B-Instruct-chat1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-70B-Instruct")
5tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-70B-Instruct")
6
7model = PeftModel.from_pretrained(base_model, "pranjalsingh/alpaca-Llama-3.1-70B-Instruct-chat")
8
9inputs = tokenizer("### Instruction: Explain quantum computing in simple terms.", return_tensors="pt").to(model.device)
10outputs = model.generate(**inputs, max_new_tokens=256)
11print(tokenizer.decode(outputs[0], skip_special_tokens=True))| Metric | Value |
|---|---|
| Eval Accuracy | 73.27% |
| Eval Loss | 1.02 |
| Perplexity | 2.79 |
| Evaluation Runtime | 20.97s |
| Samples Evaluated | 101 |
| Samples/Sec | 4.82 |
| Max Memory Used (GB) | 126.2 |
| Total Available Memory | 126.54 GB |
| Memory Allocated (GB) | 41.06 |
meta-llama/Llama-3.1-70B-Instruct| Parameter | Value |
|---|---|
| Compute Platform | Intel Gaudi3 |
| Cards Used | 8× HPU |
| Training Duration | ~2 Epochs |
| Region | [More info needed] |
| Emission Estimate | [Use MLCO2 to calculate] |