Skip to content

[Bug] 基于https://github.com/InternLM/lmdeploy/pull/4320 构建Docker Image,启动GLM-4.7-Flash依然报错 #4329

@simonjhy

Description

@simonjhy

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

我使用最新版代码,包含了#4320 的修改,在本地构建了Docker image,但是启动的时候依然报下面的错误。这里面除了需要升级transformer之外,还有哪些地方需要在Dockerfile中需要更新?

You are using a model of type glm4_moe_lite to instantiate a model of type . This is not supported for all configurations of models and can yield errors.
2026-02-06 03:02:50,837 - lmdeploy - WARNING - transformers.py:22 - LMDeploy requires transformers version: [4.33.0 ~ 4.57.3], but found version: 4.57.6
2026-02-06 03:02:50,842 - lmdeploy - ERROR - base.py:55 - ValueError: The checkpoint you are trying to load has model type glm4_moe_lite but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

Reproduction

在lmdeploy中的源码目录中,使用docker目录下的默认Dockerfile执行构建本地的docker image,然后加在glm-4.7

Environment

ubuntu 22.04
glm-4.7-flash

Error traceback

You are using a model of type glm4_moe_lite to instantiate a model of type . This is not supported for all configurations of models and can yield errors.
2026-02-06 03:02:50,837 - lmdeploy - WARNING - transformers.py:22 - LMDeploy requires transformers version: [4.33.0 ~ 4.57.3], but found version: 4.57.6
2026-02-06 03:02:50,842 - lmdeploy - ERROR - base.py:55 - ValueError: The checkpoint you are trying to load has model type glm4_moe_lite but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

Metadata

Metadata

Assignees

No one assigned

    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