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
5ba54539
Commit
5ba54539
authored
Nov 23, 2023
by
baberabb
Browse files
fix imports
parent
ce164bb1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
lm_eval/models/__init__.py
lm_eval/models/__init__.py
+4
-1
lm_eval/models/vllm_causallms.py
lm_eval/models/vllm_causallms.py
+1
-3
No files found.
lm_eval/models/__init__.py
View file @
5ba54539
...
@@ -4,7 +4,10 @@ from . import textsynth
...
@@ -4,7 +4,10 @@ from . import textsynth
from
.
import
dummy
from
.
import
dummy
from
.
import
anthropic_llms
from
.
import
anthropic_llms
from
.
import
gguf
from
.
import
gguf
from
.
import
vllm_causallms
try
:
from
.
import
vllm_causallms
except
ModuleNotFoundError
:
pass
# TODO: implement __all__
# TODO: implement __all__
lm_eval/models/vllm_causallms.py
View file @
5ba54539
...
@@ -7,8 +7,7 @@ import copy
...
@@ -7,8 +7,7 @@ import copy
from
tqdm
import
tqdm
from
tqdm
import
tqdm
from
lm_eval.api.registry
import
register_model
from
lm_eval.api.registry
import
register_model
from
lm_eval
import
utils
from
lm_eval
import
utils
from
vllm
import
LLM
,
SamplingParams
# flake8: noqa
@
register_model
(
"vllm"
)
@
register_model
(
"vllm"
)
...
@@ -30,7 +29,6 @@ class VLLM(LM):
...
@@ -30,7 +29,6 @@ class VLLM(LM):
max_length
:
int
=
None
,
max_length
:
int
=
None
,
):
):
super
().
__init__
()
super
().
__init__
()
from
vllm
import
LLM
,
SamplingParams
self
.
model
=
LLM
(
self
.
model
=
LLM
(
model
=
pretrained
,
model
=
pretrained
,
...
...
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