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
f4902e06
Commit
f4902e06
authored
May 08, 2024
by
Konrad
Browse files
tokenizer attribute check
parent
62df55d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+1
-1
No files found.
lm_eval/evaluator.py
View file @
f4902e06
...
@@ -370,7 +370,7 @@ def evaluate(
...
@@ -370,7 +370,7 @@ def evaluate(
cache_requests
=
cache_requests
,
cache_requests
=
cache_requests
,
rewrite_requests_cache
=
rewrite_requests_cache
,
rewrite_requests_cache
=
rewrite_requests_cache
,
apply_chat_template
=
apply_chat_template
,
apply_chat_template
=
apply_chat_template
,
tokenizer
=
lm
.
tokenizer
,
tokenizer
=
lm
.
tokenizer
if
hasattr
(
lm
,
"tokenizer"
)
else
None
,
)
)
eval_logger
.
debug
(
eval_logger
.
debug
(
f
"Task:
{
task_output
.
task_name
}
; number of requests on this rank:
{
len
(
task
.
instances
)
}
"
f
"Task:
{
task_output
.
task_name
}
; number of requests on this rank:
{
len
(
task
.
instances
)
}
"
...
...
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