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
7fa49671
Commit
7fa49671
authored
Nov 27, 2023
by
baberabb
Browse files
fix precommint
parent
05326b04
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 @
7fa49671
...
@@ -43,7 +43,7 @@ class VLLM(LM):
...
@@ -43,7 +43,7 @@ class VLLM(LM):
try
:
try
:
import
vllm
import
vllm
except
ModuleNotFoundError
:
except
ModuleNotFoundError
:
raise
Exception
(
raise
Exception
(
"attempted to use 'vllm' LM type, but package `vllm` is not installed.
\
"attempted to use 'vllm' LM type, but package `vllm` is not installed.
\
please install vllm via `pip install lm-eval[vllm]` or `pip install -e .[vllm]`"
,
please install vllm via `pip install lm-eval[vllm]` or `pip install -e .[vllm]`"
,
...
@@ -60,7 +60,7 @@ please install vllm via `pip install lm-eval[vllm]` or `pip install -e .[vllm]`"
...
@@ -60,7 +60,7 @@ please install vllm via `pip install lm-eval[vllm]` or `pip install -e .[vllm]`"
tensor_parallel_size
=
int
(
tensor_parallel_size
),
tensor_parallel_size
=
int
(
tensor_parallel_size
),
swap_space
=
int
(
swap_space
),
swap_space
=
int
(
swap_space
),
quantization
=
quantization
,
quantization
=
quantization
,
seed
=
seed
,
seed
=
int
(
seed
)
,
)
)
self
.
tokenizer
=
self
.
model
.
get_tokenizer
()
self
.
tokenizer
=
self
.
model
.
get_tokenizer
()
self
.
batch_size
=
batch_size
self
.
batch_size
=
batch_size
...
...
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