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