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
495d50bf
Unverified
Commit
495d50bf
authored
Feb 27, 2024
by
Hailey Schoelkopf
Committed by
GitHub
Feb 27, 2024
Browse files
Update lm_eval/models/huggingface.py
Co-authored-by:
Daniel Furman
<
dryanfurman@gmail.com
>
parent
37db34cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/models/huggingface.py
lm_eval/models/huggingface.py
+1
-1
No files found.
lm_eval/models/huggingface.py
View file @
495d50bf
...
@@ -1076,7 +1076,7 @@ class HFLM(LM):
...
@@ -1076,7 +1076,7 @@ class HFLM(LM):
def
generate_until
(
self
,
requests
:
List
[
Instance
])
->
List
[
str
]:
def
generate_until
(
self
,
requests
:
List
[
Instance
])
->
List
[
str
]:
if
self
.
use_chat_template
:
if
self
.
use_chat_template
:
print
(
f
"First element before prompt formatting...
\n
{
requests
[
0
].
args
}
"
)
print
(
f
"First element before prompt formatting...
\n
{
requests
[
0
].
args
}
"
)
requests
=
self
.
tok
_chat_template
(
requests
)
requests
=
self
.
wrap
_chat_template
(
requests
)
print
(
f
"First element after prompt formatting...
\n
{
requests
[
0
].
args
}
"
)
print
(
f
"First element after prompt formatting...
\n
{
requests
[
0
].
args
}
"
)
res
=
[]
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