Coool2 commited on
Commit
a60285b
·
1 Parent(s): 7f162ff

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
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="auto",
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
  )