Repository navigation
support checkpoint-engine when use lmdeploy - #2339
Open
PengchengShi00 wants to merge 1 commit into
Open
PengchengShi00 wants to merge 1 commit into
PengchengShi00 wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checkpoint Engine P2P 使用说明
pip install 'checkpoint-engine[p2p]'
该选项会安装 Mooncake Transfer Engine,用于跨 rank 的 RDMA 权重传输。官方安装说明
export CHECKPOINT_ENGINE_DIR=/your_dir/checkpoint-engine
export PYTHONPATH="${CHECKPOINT_ENGINE_DIR}:${PYTHONPATH:-}"
请确保代码包含修复提交 https://github.com/MoonshotAI/checkpoint-engine/pull/107。
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
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相近