Skip to content

Commit

Permalink
Tokenizer trust remote code
Browse files Browse the repository at this point in the history
  • Loading branch information
BobaZooba committed Nov 17, 2023
1 parent a1b50f0 commit 99ad6ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/xllm/core/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ def build_tokenizer(config: Config, use_fast: Optional[bool] = None) -> PreTrain
kwargs["use_fast"] = use_fast

tokenizer = AutoTokenizer.from_pretrained(
pretrained_model_name_or_path=config.correct_tokenizer_name_or_path, **kwargs
pretrained_model_name_or_path=config.correct_tokenizer_name_or_path,
trust_remote_code=config.trust_remote_code,
**kwargs,
)

if tokenizer.pad_token is None:
Expand Down

0 comments on commit 99ad6ec

Please sign in to comment.