Spaces:
Sleeping
Sleeping
Commit
·
a2cbc8f
1
Parent(s):
b4c917d
Updated code.
Browse files
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,
|