Skip to content

[Bug]: cannot import name 'PretrainedConfig' from partially initialized module 'transformers.configuration_utils' #68

@vincentyan2023

Description

@vincentyan2023

Your current environment

The output of python collect_env.py

raise the error:
ImportError: cannot import name 'PretrainedConfig' from partially initialized module 'transformers.configuration_utils' (most likely due to a circular import)

Your output of `python collect_env.py` here

version : 1Cat-vLLM-1.0.0

when run :

python -m vllm.entrypoints.openai.api_server
--model /home/yan/Model/qwen3.6-27b
--served-model-name qwen3.6-27b-awq-mtp
--trust-remote-code
--tensor-parallel-size 1
--enable-auto-tool-choice
--tool-call-parser qwen3_coder
--speculative-config '{"method":"mtp","num_speculative_tokens":2}'
--host 0.0.0.0
--port 8765

🐛 Describe the bug

cannot import name 'PretrainedConfig' from partially initialized module 'transformers.configuration_utils'

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions