DR-Rakshitha commited on
Commit
1127261
·
1 Parent(s): 43fbf63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -10,6 +10,10 @@ from transformers import (
10
  logging,
11
  )
12
 
 
 
 
 
13
  # Specify the local path to the downloaded model file
14
  model_path = "pytorch_model-00001-of-00002.bin"
15
 
 
10
  logging,
11
  )
12
 
13
+ tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
14
+ tokenizer.pad_token = tokenizer.eos_token
15
+ tokenizer.padding_side = "right" # Fix weird overflow issue with fp16 training
16
+
17
  # Specify the local path to the downloaded model file
18
  model_path = "pytorch_model-00001-of-00002.bin"
19