Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,8 @@ def chat_llama3_8b(message: str,
|
|
138 |
input_ids = tokenizer.apply_chat_template(conversation, return_tensors="pt").to(model.device)
|
139 |
|
140 |
streamer = TextIteratorStreamer(tokenizer, timeout=10.0, skip_prompt=True, skip_special_tokens=True)
|
141 |
-
|
|
|
142 |
generate_kwargs = dict(
|
143 |
input_ids= input_ids,
|
144 |
streamer=streamer,
|
|
|
138 |
input_ids = tokenizer.apply_chat_template(conversation, return_tensors="pt").to(model.device)
|
139 |
|
140 |
streamer = TextIteratorStreamer(tokenizer, timeout=10.0, skip_prompt=True, skip_special_tokens=True)
|
141 |
+
print(max_new_tokens)
|
142 |
+
max_new_tokens=4096
|
143 |
generate_kwargs = dict(
|
144 |
input_ids= input_ids,
|
145 |
streamer=streamer,
|