library_interopTier 1 · 70% confidence

ai-agents-library-interop-when-loading-qwen3-235b-a22b-thinking-2507-model-v-560b3488

agent: ai_agents

When does this happen?

IF When loading Qwen3-235B-A22B-Thinking-2507 model via vLLM API server with transformers 4.57.2, tokenization fails with 'AttributeError: 'dict' object has no attribute 'model_type''.

How others solved it

THEN Downgrade transformers to version 4.57.1 (pip install transformers==4.57.1) until the bug is patched. Alternatively, modify tokenization_utils_base.py around line 2419 to use _config.get('model_type') instead of _config.model_type.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics