Update agent.py
Browse files
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.
|
75 |
-
"top_p":
|
|
|
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",
|
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
|