Soulmate-Halo/heterogeneous-gpu-pd-lab
使用稠密算力卡对稀疏大显存主机进行加速,主机包括 AI Max+ 395、M3 512G、DGX Spark 等。
What it solves
Serving very large language models (like Qwen3.8 and DeepSeek V4.1 Flash) on a single GPU is often slow or impossible. This project tackles that by splitting the work between different types of hardware: one device handles the prefill (processing the input prompt), another handles the decode (generating the output tokens). This separation — called PD separation — lets you use a fast but limited GPU for one phase and a different machine with more memory for the other, boosting overall throughput and reducing time-to-first-token.
How it works
The README describes several concrete hardware combinations, such as an RTX 6000D for prefill paired with four DGX Spark nodes for decode, or an RTX 3080 with a Mac Studio M5. The systems are connected via fast networking (RoCE, NIXL) and run standard inference engines (vLLM, SGLang) with custom routing. Each configuration includes a deployment guide, a Docker image for reproducibility, and benchmark results. The project also explains the difference between “untuned raw numbers” and tuned numbers from other projects, and warns that comparisons are only fair when the same tuning is applied.
The “V2” Qwen3.8 experiment, for example, uses a DGX Spark for prefill and splits decode between the Spark and an RTX 3080, achieving ~2.25x aggregate decode speedup. Another setup pairs the RTX 3080 with an AI Max 395 to get ~3x prefill speedup. The later sections move to DeepSeek-V4.1-Flash and show larger clusters with multiple RTX 6000Ds and Spark nodes.
Who it’s for
This is for engineers and researchers who want to serve large open-weight models on mixed hardware — for example, using a workstation GPU plus a compact AI accelerator. The README provides step-by-step AI-build guides and Docker images, so it’s practical for deployment, but it also includes raw measurements and design decisions that are useful for benchmarking and architecture planning.
Highlights
- Multiple proven hardware combinations: RTX 3080 + DGX Spark, RTX 3080 + AI Max 395, RTX 6000D + 4× Spark, and Mac Studio M5 + RTX 6000D.
- Clear PD separation diagrams and deployment flowcharts for each plan.
- Docker images for reproducibility, with a focus on not redistributing large model weights.
- Raw benchmark numbers for prefill and decode across concurrency levels, with methodology notes explaining why they are not directly comparable to tuned numbers from other projects.
- Explainer video (12 minutes) covering GPU heterogeneity basics, five build patterns, and real-hardware benchmarks.
Related
- Project
- Dispatch
- Project
- Project
- Project