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
f6befdb9
Unverified
Commit
f6befdb9
authored
Feb 26, 2024
by
Hailey Schoelkopf
Committed by
GitHub
Feb 26, 2024
Browse files
Revert "setting trust_remote_code (#1467)" (#1474)
This reverts commit
c1145dfd
.
parent
4c51111c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
lm_eval/models/huggingface.py
lm_eval/models/huggingface.py
+1
-1
lm_eval/tasks/asdiv/default.yaml
lm_eval/tasks/asdiv/default.yaml
+0
-2
No files found.
lm_eval/models/huggingface.py
View file @
f6befdb9
...
...
@@ -96,7 +96,7 @@ class HFLM(TemplateLM):
dtype
:
Optional
[
Union
[
str
,
torch
.
dtype
]]
=
"auto"
,
batch_size
:
Optional
[
Union
[
int
,
str
]]
=
1
,
max_batch_size
:
Optional
[
int
]
=
64
,
trust_remote_code
:
Optional
[
bool
]
=
Tru
e
,
trust_remote_code
:
Optional
[
bool
]
=
Fals
e
,
use_fast_tokenizer
:
Optional
[
bool
]
=
True
,
add_bos_token
:
Optional
[
bool
]
=
False
,
# arguments used for splitting a model across GPUs naively.
...
...
lm_eval/tasks/asdiv/default.yaml
View file @
f6befdb9
...
...
@@ -12,5 +12,3 @@ metric_list:
higher_is_better
:
true
metadata
:
version
:
1.0
dataset_kwargs
:
trust_remote_code
:
true
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