RTannous commited on
Commit
651930d
·
verified ·
1 Parent(s): 715eaa3

Update model type in config.json

Browse files

The model type is currently set to qwen2_5_vl_text, which causes a ModuleNotFoundError: No module named 'transformers.models.qwen2_5_vl_text' when loading any variant of Qwen2.5-7b-Instruct available in the Unsloth mapper. The incorrect model type qwen2_5_vl_text gets passed to the model_types variable in the unsloth-zoo compiler, which then triggers the error when exec(f"import {model_location}", globals()) is executed.
![Screen Shot 2025-09-10 at 1.12.03 PM.png](https://cdn-uploads.huggingface.co/production/uploads/6420a84cdad7e91036470df9/0o97KpH_oSAd7YWnBw6eS.png)
Change the model type from qwen2_5_vl_text to qwen2_5_vl to match the correct Transformers module path.

Files changed (1) hide show
  1. config.json +1 -1
config.json CHANGED
@@ -159,7 +159,7 @@
159
  ],
160
  "max_position_embeddings": 128000,
161
  "max_window_layers": 28,
162
- "model_type": "qwen2_5_vl_text",
163
  "num_attention_heads": 28,
164
  "num_hidden_layers": 28,
165
  "num_key_value_heads": 4,
 
159
  ],
160
  "max_position_embeddings": 128000,
161
  "max_window_layers": 28,
162
+ "model_type": "qwen2_5_vl",
163
  "num_attention_heads": 28,
164
  "num_hidden_layers": 28,
165
  "num_key_value_heads": 4,