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
af884028
Commit
af884028
authored
Nov 23, 2023
by
baberabb
Browse files
fix tensor parallel
parent
5ba54539
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/models/vllm_causallms.py
lm_eval/models/vllm_causallms.py
+2
-2
No files found.
lm_eval/models/vllm_causallms.py
View file @
af884028
...
...
@@ -37,7 +37,7 @@ class VLLM(LM):
dtype
=
dtype
,
tokenizer_mode
=
tokenizer_mode
,
trust_remote_code
=
trust_remote_code
,
tensor_parallel_size
=
tensor_parallel_size
,
tensor_parallel_size
=
int
(
tensor_parallel_size
)
,
swap_space
=
swap_space
,
quantization
=
quantization
,
)
...
...
@@ -87,7 +87,7 @@ class VLLM(LM):
generate
:
bool
=
False
,
max_tokens
:
int
=
None
,
stop
:
Optional
[
List
[
str
]]
=
None
,
use_tqdm
=
Fals
e
,
use_tqdm
=
Tru
e
,
**
kwargs
,
):
if
"do_sample"
in
kwargs
.
keys
():
...
...
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