Error 404 when downloading the tokenizer

When I try to execute the following lines of code:

quantization_config = BitsAndBytesConfig(load_in_8bit=True)
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map=“auto”,
quantization_config=quantization_config
)

The tokenizer raises a 404 Client Error: Not Found, specifically:
“Entry Not Found for URL: https://huggingface.co/api/models/Qwen/Qwen2.5-7B-Instruct/tree/main/additional_chat_templates?recursive=false&expand=false.
additional_chat_templates does not exist on ‘main’.”

The libraries I am using are:

  • tokenizers == 0.21.2

  • transformers == 4.53.3

  • bitsandbytes == 0.48.1

Is there anything I can do to fix this issue? Could it be related to a version mismatch? Any advice would be appreciated.

1 Like

Seems a resolved bug of Transformers. Try upgrade pip install -U transformers

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.