Spaces:
Sleeping
Sleeping
Commit
·
f3e59d7
1
Parent(s):
0f32de6
Llama 3.1 8B
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
6 |
import torch
|
7 |
|
8 |
# Load model and tokenizer
|
9 |
-
model_name = "meta-llama/Llama-
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
11 |
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, device_map="auto")
|
12 |
|
|
|
6 |
import torch
|
7 |
|
8 |
# Load model and tokenizer
|
9 |
+
model_name = "meta-llama/Meta-Llama-3.1-8B-Instruct"
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
11 |
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, device_map="auto")
|
12 |
|