$ mlx_lm.generate --model mlx-community/Ministral-3-3B-Reasoning-2512-4bit --prompt "Hello"
AttributeError: 'list' object has no attribute 'keys'
The model's tokenizer_config.json has extra_special_tokens as a list, but transformers v4.x expects a dict. transformers v5 changes this field to a list, and some models already use the new format.
Upgrading to transformers v5 (which requires some migration work) would resolve this issue.
The model's
tokenizer_config.jsonhasextra_special_tokensas a list, but transformers v4.x expects a dict. transformers v5 changes this field to a list, and some models already use the new format.Upgrading to transformers v5 (which requires some migration work) would resolve this issue.