Update README.md
Browse files
README.md
CHANGED
|
@@ -97,7 +97,7 @@ chat_prompt = tokenizer.apply_chat_template(
|
|
| 97 |
inputs = tokenizer(chat_prompt, return_tensors="pt")
|
| 98 |
inputs.to(device)
|
| 99 |
|
| 100 |
-
with torch.inference_mode:
|
| 101 |
generate_ids = model.generate(**inputs, max_length=500)
|
| 102 |
|
| 103 |
input_len = inputs['input_ids'].shape[1]
|
|
|
|
| 97 |
inputs = tokenizer(chat_prompt, return_tensors="pt")
|
| 98 |
inputs.to(device)
|
| 99 |
|
| 100 |
+
with torch.inference_mode():
|
| 101 |
generate_ids = model.generate(**inputs, max_length=500)
|
| 102 |
|
| 103 |
input_len = inputs['input_ids'].shape[1]
|