fix_tokenizer_snapshot_download_bug (#4493)
This commit is contained in:
parent
dd1a50a8bc
commit
6ad58f42c5
@ -79,7 +79,7 @@ def get_tokenizer(
|
|||||||
revision=revision,
|
revision=revision,
|
||||||
local_files_only=huggingface_hub.constants.HF_HUB_OFFLINE,
|
local_files_only=huggingface_hub.constants.HF_HUB_OFFLINE,
|
||||||
# Ignore weights - we only need the tokenizer.
|
# Ignore weights - we only need the tokenizer.
|
||||||
ignore_file_pattern=["*.pt", "*.safetensors", "*.bin"])
|
ignore_file_pattern=[".*.pt", ".*.safetensors", ".*.bin"])
|
||||||
tokenizer_name = tokenizer_path
|
tokenizer_name = tokenizer_path
|
||||||
|
|
||||||
if tokenizer_mode == "slow":
|
if tokenizer_mode == "slow":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user