fixed inf example
Browse files
README.md
CHANGED
@@ -137,7 +137,7 @@ inputs = tokenizer.apply_chat_template(
|
|
137 |
return_tensors="pt",
|
138 |
)
|
139 |
|
140 |
-
outputs = model.generate(**inputs.to(model.device), max_new_tokens=32768
|
141 |
outputs = tokenizer.batch_decode(outputs[:, inputs["input_ids"].shape[-1]:])
|
142 |
|
143 |
print(outputs[0])
|
|
|
137 |
return_tensors="pt",
|
138 |
)
|
139 |
|
140 |
+
outputs = model.generate(**inputs.to(model.device), max_new_tokens=32768)
|
141 |
outputs = tokenizer.batch_decode(outputs[:, inputs["input_ids"].shape[-1]:])
|
142 |
|
143 |
print(outputs[0])
|