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