[Feature] Integrate Mooncake Transfer Engine with TurboMind for PD disaggregation and remote KV
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- ai-infra-agents, distributed-systems
Hướng nghiên cứu
Bắt đầu bằng cách đọc lmdeploy/pytorch/disagg/backend/mooncake.py và config.py, sau đó kiểm tra SequenceManager., BlockManager., src/turbomind/engine/engine.cc của TurboMind cùng mã request/scheduling. Chia công việc thành các giai đoạn được đề xuất: dependency CMake, metadata/RPC, các hook truyền dữ liệu bộ nhớ và xác thực trên hai máy. Công việc được xem là hoàn tất khi quá trình phân tách PD của Mooncake hoạt động end-to-end với TurboMind, đồng thời duy trì metadata và hành vi KV tương thích.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Motivation
Motivation
LMDeploy already provides PD disaggregation (DistServe) on the PyTorch engine via lmdeploy/pytorch/disagg/, with Mooncake as an optional KV migration backend (MooncakeBackend, using the Python mooncake.engine.TransferEngine).
TurboMind (C++) remains a high-performance path, but it is not integrated with Mooncake today, so Prefill/Decode split deployments cannot reuse TurboMind's paged KV and kernel stack for cross-node KV.
We would like to integrate Mooncake's Transfer Engine (or an equivalent C++ SDK) into TurboMind's C++ layer to:
- Align block lifecycle with SequenceManager / BlockManager (including optional prefix caching and consistent KV quantization layout);
- Asynchronously export KV after prefill on the prefill side, asynchronously pull on the decode side, and overlap transfer with compute;
- Align or stay compatible with Conductor / metadata protocols used on the PyTorch side to avoid diverging semantics.
Goal: enable end-to-end Mooncake-based PD disaggregation on TurboMind with minimal impact on throughput.
Related resources
- In-repo: lmdeploy/pytorch/disagg/backend/mooncake.py, lmdeploy/pytorch/disagg/config.py (MooncakeEngineConfig, MigrationBackend)
- Mooncake: https://github.com/kvcache-ai/Mooncake
- TurboMind pointers: src/turbomind/models/llama/SequenceManager., BlockManager., src/turbomind/engine/engine.cc and request/scheduling code
Additional context
- Current state: Mooncake PD disaggregation is implemented for PyTorch; TurboMind has no Mooncake / disagg integration.
- Challenges: block/chunk mapping between TurboMind and Mooncake, KV sharding under attn_tp / attn_cp, and scheduling/state machine when waiting for remote KV.
- Suggested phases: optional CMake dependency -> metadata/RPC -> memory transfer hooks -> two-machine e2e validation.
One-liner
PyTorch engine supports PD disaggregation and KV migration via Mooncake (and DLSlime); TurboMind does not yet support Mooncake-based PD disaggregation.
Related resources
No response
Additional context
No response
- Ngôn ngữ chính
- Python
- Star
- 8.2k
- Fork
- 797
- Merge trung bình
- 3 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 52
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của InternLM/lmdeploy
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug] apply_rotary_pos_emb: leaves output tails unwritten with partial rotationCó thể đã có người làm @shotsan đã nhận 15 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug] PyTorch engine ignores use_rslora, so rsLoRA adapters run sqrt(r) times too weakCó thể đã có người làm @Andreas-Hum đã nhận 25 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[Feature] Expose `max_model_len` (session_len) in `/v1/models` model cardCó thể đã có người làm @FOWEPJF255 đã nhận 37 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của InternLM/lmdeploy
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
Techiebutler/freeframe#687 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug verbose GC
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
IBM/javacore-analyser#677 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/config comp/plugins P1 platform/qqbot tool/file type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
NousResearch/hermes-agent#163932 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
plugins/dsh: todayStr() computes UTC but is documented as local — journal entries written 00:00–08:00 local land in the previous day's fileCó thể đã có người làm @Beehtrix đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
zilliztech/memsearch#907 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[integration]: SynapCoresĐang mởexternal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
langchain-ai/docs#8386 ·
Maintainer thường phản hồi trong vòng 1 ngày