Skip to content

Commit d98b24d

Browse files
junyyang-amdclaude
andcommitted
docs(epd): slots follow E's region; PCI topology lives in atom/utils
D11: the EC backend and its helpers import nothing from kv_transfer; the PCI topology is atom/utils/pci_topology.py. D12: one slot per 64 KiB of the whole-GiB region, carved from its front, so space runs out before slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 1a47bfe commit d98b24d

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

‎docs/atomesh_multimodal_epd.md‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,11 @@ The interface (`atom/ec_transfer/base.py`), apart from the KV connector:
431431
`rows` and `dtype` at the top, the backend's own fields under its name.
432432
ATOMesh and the API carry it without reading it, so a second backend
433433
changes neither.
434-
- Mooncake (`atom/ec_transfer/mooncake.py`) is the one backend. It imports
435-
nothing from `kv_transfer`; it shares HCA selection with the KV
436-
connector through the public `atom/utils/mooncake_hca.py`.
434+
- Mooncake (`atom/ec_transfer/mooncake.py`) is the one backend. Neither it
435+
nor the helpers it uses import `kv_transfer`: HCA selection is the public
436+
`atom/utils/mooncake_hca.py`, and the PCI topology under it
437+
`atom/utils/pci_topology.py`, both shared with the KV connector and the
438+
Mooncake Store offload.
437439
- Basis: vLLM keeps encoder output transfer in its own `ECConnector`
438440
(`vllm/distributed/ec_transfer/`), with Mooncake as one backend; SGLang
439441
picks one with `--encoder-transfer-backend`.
@@ -454,7 +456,7 @@ How the Mooncake transfer works:
454456
`ib_hca_count`, so KV and embeddings register on the same HCAs.
455457
- Unconfigured, `mooncake_hca.auto_select_ib_device` picks the ACTIVE HCA
456458
on the PCIe switch of the engine's GPU, found from the GPU's PCI address
457-
(`gpu_pci_bdf`, `nic.rail_rdma_device`; main's #3884), whatever the HCAs
459+
(`pci_topology.gpu_pci_bdf`, `rail_rdma_device`; main's #3884), whatever the HCAs
458460
are named. Each rank, and E on its one GPU, registers on its own GPU's
459461
HCA. Where the topology names no single HCA, the engine refuses to start
460462
and names `ib_device` and `ATOM_MOONCAKE_IB_DEVICE`.
@@ -516,8 +518,12 @@ changing the handle.
516518
**D12. E keeps an entry for a lease, guarded by a slot table.**
517519
*#3411 (pool, slots and reader), #3412 (fallback).*
518520

519-
E's region (`MooncakeEcWriter`) is one registration: a slot table, then the
520-
pool of rows.
521+
E's region (`MooncakeEcWriter`) is one registration of the size E chose,
522+
in whole GiB: a slot table carved from its front, then the pool of rows.
523+
- There is one slot per 64 KiB of region (`default_slots`): 16384 for
524+
1 GiB, a 512 KiB table. An entry holds at least one image's rows,
525+
hundreds of KiB, so space runs out before slots, and past a 60 s lease a
526+
1 GiB E still takes about 273 requests a second.
521527
- An entry's rows sit in the pool; its slot holds `(generation, address,
522528
length, ack)`. Rows never overlap a slot, so a later entry's rows cannot
523529
forge an earlier entry's generation.

0 commit comments

Comments
 (0)