Skip to content

[Bug] Bug when deploy Qwen3-VL-32B-Instruct #4098

Closed

Description

@yangyuxaing

Checklist

  • 1. I have searched related issues but cannot get the expected help.
  • 2. The bug has not been fixed in the latest version.
  • 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug

There is an error when deploy Qwen3-VL-32B-Instruct
lmdeploy - ERROR - base.py:55 - AttributeError: 'Qwen3VLConfig' object has no attribute 'hidden_size'
2025-11-03 21:40:56,729 - lmdeploy - ERROR - base.py:56 - check failed!
("Checking failed with error 'Qwen3VLConfig' object has no attribute 'hidden_size'", 'Please send issue to LMDeploy with error logs.')

Reproduction

model_path = "Qwen/Qwen2.5-VL-32B-Instruct" ; the development is same as the Official Documentation

Environment

Environment development is same as the Official Documentation

Error traceback

Activity

  1. self-assigned this
    on Nov 4, 2025
  2. CUHKSZzxy commented on Nov 4, 2025

    @CUHKSZzxy
    Collaborator

    What's your LMDeploy version? The PR for qwen3 vl support has not been merged yet. You may try the following PR and see whether it works or not

  3. yangyuxaing commented on Nov 4, 2025

    @yangyuxaing
    Author

    Thank you for responding to me.

    1. My lmdeploy version is 0.10.2. The installation instructions are:
      conda create -n lmdeploy python=3.10 -y
      conda activate lmdeploy
      pip install lmdeploy
      export LMDEPLOY_VERSION=0.10.2
      export PYTHON_VERSION=310
      pip install https://github.com/InternLM/lmdeploy/releases/download/v${LMDEPLOY_VERSION}/lmdeploy-${LMDEPLOY_VERSION}+cu128-cp${PYTHON_VERSION}-cp${PYTHON_VERSION}-manylinux2014_x86_64.whl --extra-index-url https://download.pytorch.org/whl/cu128
    2. Some environment settings: PyTorch version: 2.8.0+cu128
      PyTorch built with CUDA: 12.8
      cuDNN version: 91002
      GPU: NVIDIA GeForce RTX 5090
    3. The same codes are working for Qwen2.5-VL-32B-Instruct, but still do not work for Qwen3-VL-32B-Instruct.
  4. CUHKSZzxy commented on Nov 4, 2025

    @CUHKSZzxy
    Collaborator

    Thank you for responding to me.

    1. My lmdeploy version is 0.10.2. The installation instructions are:
      conda create -n lmdeploy python=3.10 -y
      conda activate lmdeploy
      pip install lmdeploy
      export LMDEPLOY_VERSION=0.10.2
      export PYTHON_VERSION=310
      pip install https://github.com/InternLM/lmdeploy/releases/download/v${LMDEPLOY_VERSION}/lmdeploy-${LMDEPLOY_VERSION}+cu128-cp${PYTHON_VERSION}-cp${PYTHON_VERSION}-manylinux2014_x86_64.whl --extra-index-url https://download.pytorch.org/whl/cu128
    2. Some environment settings: PyTorch version: 2.8.0+cu128
      PyTorch built with CUDA: 12.8
      cuDNN version: 91002
      GPU: NVIDIA GeForce RTX 5090
    3. The same codes are working for Qwen2.5-VL-32B-Instruct, but still do not work for Qwen3-VL-32B-Instruct.

    That makes sense, lmdeploy v0.10.2 does not support qwen3-vl yet, while qwen2.5 vl has been supported.
    You can try the PR I mentioned above, which contains the code for qwen3-vl.

  5. yangyuxaing commented on Nov 4, 2025

    @yangyuxaing
    Author

    Thank you for your help, but it still doesn't work. There is a CUDA kernel compilation error. I suspect it might be related to the use of RTX 5090 GPUs. The instructions I use are:
    pip uninstall lmdeploy -y
    git clone https://github.com/InternLM/lmdeploy.git
    cd lmdeploy
    git fetch origin pull/4093/head:qwen3vl
    git checkout qwen3vl
    pip install -r requirements.txt
    pip install -r requirements/build.txt
    pip install -e .

  6. CUHKSZzxy commented on Nov 4, 2025

    @CUHKSZzxy
    Collaborator

    Thank you for your help, but it still doesn't work. There is a CUDA kernel compilation error. I suspect it might be related to the use of RTX 5090 GPUs. The instructions I use are: pip uninstall lmdeploy -y git clone https://github.com/InternLM/lmdeploy.git cd lmdeploy git fetch origin pull/4093/head:qwen3vl git checkout qwen3vl pip install -r requirements.txt pip install -r requirements/build.txt pip install -e .

    Are there any error logs? For qwen3 vl series, we currently support it in the pytorch backend, so we can use it without any compilations.

    You can use the following commands, where DISABLE_TURBOMIND=1 pip install -e . should be fine (will disable turbomind backend-related compilations). And also, no need to pip install requirements separately.

    pip uninstall lmdeploy -y
    git clone https://github.com/InternLM/lmdeploy.git
    cd lmdeploy
    git fetch origin pull/4093/head:qwen3vl
    git checkout qwen3vl
    DISABLE_TURBOMIND=1 pip install -e .
    
  7. yangyuxaing commented on Nov 4, 2025

    @yangyuxaing
    Author

    Thank you so much! I have solved this issue by following your instructions. I really appreciate your help.

  8. CUHKSZzxy commented on Nov 4, 2025

    @CUHKSZzxy
    Collaborator

    Thank you so much! I have solved this issue by following your instructions. I really appreciate your help.

    You're welcome, feel free to post issues if you encounter any other problems. qwen3-vl PR will be merged into main branch in the next release, and later you may simply use `pip install lmdepoy'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions