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
ac2f19b9
Commit
ac2f19b9
authored
Jan 19, 2024
by
lintangsutawika
Browse files
add trust_remote_code as default
parent
b93c3bcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lm_eval/api/task.py
lm_eval/api/task.py
+2
-0
No files found.
lm_eval/api/task.py
View file @
ac2f19b9
...
...
@@ -111,6 +111,8 @@ class TaskConfig(dict):
}
# TODO: how to make TaskConfigs be de- and re-serializable, even when using the !function constructor?
if
self
.
dataset_kwargs
is
None
:
self
.
dataset_kwargs
=
{
"trust_remote_code"
:
True
}
def
__getitem__
(
self
,
item
):
return
getattr
(
self
,
item
)
...
...
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