mitsu-koh commited on
Commit
c2953d2
1 Parent(s): 8bfa4bc
Files changed (1) hide show
  1. app.py +1 -1
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.eos_token_id,
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