asadsandhu commited on
Commit
a2cbc8f
·
1 Parent(s): b4c917d

Updated code.

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -30,6 +30,8 @@ bnb_config = BitsAndBytesConfig(
30
  )
31
 
32
  tokenizer = AutoTokenizer.from_pretrained(model_id)
 
 
33
  generation_model = AutoModelForCausalLM.from_pretrained(
34
  model_id,
35
  torch_dtype=torch.float16,
 
30
  )
31
 
32
  tokenizer = AutoTokenizer.from_pretrained(model_id)
33
+ tokenizer.pad_token = tokenizer.eos_token
34
+ tokenizer.save_pretrained("fixed_tokenizer")
35
  generation_model = AutoModelForCausalLM.from_pretrained(
36
  model_id,
37
  torch_dtype=torch.float16,