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
137b5423
Commit
137b5423
authored
Jun 26, 2024
by
Nathan Habib
Browse files
:Revert "batch commit"
This reverts commit
d859d1ca
.
parent
d859d1ca
Changes
41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
tests/models/test_vllm.py
tests/models/test_vllm.py
+2
-3
No files found.
tests/models/test_vllm.py
View file @
137b5423
from
typing
import
List
import
pytest
import
torch
from
lm_eval
import
tasks
from
lm_eval.api.instance
import
Instance
...
...
@@ -11,7 +10,7 @@ task_manager = tasks.TaskManager()
@
pytest
.
mark
.
skip
(
reason
=
"requires CUDA"
)
class
T
EST
_VLLM
:
class
T
est
_VLLM
:
vllm
=
pytest
.
importorskip
(
"vllm"
)
try
:
from
lm_eval.models.vllm_causallms
import
VLLM
...
...
@@ -19,7 +18,7 @@ class TEST_VLLM:
LM
=
VLLM
(
pretrained
=
"EleutherAI/pythia-70m"
)
except
ModuleNotFoundError
:
pass
torch
.
use_deterministic_algorithms
(
True
)
#
torch.use_deterministic_algorithms(True)
task_list
=
task_manager
.
load_task_or_group
([
"arc_easy"
,
"gsm8k"
,
"wikitext"
])
multiple_choice_task
=
task_list
[
"arc_easy"
]
# type: ignore
multiple_choice_task
.
build_all_requests
(
limit
=
10
,
rank
=
0
,
world_size
=
1
)
...
...
Prev
1
2
3
Next
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