Spaces:
Runtime error
Runtime error
Update src/demo.py
Browse files- src/demo.py +1 -1
src/demo.py
CHANGED
@@ -22,7 +22,7 @@ type2dataset = {
|
|
22 |
|
23 |
model_id = "meta-llama/Llama-2-7b-chat-hf"
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_id, token=TOKEN)
|
25 |
-
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, token=TOKEN)
|
26 |
|
27 |
# type2dataset = {}
|
28 |
|
|
|
22 |
|
23 |
model_id = "meta-llama/Llama-2-7b-chat-hf"
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_id, token=TOKEN)
|
25 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, token=TOKEN).eval()
|
26 |
|
27 |
# type2dataset = {}
|
28 |
|