Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -6,6 +6,7 @@ from pydantic import BaseModel
|
|
| 6 |
llm = AutoModelForCausalLM.from_pretrained("mistral-7b-instruct-v0.2.Q4_K_M.gguf",
|
| 7 |
model_type='mistral',
|
| 8 |
max_new_tokens = 2048,
|
|
|
|
| 9 |
threads = 3,
|
| 10 |
)
|
| 11 |
|
|
|
|
| 6 |
llm = AutoModelForCausalLM.from_pretrained("mistral-7b-instruct-v0.2.Q4_K_M.gguf",
|
| 7 |
model_type='mistral',
|
| 8 |
max_new_tokens = 2048,
|
| 9 |
+
max_context_length = 1024,
|
| 10 |
threads = 3,
|
| 11 |
)
|
| 12 |
|