Skip to content

support checkpoint-engine when use lmdeploy - #2339

Open
PengchengShi00 wants to merge 1 commit into
InternLM:mainfrom
PengchengShi00:add_lmd_ce
Open

PengchengShi00 wants to merge 1 commit into
InternLM:mainfrom
PengchengShi00:add_lmd_ce

Conversation

@PengchengShi00

@PengchengShi00 PengchengShi00 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Checkpoint Engine P2P 使用说明

  1. 安装 P2P 依赖:

pip install 'checkpoint-engine[p2p]'

该选项会安装 Mooncake Transfer Engine,用于跨 rank 的 RDMA 权重传输。官方安装说明

  1. 使用包含指定修复的最新 Checkpoint Engine 代码:

export CHECKPOINT_ENGINE_DIR=/your_dir/checkpoint-engine
export PYTHONPATH="${CHECKPOINT_ENGINE_DIR}:${PYTHONPATH:-}"

请确保代码包含修复提交 https://github.com/MoonshotAI/checkpoint-engine/pull/107。

  1. 启动任务前指定 RDMA 网卡:

export NCCL_IB_HCA==mlx5_0,mlx5_1,mlx5_2,mlx5_3,mlx5_4,mlx5_5,mlx5_6,mlx5_7

注意这里没有写错就是两个等号。

提交 rjob 任务时,需要开启 host network:

--host-network=true

  1. config配置文件中,请在RolloutConfig 中增加 weight_transport_type="checkpoint_engine"

tests/rl/test_qwen35_vl_moe_recover_e2e.py 用于验证推理 worker 异常退出后能够被重新拉起并恢复权重。该测试默认添加了 @unittest.skip,因为 CI 环境未提供 Checkpoint Engine P2P、Mooncake 和 RDMA
运行条件。手动运行前请删除该 skip 装饰器。

本pr提交时已 测试 tests/rl/test_qwen35_vl_moe_recover_e2e.py 能拉起挂掉的推理引擎。且使用CE进行共卡训练时mismatch/mismatch_k3_kl 指标与IPC相近

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant