Spaces:
Configuration error
Configuration error
Update agent.py
Browse files
agent.py
CHANGED
@@ -207,7 +207,7 @@ def initialize_models(use_api_mode=False):
|
|
207 |
code_llm = HuggingFaceLLM(
|
208 |
model_name="Qwen/Qwen2.5-Coder-1.5B-Instruct",
|
209 |
tokenizer_name="Qwen/Qwen2.5-Coder-1.5B-Instruct",
|
210 |
-
device_map="
|
211 |
model_kwargs={"torch_dtype": "auto"},
|
212 |
generate_kwargs={"do_sample": False}
|
213 |
)
|
|
|
207 |
code_llm = HuggingFaceLLM(
|
208 |
model_name="Qwen/Qwen2.5-Coder-1.5B-Instruct",
|
209 |
tokenizer_name="Qwen/Qwen2.5-Coder-1.5B-Instruct",
|
210 |
+
device_map="cpu",
|
211 |
model_kwargs={"torch_dtype": "auto"},
|
212 |
generate_kwargs={"do_sample": False}
|
213 |
)
|