-
Notifications
You must be signed in to change notification settings - Fork 31.5k
Closed
Labels
Description
System Info
With v4.57.2,
Who can help?
I can't use local saved model(Qwen3-vl-2b).
File "/opt/venv/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 2419, in _from_pretrained
if _is_local and _config.model_type not in [
AttributeError: 'dict' object has no attribute 'model_type'
So I changed below and works.
if _is_local and _config.get("model_type") not in [
Information
- The official example scripts
- My own modified scripts
Tasks
- An officially supported task in the
examplesfolder (such as GLUE/SQuAD, ...) - My own task or dataset (give details below)
Reproduction
- Load any model by any style (hf download, git etc)
- Use AutoProcessor.from_pretrained(download_folder)
- Error!
Expected behavior
Just code is wrong.
ultmaster, duanshengliu, yuanyehome and vmanvs