Spaces:
Running
on
Zero
Running
on
Zero
fix
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ h1 {
|
|
54 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
55 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
56 |
terminators = [
|
57 |
-
tokenizer.
|
58 |
tokenizer.convert_tokens_to_ids("<|eot_id|>")
|
59 |
]
|
60 |
|
|
|
54 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
55 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
56 |
terminators = [
|
57 |
+
tokenizer.convert_tokens_to_ids("<|end_of_text|>"),
|
58 |
tokenizer.convert_tokens_to_ids("<|eot_id|>")
|
59 |
]
|
60 |
|