Skip to content

Commit

Permalink
setting trust_remote_code (EleutherAI#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
veekaybee committed Feb 26, 2024
1 parent d27c0c0 commit c1145df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lm_eval/models/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(
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] = False,
trust_remote_code: Optional[bool] = True,
use_fast_tokenizer: Optional[bool] = True,
# arguments used for splitting a model across GPUs naively.
# only used if `parallelize=True`.
Expand Down
2 changes: 2 additions & 0 deletions lm_eval/tasks/asdiv/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ metric_list:
higher_is_better: true
metadata:
version: 1.0
dataset_kwargs:
trust_remote_code: true

0 comments on commit c1145df

Please sign in to comment.