Update README.md
Browse files
README.md
CHANGED
@@ -32,4 +32,4 @@ messages = [
|
|
32 |
]
|
33 |
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
|
34 |
inputs = inputs.to("cuda")
|
35 |
-
generate_ids = model.generate(inputs, streamer=streamer)
|
|
|
32 |
]
|
33 |
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
|
34 |
inputs = inputs.to("cuda")
|
35 |
+
generate_ids = model.generate(inputs,max_length=2048, streamer=streamer)
|