Expert Parallelism for MoEs
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
- 8/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- distributed-systems, machine-learning
Hướng nghiên cứu
Start with the existing MoE layer and router code in Fast-LLM, then read the EPLB repo to see what eplb.rebalance_experts expects as input. The issue calls for a 2-layer, 12-expert test with 4 redundant experts across 8 GPUs, with expert load checked for balance. The design is open and the issue is nearly two years old with no assignee, so confirm scope with maintainers first.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
🎯 Goal (What & Why)
Integrate Expert Parallelism (EP) into Fast-LLM's MoE architecture.
Motivations:
- Support Larger MoE Models: Enable training and inference for bigger models than Mixtral-8x7B, exceeding single-GPU memory constraints.
- Improve GPU Load Balancing: Use DeepSeek's EPLB (
eplb.rebalance_experts) to dynamically balance GPU loads via redundant expert replication and heuristic packing, see https://github.com/deepseek-ai/EPLB/tree/main. - Reduce Communication Overhead: Initially apply global load balancing, and eventually implement hierarchical load balancing to colocate expert groups.
🚀 Execution Plan
Step 1: Minimal Viable Product (MVP)
-
Integrate
eplb.rebalance_expertswith Fast-LLM:- Add support for expert parallelism only in MoE layers.
- Implement global load balancing for distributing expert replicas across GPUs.
- Provide a minimal configuration interface, reusing existing MoE router logic in Fast-LLM.
-
Validation & Testing:
- Test with a small MoE, say 2-layers containing 12 experts per layer, using 4 redundant experts and distributing them across 8 GPUs.
- Verify that the expert load is balanced and that performance is maintained during inference.
-
Documentation:
- Update Fast-LLM's documentation to include usage examples and configuration guidelines for enabling EP.
Step 2: Additional Optimizations (Post-MVP)
- Support for Hierarchical Load Balancing: When the number of server nodes divides the number of expert groups.
- Advanced Routing Strategies: Introduce DeepSeek's group-limited expert routing.
- Performance Enhancements: Explore fused operations and other optimizations for speed.
📌 Acceptance Criteria (Must-Haves for Completion)
- EP must be functional and tested in Fast-LLM's MoE layers.
- The implementation must be documented clearly, with examples and edge cases covered.
- The PR must include a performance/impact summary, demonstrating memory and compute efficiency gains.
- No refactors unless directly necessary for feature completion.
🛠️ Project Management
- Assign the project to the Fast-LLM project.
- Set the
Estimatefield (in days) in the GitHub project. - Use the
Sizefield to categorize the PR size (Small/Medium/Large). - Assign an owner when opening the issue.
- Ngôn ngữ chính
- Python
- Star
- 337
- Fork
- 52
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc 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 ServiceNow/Fast-LLM
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ServiceNow/Fast-LLM#556 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
ServiceNow/Fast-LLM#538 ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
ServiceNow/Fast-LLM#533 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
ServiceNow/Fast-LLM#510 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
ServiceNow/Fast-LLM#507 ·
Tất cả issue của ServiceNow/Fast-LLM
Issue tương tự
-
ReadQwen3PaperTask5 rejects correct answers that differ only in order, case, or underscore formCó thể đã có người làm @Kingpython123 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Tongyi-MAI/MobileWorld#72 ·
-
_threads/application: Update typing annotations using `pyupgrade --py311-plus`Có thể đã có người làm @gudnimg đã nhận hôm nay. Đ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 1 ngày
-
Health probes return 401 when authentication is enabled and the API is served under /orbCó thể đã có người làm @fgogolli đã nhận hôm nay. Đang mởarea: api priority: p2 size: S type: bug
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 75/100
finos/open-resource-broker#704 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
BCDA-APS/polar-bits#93 ·
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
GoogleCloudPlatform/gce-rescue#218 ·
Maintainer thường phản hồi trong vòng 2 ngày