eswardivi commited on
Commit
7115ad7
1 Parent(s): ea9c0d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- tokenizer.eos_token_id,
26
- tokenizer.convert_tokens_to_ids("<|eot_id|>")
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():