Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
22 |
)
|
23 |
tok = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct", token=token)
|
24 |
terminators = [
|
25 |
-
|
26 |
-
|
27 |
]
|
28 |
|
29 |
if torch.cuda.is_available():
|
|
|
22 |
)
|
23 |
tok = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct", token=token)
|
24 |
terminators = [
|
25 |
+
tok.eos_token_id,
|
26 |
+
tok.convert_tokens_to_ids("<|eot_id|>")
|
27 |
]
|
28 |
|
29 |
if torch.cuda.is_available():
|