Coool2 commited on
Commit
937bdc4
·
verified ·
1 Parent(s): cd54eb1

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +4 -3
agent.py CHANGED
@@ -71,15 +71,16 @@ proj_llm = HuggingFaceLLM(
71
  max_new_tokens = 16000,
72
  model_kwargs={"torch_dtype": "auto"},
73
  generate_kwargs={
74
- "temperature": 0.1,
75
- "top_p": 1.0
 
76
  }
77
  )
78
 
79
  code_llm = HuggingFaceLLM(
80
  model_name="Qwen/Qwen2.5-Coder-3B-Instruct",
81
  tokenizer_name="Qwen/Qwen2.5-Coder-3B-Instruct",
82
- device_map= "auto", # Specify device here instead
83
  model_kwargs={
84
  "torch_dtype": "auto"},
85
  # Set generation parameters for precise, non-creative code output
 
71
  max_new_tokens = 16000,
72
  model_kwargs={"torch_dtype": "auto"},
73
  generate_kwargs={
74
+ "temperature": 0.6,
75
+ "top_p": 0.95,
76
+ "top_k" = 20
77
  }
78
  )
79
 
80
  code_llm = HuggingFaceLLM(
81
  model_name="Qwen/Qwen2.5-Coder-3B-Instruct",
82
  tokenizer_name="Qwen/Qwen2.5-Coder-3B-Instruct",
83
+ device_map= "auto",
84
  model_kwargs={
85
  "torch_dtype": "auto"},
86
  # Set generation parameters for precise, non-creative code output