You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Engine] hy4 0.1.64 CUDA: multi-GPU expert split loads OK then OOMs at graph capture (2x V100 16GB + TITAN V 12GB); --vram-experts-gb ignored #6568
On a mixed 3-card CUDA box, strata-hy4 --gpus 0,1,2 (and --gpus 0,1) completes the expert load, then dies immediately at CUDA graph capture with HIP error 2 (out of memory) at .../engine/src/hy4flash/run/hy4_graph.hip.h:1304. Single-GPU (no --gpus) works fine. --vram-experts-gb appears to have no effect on the multi-GPU split.
Machine
2x V100 16GB (SXM2 + PCIe, sm_70) + TITAN V 12GB (Volta sm_72), no NVLink, PCIe only
single-GPU reference run: 14.7 tok/s decode, vision OK
Reproduce (ctx 32768, defaults otherwise)
strata serve --profile <run config> with args --gpus 0,1,2 --vram-experts-gb 26 (also tried 18; and --gpus 0,1 --vram-experts-gb 14). Log of the 3-GPU attempt:
[plan] ctx 32768 ... buffers ~3.33 GB, KV+idx 0.68 GB, kv_b scratch 0.03 GB, trunk 5.54 GB (embed in RAM) on a 16.9 GB card -> host mask 0; reserve 5.13 GB
[load] multi-GPU experts (3 GPUs): total 10135 in VRAM (31.55 GB: GPU0=1780/5.54GB, GPU1=3347/10.42GB, GPU2=5008/15.59GB), 10857 in host/CPU (24.49 GB), 58.1 s
HIP error 2 (out of memory) at /data/split-pkg/r2-hy4-cuda/src/engine/src/hy4flash/run/hy4_graph.hip.h:1304
2-GPU (0,1) run loads 15.96 GB then dies at the same line.
Observations / suspected causes
The plan sizes every card as "a 16.9 GB card" while one card is a 12 GB TITAN V; the split hands GPU2 15.59 GB.
The planned 5.13 GB reserve is not kept free after the expert split (GPU2 ends at 15.59 GB used of ~11.7 GB free), so graph capture (which needs per-device compute buffers) OOMs right after a "successful" load.
--vram-experts-gb 26 / 18 produced byte-identical allocations (31.55 GB, 10135 experts) — the value seems ignored on the multi-GPU path.
strata split-engine apply on hy4 answers "Using the normal layer split" and writes nothing, so the official auto path cannot produce a 3-card plan either.
Expected
Either a split that keeps the per-card reserve for graph capture (and reads real per-device capacity), or a clear error at plan time ("mixed cards: smallest device 12 GB < required X GB") instead of an OOM deep in capture.
Related: #6562 covers the HIP peer build; this is the CUDA build on mixed Volta cards.
Thanks a lot @Niko1221 — spotted the fix land in 40fa01b (referencing this issue) and in the 0.1.66 engines shipped with v0.2.20. Much appreciated turnaround for a same-day report.
I'll re-fetch the SQ-64 packs on this exact box (2x V100 16GB + TITAN V 12GB, mixed sm_70/sm_72, driver 580.178.04, Linux CUDA-12 build) and verify the 3-GPU --gpus 0,1,2 path end to end — expert split, graph capture past hy4_graph.hip.h:1304, and whether --vram-experts-gb is now honoured — then report the numbers here and close the issue.
Verified on v0.2.20 / strata-hy4 0.1.66 (linux-x86_64-cuda12) — the multi-GPU fix works on the exact box from the report. Closing.
Box: 2x V100 16GB + TITAN V 12GB (mixed sm_70/sm_72), driver 580.178.04, no NVLink — all three behind a PCIe host bridge (HY4_PEER_FORCE_P2P not set, so portable host-pinned bounce).
A — 3-GPU expert split, --vram-experts-gb 26 (the exact config that OOM'd at hy4_graph.hip.h:1304 on 0.1.64):
--vram-experts-gb 26.00 cap applied across 3 GPU(s): GPU2<=5.08GiB GPU0<=12.55GiB GPU1<=8.37GiB — the flag is now honoured (it was silently ignored in 0.1.64)
So on this PCIe-only mixed box the expert-parallel path (A) beats layer-split, and the reported OOM + ignored-flag issues are both resolved. Whole start-to-first-token cycle ~9 min including model swap, no crashes, no warnings beyond the expected host-bridge bounce notice. Thanks again for the fast turnaround — also confirmed #6556's --vram-experts-gb observation is fixed in this build.
Activity
tomcoolss commentedon Nov 22, 2026
Full engine log (
journalctl --user -u hy4-serve, three failed capture attempts + single-GPU baseline):hy4flash: enable multi-GPU across CUDA, AMD HIP, Intel SYCL, and DGX …
tomcoolss commentedon Nov 23, 2026
Thanks a lot @Niko1221 — spotted the fix land in 40fa01b (referencing this issue) and in the 0.1.66 engines shipped with v0.2.20. Much appreciated turnaround for a same-day report.
I'll re-fetch the SQ-64 packs on this exact box (2x V100 16GB + TITAN V 12GB, mixed sm_70/sm_72, driver 580.178.04, Linux CUDA-12 build) and verify the 3-GPU
--gpus 0,1,2path end to end — expert split, graph capture pasthy4_graph.hip.h:1304, and whether--vram-experts-gbis now honoured — then report the numbers here and close the issue.tomcoolss commentedon Nov 23, 2026
Verified on v0.2.20 /
strata-hy40.1.66 (linux-x86_64-cuda12) — the multi-GPU fix works on the exact box from the report. Closing.Box: 2x V100 16GB + TITAN V 12GB (mixed sm_70/sm_72), driver 580.178.04, no NVLink — all three behind a PCIe host bridge (
HY4_PEER_FORCE_P2Pnot set, so portable host-pinned bounce).A — 3-GPU expert split,
--vram-experts-gb 26(the exact config that OOM'd athy4_graph.hip.h:1304on 0.1.64):--vram-experts-gb 26.00 cap applied across 3 GPU(s): GPU2<=5.08GiB GPU0<=12.55GiB GPU1<=8.37GiB— the flag is now honoured (it was silently ignored in 0.1.64)B — same, plus
--layer-split auto:So on this PCIe-only mixed box the expert-parallel path (A) beats layer-split, and the reported OOM + ignored-flag issues are both resolved. Whole start-to-first-token cycle ~9 min including model swap, no crashes, no warnings beyond the expected host-bridge bounce notice. Thanks again for the fast turnaround — also confirmed #6556's
--vram-experts-gbobservation is fixed in this build.