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
d7734d19
Unverified
Commit
d7734d19
authored
Sep 24, 2024
by
Amine Elhattami
Committed by
GitHub
Sep 24, 2024
Browse files
Fixed dummy model (#2339)
parent
9a092f37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/models/dummy.py
lm_eval/models/dummy.py
+2
-2
No files found.
lm_eval/models/dummy.py
View file @
d7734d19
...
...
@@ -26,9 +26,9 @@ class DummyLM(LM):
def
generate_until
(
self
,
requests
,
disable_tqdm
:
bool
=
False
):
res
=
[]
for
ctx
,
_
in
tqdm
(
requests
,
disable
=
disable_tqdm
):
for
request
in
tqdm
(
requests
,
disable
=
disable_tqdm
):
res
.
append
(
"lol"
)
assert
ctx
.
strip
()
!=
""
assert
request
.
arguments
[
0
]
.
strip
()
!=
""
return
res
...
...
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