Skip to content

Commit b28574b

Browse files
authored
add trust_remote_code to tokenizer loading
some tokenizers require running local code hence the need for trust_remote_code argument
1 parent c3b9717 commit b28574b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def main():
183183
tokenizer = AutoTokenizer.from_pretrained(
184184
args.model,
185185
revision=args.revision,
186+
trust_remote_code=args.trust_remote_code,
186187
use_auth_token=args.use_auth_token,
187188
truncation_side="left",
188189
)

0 commit comments

Comments
 (0)