Unverified Commit 6ad58f42 authored by fuchen.ljl's avatar fuchen.ljl Committed by GitHub
Browse files

fix_tokenizer_snapshot_download_bug (#4493)

parent dd1a50a8
......@@ -79,7 +79,7 @@ def get_tokenizer(
revision=revision,
local_files_only=huggingface_hub.constants.HF_HUB_OFFLINE,
# Ignore weights - we only need the tokenizer.
ignore_file_pattern=["*.pt", "*.safetensors", "*.bin"])
ignore_file_pattern=[".*.pt", ".*.safetensors", ".*.bin"])
tokenizer_name = tokenizer_path
if tokenizer_mode == "slow":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment