Skip to content

v0.11.1.dev60

@hallerite hallerite tagged this 26 Nov 21:50
## Summary

The ModelExpress docs listed P/D disaggregated inference as unsupported,
but nothing excludes it. The rl config sizes the transfer group to every
prefill and decode GPU. Each update pauses the prefill engines, then the
decode engines, installs the version on all of them and resumes them, as
for the other transports. This PR documents that, and adds a config test
that pins the transfer group's size and rank order under P/D.

No code changes were needed. Validated end to end on 3 nodes: 1 trainer,
1 prefill and 1 decode.

## Validation

### 284B DeepSeek-V4-Flash checkpoint (bf16)

- Production inference settings: P/D with bidirectional NIXL KV
transfer, DEP8 per role, online MXFP8, FlashInfer TRTLLM MoE.
- Trainer: bf16 SignSGD with the `debug` algorithm, so every step
changes the weights.
- Result: 12 steps; every one of the 16 inference ranks (8 prefill, 8
decode) installed all 13 versions.

| Per update | |
|---|---|
| Install, slowest engine | 3.72–3.78 s (first update 44 s, including
planning) |
| Pause / resume, slowest engine | ~0.06 s / ~0.02 s |
| Inference update total | ~6.0 s |
| NIXL KV failed transfers / notifications | 0 / 0 |
| Mismatch KL (mean, median over steps) | 0.0027, same as aggregated
inference on this model |

### Tiny DeepSeek-V4 (16 experts, random weights), same deployment

| | ModelExpress | NCCL |
|---|---|---|
| Steps | 12 | 12 |
| Install, slowest engine | 0.08–0.09 s | 0.15–0.20 s |
| Mismatch KL (median) | 0.00054 | 0.00052 |
| NIXL KV failed transfers | 0 | 0 |

### Unit tests

`pytest tests/unit/test_configs.py
tests/unit/orchestrator/test_clients.py
tests/unit/transports/test_modelexpress_boundary.py`: 436 passed.

## Notes

- **Not ModelExpress-specific:** under P/D with MXFP8 and `moe_backend =
"flashinfer_trtllm"`, set `all2all_backend =
"flashinfer_nvlink_one_sided"` in both
`[inference.deployment.prefill_vllm_overrides]` and
`[inference.deployment.decode_vllm_overrides]`. Otherwise the template's
per-role DeepEP default wins, and the engines fail at startup with "No
MXFP8 MoE backends available".
- **Not covered:**
  - several prefill or decode replicas;
  - a sub-replica spanning nodes;
  - a Mooncake KV store next to ModelExpress.
Assets 2
Loading