-
Notifications
You must be signed in to change notification settings - Fork 652
Description
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-flashError 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.