Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
c6b9aeeb
Unverified
Commit
c6b9aeeb
authored
Mar 20, 2025
by
Baber Abbasi
Committed by
GitHub
Mar 20, 2025
Browse files
[VLLM, SLANG] default temp=0.0 (#2819)
parent
110e65da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
lm_eval/models/sglang_causallms.py
lm_eval/models/sglang_causallms.py
+1
-0
lm_eval/models/vllm_causallms.py
lm_eval/models/vllm_causallms.py
+1
-0
No files found.
lm_eval/models/sglang_causallms.py
View file @
c6b9aeeb
...
...
@@ -512,6 +512,7 @@ class SGLangLM(TemplateLM):
@
staticmethod
def
modify_gen_kwargs
(
kwargs
:
dict
)
->
dict
:
# sampling_params
kwargs
[
"temperature"
]
=
kwargs
.
get
(
"temperature"
,
0.0
)
do_sample
=
kwargs
.
pop
(
"do_sample"
,
None
)
if
do_sample
is
False
and
"temperature"
not
in
kwargs
:
eval_logger
.
debug
(
...
...
lm_eval/models/vllm_causallms.py
View file @
c6b9aeeb
...
...
@@ -559,6 +559,7 @@ class VLLM(TemplateLM):
@
staticmethod
def
modify_gen_kwargs
(
kwargs
:
dict
)
->
dict
:
# sampling_params
kwargs
[
"temperature"
]
=
kwargs
.
get
(
"temperature"
,
0.0
)
do_sample
=
kwargs
.
pop
(
"do_sample"
,
None
)
if
do_sample
is
False
and
"temperature"
not
in
kwargs
:
eval_logger
.
debug
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment