frank-medium: deploy two single-GPU replicas — TP=2 is blocked by PCIe atomics
The radiance MXFP4 stack cannot run TP=2 on this host. RCCL's collective
kernels carry a hidden hostcall-buffer parameter, and ROCr refuses to
dispatch them on a device without PCIe atomics: the AQL dispatch fails with
hipErrorIllegalState ("the operation cannot be performed in the present
state"), which is what every two-rank collective hit. The second R9700 sits
behind the chipset bridges 05:00.0/06:09.0, which advertise
`AtomicOpsCap: Routing-` — a read-only capability, so no software can enable
atomic routing on that path and the driver's
pci_enable_atomic_ops_to_root() fails for that card. The first card, on CPU
root port 00:01.1, has atomics enabled.
Ruled out: kernel version (7.0.0-28/-30/-31 identical, after a full upgrade),
iommu=pt, P2P hardware (45.3 GB/s between the cards), the shipped librccl (a
from-source rebuild reproduces the failure at the same call path), vLLM and
pynccl (a bare two-rank torch.distributed allreduce fails the same way), all
NCCL transport knobs, and single-rank tests (NCCL short-circuits at
world_size=1, so one-card success proves nothing).
Deployment: three rootless Quadlets — frank-medium-a (:7771, card 1),
frank-medium-b (:7772, card 2), both TP=1 at 114688 context (262144 and
131072 do not fit one card's KV) with vLLM-profiled KV — and
frank-medium-proxy (:7770), a round-robin that preserves the fleet contract
of one endpoint and one served model name. frank-medium.container stays as
the TP=2 target for a host whose second card is atomic-capable; the deploy
handler does not install it and trashes any stale copy.
Measured through the proxy (vllm bench serve, random dataset, --ignore-eos):
conc 1 42.8 tok/s, conc 4 147.6 tok/s, conc 8 230.8 tok/s, 32k prefill at
~2.8k tok/s per card, TPOT p50 23.6-28.8 ms.
Also: healthcheck reads PORT so one probe serves all three units, the hermes
example and the harness models.yml drop to the real 114688 context, and the
runbook records the full evidence chain.
This commit is contained in:
@@ -991,9 +991,30 @@ deploy_llm_medium() {
|
||||
# The compile cache must exist before the quadlet mounts resolve; the
|
||||
# one-time setup (setup-mxfp4.sh / PREPARE_ONLY) normally creates it.
|
||||
mkdir -p /home/dank/.radiance-cache-w4a8-093-gdnm-nqft-fp8s-gnq/{vllm,inductor,triton,aiter}
|
||||
install_quadlet frank-medium dankserver/frank-medium/quadlet frank-medium
|
||||
systemctl --user restart frank-medium.service
|
||||
wait_for_health frank-medium http://127.0.0.1:7770/health 1200
|
||||
# Three units, not one. TP=2 across both R9700s cannot launch a collective
|
||||
# on this host — RCCL's kernels need PCIe atomics and the second card's
|
||||
# chipset path advertises AtomicOpsCap: Routing- — so the endpoint is two
|
||||
# single-GPU replicas behind a round-robin proxy. frank-medium.container
|
||||
# stays in the repo as the TP=2 target for a host whose second card sits
|
||||
# on a CPU root port; it is deliberately NOT installed here.
|
||||
install_quadlet frank-medium-a dankserver/frank-medium/quadlet frank-medium-a
|
||||
install_quadlet frank-medium-b dankserver/frank-medium/quadlet frank-medium-b
|
||||
install_quadlet frank-medium-proxy dankserver/frank-medium/quadlet frank-medium-proxy
|
||||
# Drop a stale TP=2 unit from an earlier deploy of this service, or the
|
||||
# generator keeps trying to start a container that can never become
|
||||
# healthy. Never `rm`: it moves into the home trash.
|
||||
if [[ -e "$quadlet_unit_dir/frank-medium.container" ]]; then
|
||||
local trash="$HOME/.AGENTTRASH/20260916-frank-medium-tp2"
|
||||
mkdir -p "$trash"
|
||||
systemctl --user stop frank-medium.service 2>/dev/null || true
|
||||
mv -- "$quadlet_unit_dir/frank-medium.container" "$trash/frank-medium.container"
|
||||
systemctl --user daemon-reload
|
||||
echo "retired the TP=2 quadlet -> $trash (see the runbook for why)"
|
||||
fi
|
||||
# The proxy waits on the replicas, but a restart of all three is what a
|
||||
# deploy does: the replicas reload the model, the proxy reconnects.
|
||||
systemctl --user restart frank-medium-a.service frank-medium-b.service frank-medium-proxy.service
|
||||
wait_for_health frank-medium http://127.0.0.1:7770/health 1800
|
||||
}
|
||||
|
||||
wait_for_health() {
|
||||
|
||||
Reference in New Issue
Block a user