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
c1145dfd
Unverified
Commit
c1145dfd
authored
Feb 26, 2024
by
Vicki Boykis
Committed by
GitHub
Feb 26, 2024
Browse files
setting trust_remote_code (#1467)
parent
d27c0c08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
lm_eval/models/huggingface.py
lm_eval/models/huggingface.py
+1
-1
lm_eval/tasks/asdiv/default.yaml
lm_eval/tasks/asdiv/default.yaml
+2
-0
No files found.
lm_eval/models/huggingface.py
View file @
c1145dfd
...
...
@@ -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
]
=
Fals
e
,
trust_remote_code
:
Optional
[
bool
]
=
Tru
e
,
use_fast_tokenizer
:
Optional
[
bool
]
=
True
,
# arguments used for splitting a model across GPUs naively.
# only used if `parallelize=True`.
...
...
lm_eval/tasks/asdiv/default.yaml
View file @
c1145dfd
...
...
@@ -12,3 +12,5 @@ metric_list:
higher_is_better
:
true
metadata
:
version
:
1.0
dataset_kwargs
:
trust_remote_code
:
true
gaoqiong
@gaoqiong
mentioned in commit
f6befdb9
·
Oct 16, 2025
mentioned in commit
f6befdb9
mentioned in commit f6befdb9ca9babbda9fda75854672b380d7e5aa2
Toggle commit list
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