Skip to content

helios: gate offload Copy Engine batches during peer-copy graphs - #628

Open
yatesdr wants to merge 2 commits into
NVIDIA:mainfrom
yatesdr:fix/helios-peer-copy-offload-gate
Open

yatesdr wants to merge 2 commits into
NVIDIA:mainfrom
yatesdr:fix/helios-peer-copy-offload-gate

Conversation

@yatesdr

@yatesdr yatesdr commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Fixes #627

Problem and approach

On discrete PCIe SM120 GPUs (RTX PRO 6000, CUDA driver 595.99.02), tensor-parallel CUDA graphs whose collectives execute in-graph peer-to-peer Copy Engine nodes (Node::Copy with a Memory::Peer endpoint, such as b12x PCIeDmaAllReduce paired with FlagLaunch SM spin-waits) deadlock when Helios prefix-cache offload workers issue concurrent host-device Copy Engine batches on the same devices. Node-level frontier probes and controlled copy-path ablations isolated the stall specifically to concurrent Copy Engine DMA submission during peer-copy graph execution.

Coordinating host offload batches against peer-copy graph execution directly in Helios resolves the deadlock for already-exported model packages without changing the package format, Protobuf contract, scheduling policy, or per-model behavior.

Summary of changes

  • Structural peer-copy graph detection (helios/src/runtime_core/mod.rs, helios/src/runtime_core/serving.rs, helios/src/execution/manifest.rs): During CUDA graph reconstruction in NativeResources, record peer_copy_graphs[i] = true whenever any Node::Copy node in graph i has a Memory::Peer source or destination. Expose peer_copy_graphs and has_peer_copies on ExecutionManifest (defaulting absent entries to false for non-core manifests).
  • Per-runtime Copy Engine gate (helios/src/offload/copy_gate.rs, helios/src/offload/mod.rs, helios/src/runtime_core/model.rs, helios/src/server/runtime.rs): Add CopyEngineGate with RAII PeerGraphGuard and OffloadBatchGuard leases. Multiple offload workers hold OffloadBatchGuard concurrently across ranks while no peer-copy graph is waiting or active; waiting peer-copy graphs take priority over new offload batches and wait only for in-flight batches to drain. Share one Arc<CopyEngineGate> per NativeModel across RankExecutor, local offload::Binding / offload::open_with_gate, and NativeModel::attach_offload (Selene pool workers).
  • Execution boundary (helios/src/execution/ranks.rs): Union peer_copy_graphs across local RankPeers::Threads manifests so asymmetric peer copies are covered. Acquire a PeerGraphGuard in RankExecutor::submit only when the submitted graph contains peer copies, release completed leases in RankExecutor::poll, and release remaining leases in RankExecutor::close after inner.close() drains. Graphs without peer-copy nodes do not touch the gate.
  • Offload transfer paths (helios/src/offload/transfer.rs, helios/src/offload/transfer/codec.rs): Acquire OffloadBatchGuard per BATCH_BYTES batch in uncompressed RankWorker::run, CPU-codec copy_spans_batch, and all five GPU-codec capture/restore entry points. Preserve strict lock ordering (gpu.codec before CopyEngineGate) to prevent lock inversion against try_lock, and drain the offload stream before releasing the guard on error.

Resulting behavior

  • Eliminates the TP2 prefill deadlock under concurrent prefix-cache offload while keeping multi-rank offload concurrency outside peer-copy graphs and zero gate overhead on graphs without peer-copy nodes.
  • Preserves compatibility with existing exported model packages without re-export.

Validation

  • Compiler checks (RUSTFLAGS="-D warnings"): cargo check --locked --all-targets passed with 0 warnings on helios --features runtime-core,server, flare, flare-cli, and heliopause --lib.
  • Unit tests:
    • helios offload::copy_gate + execution::ranks: 5/5 passed (multi-rank concurrency, peer-graph wait/drain, priority under continuous offload, panic-unwind release, asymmetric rank union).
    • helios server::runtime + execution::threaded: 162/162 passed.
    • flare: 245/245 passed.
    • flare-cli: 200/201 passed under root and 200/201 passed under non-root (all 201 distinct tests passed across the two permission contexts).
  • SM120 4-GPU CUDA tests (FLARE_RUN_CUDA_TESTS=1): helios offload:: passed 19/19 default tests plus 6/6 ignored offload::transfer:: CPU/GPU KV codec and multi-GPU split-pool tests.
  • Live SM120 TP2 serving (--gpus 0,1, --prefix-cache-memory 4G, 16 GiB disk tier):
    • Qwen3.8-Flash-Next TP2 (--lossless-kv-compression off): cold, warm (0/6 pos0 mismatches, 5.08x speedup), restart + disk restore (0/6 pos0 mismatches, 2.45x speedup), 8-way burst with 2 aborts (8/8, 4.15 s), and 5x 8-way uncached 6,578-token bursts (40/40 HTTP 200, 4.68–4.83 s/burst; unpatched main deadlocked during the first burst).
    • GLM-5.3-Flash TP2 (--lossless-kv-compression gpu): cold, warm (0/96 token mismatches, 3.50x speedup), restart + restore (0/96 token mismatches, 1.55x speedup), and 8-way burst with 2 aborts (8/8, 5.88 s).

Limitations

  • Live serving validation covered single-host threaded TP2 on SM120 (RTX PRO 6000) with local DRAM and disk tiers (uncompressed and GPU KV codec). Multi-host TP, live Selene pool serving, live CPU KV codec serving, and non-SM120 GPUs were not tested end-to-end (pool and CPU codec paths share the same CopyEngineGate wiring and passed unit and CUDA codec tests).

Discord: D-Rock

On discrete PCIe GPUs (observed on SM120 RTX PRO 6000 under CUDA driver
595.99.02), tensor-parallel CUDA graphs whose collectives drive peer-to-peer
transfers through in-graph Copy Engine nodes (`Node::Copy` with a
`Memory::Peer` endpoint, such as `b12x` `PCIeDmaAllReduce`) deadlock when
prefix-cache offload workers issue concurrent host-device Copy Engine
batches on the same devices. Even a single concurrent device-to-host copy
from an unrelated allocation on the offload stream stalls both ranks inside
the graph's peer-copy collectives. Coordinating host offload batches against
peer-copy graph execution directly in Helios eliminates the deadlock for
already-exported model packages without changing the package format,
scheduling policy, or per-model behavior.

Detect peer-copy graphs structurally during CUDA graph reconstruction in
`NativeResources`: record `peer_copy_graphs[i] = true` whenever any
`Node::Copy` node in graph `i` has a `Memory::Peer` source or destination,
carry that vector on `ExecutionManifest`, and union it across local
`RankPeers::Threads` manifests in `RankExecutor`. Share one
`offload::CopyEngineGate` per `NativeModel` across `RankExecutor`, local
`offload::Binding` / `offload::open_with_gate`, and `NativeModel::attach_offload`
(for Selene pool workers). When submitting a graph flagged with peer copies,
`RankExecutor` acquires a `PeerGraphGuard` (blocking until in-flight offload
batches drain and giving waiting peer-copy graphs priority over new batches)
and releases it on `poll` completion or after `close` drains. Offload
workers acquire an `OffloadBatchGuard` per `BATCH_BYTES` batch in
uncompressed `RankWorker::run`, CPU-codec `copy_spans_batch`, and all five
GPU-codec capture/restore entry points (preserving strict `gpu.codec` before
`CopyEngineGate` lock order and draining the CUDA stream before releasing
the guard on error). Graphs without peer-copy nodes incur no gate locking.

Eliminates the TP2 prefill deadlock under concurrent prefix-cache offload
while preserving multi-rank offload concurrency outside peer-copy graphs and
maintaining warm/restore correctness and burst latency.

Validation:
- `RUSTFLAGS="-D warnings" cargo check --locked --all-targets` passed for
  `helios --features runtime-core,server`, `flare`, `flare-cli`, and
  `heliopause --lib` (0 warnings).
- Unit tests passed: `helios` `offload::copy_gate` and `execution::ranks`
  (5/5), `helios` `server::runtime` and `execution::threaded` (162/162),
  `flare` (245/245), and `flare-cli` (200/201 under root and 200/201 under
  non-root, with all 201 distinct tests passing across the two permission
  contexts).
- SM120 4-GPU CUDA `helios` `offload::` tests passed: 19/19 default tests
  plus 6/6 ignored `offload::transfer::` GPU/CPU codec and multi-GPU split
  pool tests (`FLARE_RUN_CUDA_TESTS=1`).
- Live SM120 TP2 (`--gpus 0,1`, `--prefix-cache-memory 4G`, 16 GiB disk
  tier) on `Qwen3.8-Flash-Next` (`--lossless-kv-compression off`): cold,
  warm (0/6 pos0 mismatches, 5.08x speedup), restart + disk restore (0/6
  pos0 mismatches, 2.45x speedup), 8-way burst with 2 aborts (8/8, 4.15s),
  and 5x 8-way uncached 6578-token bursts (40/40 HTTP 200, 4.68-4.83s/burst;
  unpatched `main` deadlocked during the first burst).
- Live SM120 TP2 on `GLM-5.3-Flash` (`--lossless-kv-compression gpu`): cold,
  warm (0/96 token mismatches, 3.50x speedup), restart + restore (0/96
  token mismatches, 1.55x speedup), and 8-way burst with 2 aborts (8/8,
  5.88s).

Limitations:
- Tested on single-host threaded TP2 on SM120 (RTX PRO 6000) with local DRAM
  and disk tiers (uncompressed and GPU KV codec). Multi-host TP, live
  Selene pool serving, CPU KV codec live serving, and non-SM120 GPUs were
  not exercised live (though pool and CPU codec paths share the same
  `CopyEngineGate` wiring and unit/CUDA codec tests).

Fixes NVIDIA#627

Signed-off-by: yatesdr <6937857+yatesdr@users.noreply.github.com>
Design-Signed-Off-By: yatesdr; design-review=2e5b
@flare-autobot flare-autobot added bug Something isn't working performance Performance, latency, throughput, or memory-efficiency investigation or improvement. priority:P1 High attention: unresolved correctness, serving failure, or model-data deletion risk. labels Nov 30, 2026
@yatesdr
yatesdr marked this pull request as ready for review November 30, 2026 11:42
@flare-autobot

Copy link
Copy Markdown
Collaborator

A case file has been opened for 628.
Case File Intake Report

Future reviews will auto-run 90 minutes after code updates are pushed.

  • Re-review sooner: Call @flare-autobot after push.
  • Opt-out: Include #autobot:ignore in the PR or any comment.

@flare-autobot flare-autobot added the triage:review Proposed change needs code review; this does not imply merge readiness. label Nov 30, 2026
@flare-autobot

Copy link
Copy Markdown
Collaborator

Autobot Review

Full Review · Value Proposition · Case File

Recommendation: Changes Requested

Clean engineering of structural peer-copy detection, RAII gate primitives, strict gpu.codec → CopyEngineGate ordering, stream drains, and executor.close()-before-store.close()—but head 1870a27 adds indefinite offload starvation under pipelined TP decode, puts a blocking per-16 MiB event.synchronize() on every prefix-cache deployment without benchmarks, and CI is failing.

  • Blockers: 3 · Should fix: 4 · Subtract/Simplify: 3 · Nits: 2
Walkthrough
  • Structural peer-copy graph detection (runtime_core/mod.rs:119, 919, 1149-1156, 1238, runtime_core/serving.rs:49, 59, 202, execution/manifest.rs:436-449): records peer_copy_graphs[i] = true when any Node::Copy references a Memory::Peer allocation; exposes peer_copy_graphs/has_peer_copies on ExecutionManifest (absent defaults to false), with Vec::new() in non-core manifest literals.
  • Per-model Copy Engine gate (offload/copy_gate.rs:1-263, offload/mod.rs:19-60, 114-130, runtime_core/model.rs:27, 662, 985-991, 1032-1038, server/runtime.rs:715-733): RAII PeerGraphGuard/OffloadBatchGuard leases, one Arc<CopyEngineGate> per NativeModel shared across offload::Binding, offload::open_with_gate, attach_offload, and Selene pool peer workers.
  • Execution boundary (execution/ranks.rs:26-181): RankExecutorInner wrapper, unions peer_copy_graphs across RankPeers::Threads via merge_peer_copy_graphs, acquires PeerGraphGuard in submit only for flagged graphs, releases leases in fence order in poll, clears residuals in close.
  • Offload transfer gating (offload/transfer.rs:293-436, 480-555, 2070-2113, offload/transfer/codec.rs:153-370, 533-795, 958-1031): Option<&CopyEngineGate> threaded into RankWorker::run, CPU-codec copy_spans_batch, and all five GPU-codec entry points, preserving lock order and draining the stream before lease release on success and error.
Merge Risk: High · up to 1870a27
  • Serving & prefix-cache liveness under TP pipelining: enter_offload_batch (offload/copy_gate.rs:60-67) gives strict priority to peer-copy graphs while ThreadedExecutor allows 2-frame decode pipelining (execution/threaded/protocol.rs:28), keeping peer_graphs_active >= 1 for sustained decode and starving inbound store.fetch restores and outbound checkpoint unpins.
  • Hot-path regression for all prefix-cache users: NativeModel attaches Some(copy_gate) unconditionally (runtime_core/model.rs:986-989, 1032-1038), turning every 16 MiB BATCH_BYTES batch (cuda.rs:169) into a blocking record + event.synchronize() on single-GPU and non-peer-copy TP runs, opposing Reduce disk offload restore latency and integrated-memory intake overhead #497 with zero A/B offload measurement.
  • Worker-thread blocking & failing CI: RankExecutor::submit blocks the model worker on an unbounded Condvar::wait outside ThreadedExecutor's 120 s stall detector (execution/threaded.rs:23, 942-952), reversing documented invariants without doc updates; CI failed on head 1870a27.
Pre-merge checks: ✅ 2 passed · ⚠️ 2 warnings

Have your agent review the Full Review for complete verified findings, file:line citations, and suggested changes.

To opt out, include #autobot:ignore in your post or comment.

…ls, and preserve metrics

Address starvation, non-peer-copy overhead, timeout, metrics, multi-host
coverage, and cleanup gaps in `CopyEngineGate`:

- Add bounded fairness to `CopyEngineGate` (`MAX_PEER_STREAK_WHILE_OFFLOAD_WAITING = 4`):
  when offload batches are waiting under sustained 2-frame pipelined peer-copy
  decode, `PeerGraphLeases::should_drain_for_offload()` signals
  `RankExecutor::can_submit()` to pause pipelining for one frame so active
  peer-copy leases drain to zero, then grants one concurrent wave to all waiting
  offload ranks before resuming peer-copy graphs. Only arm an offload wave when
  `peer_graphs_active == 0` so a single-threaded pipelined worker cannot
  self-deadlock.
- Scope `CopyEngineGate` creation in `NativeModel` to models where at least one
  rank reconstructed a graph with `Node::Copy` referencing `Memory::Peer`
  (`NativeResources::has_any_peer_copy_graphs()`). Single-GPU and non-peer-copy
  TP models receive `copy_gate = None` and stay on the ungated single-sync-per-window
  offload fast path.
- Bound `CopyEngineGate::enter_peer_graph` with `PEER_GRAPH_GATE_TIMEOUT`
  (120 s, aligned with `ThreadedExecutor::TIMEOUT`), returning
  `ExecutionError::Drain` instead of parking the model worker thread indefinitely
  if an offload Copy Engine batch fails to drain, and update the invariants in
  `docs/prefix-cache-offload.md` and `helios/src/offload/transfer.rs`.
- Exclude gate-wait pauses from throughput metrics: start the transform timer
  after acquiring the gate in all five GPU-codec call sites in `codec.rs`,
  accumulate per-rank `gate_wait` and subtract `max_gate_wait` from
  `Reply.elapsed` in `Transfers::absorb`, and record `prefill_started` in
  `Worker::submit` after `executor.submit()` succeeds.
- Share `PeerGraphLeases` between `RankExecutor` and multi-host `serve_rank`
  (`execution/parallel.rs`), and wire `owner.copy_gate()` through
  `offload::shard::join_peer_with_gate` (`flare-cli/src/cluster.rs`).
- Deduplicate gated/ungated `stream.copy_batch` and stream-drain helpers into
  `transfer::copy_batch_gated` and `transfer::drain_stream`; remove dead
  `ExecutionManifest::has_peer_copies` and unused `OffloadBatchGuard` re-export;
  move pure delegation matches onto `RankExecutorInner`; validate
  `peer_copy_graphs.len() == graphs.len()` (when non-empty) in
  `ExecutionManifest::validate()`; and add unit and gated CUDA transfer tests.

Validation:
- `RUSTFLAGS="-D warnings" cargo check --locked --all-targets` passed with 0
  warnings on `helios --features runtime-core,server`, `heliopause --lib`,
  `flare`, and `flare-cli`.
- `cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server`:
  1,740/1,740 lib tests passed (1,739 with `io_uring` + 1 non-root chmod test)
  and all integration tests passed (excluding the 9 HF-template fixture tests
  requiring `FLARE_TEST_TEMPLATE_DIR`).
- `cargo test --locked --release --manifest-path flare/Cargo.toml`: 245/245 passed.
- `cargo test --locked --release --manifest-path flare-cli/Cargo.toml`: all 201
  unit tests (across root and non-root permission contexts) and all 4
  integration test suites passed.

Limitations:
- New gated CUDA transfer tests (`split_pools_cost_each_device_its_part_and_round_trip_units`
  and `gated_cpu_and_gpu_codec_capture_and_restore_defer_while_peer_graph_holds_gate`)
  and an A/B peer-copy offload latency comparison have not yet been executed on
  this commit because the SM120 host GPUs are currently occupied by another job;
  the earlier SM120 CUDA `offload::` tests and live `Qwen3.8-Flash-Next` TP2 /
  `GLM-5.3-Flash` TP2 runs passed on `1870a27`.

Signed-off-by: yatesdr <6937857+yatesdr@users.noreply.github.com>
Design-Signed-Off-By: yatesdr; design-review=2e5b
@yatesdr

yatesdr commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

Addressed the Autobot review findings in 76e1813:

  • Anti-starvation under 2-frame pipelined peer-copy decode: Added bounded fairness (MAX_PEER_STREAK_WHILE_OFFLOAD_WAITING = 4) in CopyEngineGate + PeerGraphLeases::should_drain_for_offload() checked in RankExecutor::can_submit(). When offload workers are waiting, pipelining pauses for one frame so active peer-copy leases drain to zero, grants one concurrent wave to all waiting offload ranks, and resumes peer-copy graphs. Added unit test offload_makes_forward_progress_under_pipelined_peer_graphs.
  • Zero overhead on single-GPU and non-peer-copy models: NativeModel now instantiates copy_gate: Option<Arc<CopyEngineGate>> only when at least one rank reconstructed a graph containing Node::Copy referencing Memory::Peer (NativeResources::has_any_peer_copy_graphs()). All single-GPU and non-peer-copy TP models receive None and stay on the ungated single-sync-per-window offload path.
  • Bounded drain timeout & docs: Bounded CopyEngineGate::enter_peer_graph at PEER_GRAPH_GATE_TIMEOUT (120 s, returning ExecutionError::Drain), added enter_peer_graph_times_out_without_stranding_gate, and updated docs/prefix-cache-offload.md and helios/src/offload/transfer.rs.
  • Metrics isolation: Moved GPU-codec transform timers after gate acquisition in all 5 codec.rs sites, subtracted max_gate_wait from Reply.elapsed in Transfers::absorb, and moved prefill_started recording after executor.submit() succeeds.
  • Multi-host peer ranks & cleanups: Shared PeerGraphLeases across RankExecutor and serve_rank (execution/parallel.rs), wired owner.copy_gate() through offload::shard::join_peer_with_gate (flare-cli/src/cluster.rs), deduplicated copy_batch_gated / drain_stream, removed dead ExecutionManifest::has_peer_copies and unused OffloadBatchGuard re-export, moved pure delegation methods onto RankExecutorInner, validated peer_copy_graphs.len() in ExecutionManifest::validate(), and added lease-lifecycle and gated CUDA transfer tests.

Validation on 76e1813:

  • RUSTFLAGS="-D warnings" cargo check --locked --all-targets passed (0 warnings) on helios --features runtime-core,server, heliopause --lib, flare, and flare-cli.
  • Full --locked --release suites passed: helios (1,740/1,740 lib tests + all integration tests, excluding the 9 HF-template fixture tests requiring FLARE_TEST_TEMPLATE_DIR), flare (245/245), and flare-cli (201/201 unit tests + all 4 integration suites).
  • Note on CI: Helios lifecycle (lifecycle and kani) both passed on 1870a27; the only failing check was Python CPU tests / pytest, which is the pre-existing main failure tracked in CI: Python CPU tests permanently red: two stale library-internals assertions (triton 3.7.x text, torch InductorError) #623 / tests: fix two Python CPU test premises about stock Triton and Inductor #624.
  • Pending GPU re-run: the new gated CUDA transfer tests and a peer-copy A/B offload latency measurement have not yet been run on 76e1813 because the SM120 test host's GPUs are currently occupied; I will run and post those numbers once the GPUs are free.

Discord: D-Rock

@flare-autobot

Copy link
Copy Markdown
Collaborator

Autobot Review

Full Review · Value Proposition · Case File

Recommendation: Changes Requested

Head 76e1813 cleanly resolves all Round 1 blockers on the in-process threaded TP path and correctly scopes CopyEngineGate to peer-copy models only. But it also gates multi-process peer ranks without wiring should_drain_for_offload() into serve_rank (unbounded offload starvation on RankPeers::Processes), and subtracts max_gate_wait from Reply.elapsed, distorting Selene's admission pricing.

  • Blockers: 1 · Should fix: 2 · Subtract/Simplify: 4 · Nits: 1
Walkthrough
  • Structural peer-copy graph detection (helios/src/runtime_core/mod.rs:119, 919, 1149-1156, 1238, 1347-1349, helios/src/runtime_core/serving.rs:49, 59, 202, helios/src/execution/manifest.rs:838-843): Records peer_copy_graphs[i] = true when any Node::Copy references a Memory::Peer allocation, validates populated lengths in ExecutionManifest::validate(), and only instantiates NativeModel.copy_gate when at least one rank has peer-copy graphs (helios/src/runtime_core/model.rs:827-831).
  • Bounded fairness & timeout gate (helios/src/offload/copy_gate.rs:1-583, helios/src/offload/mod.rs:26, 39-60, 114-130, helios/src/offload/shard.rs:37-61, flare-cli/src/cluster.rs:254-261): Adds CopyEngineGate (with MAX_PEER_STREAK_WHILE_OFFLOAD_WAITING = 4 and PEER_GRAPH_GATE_TIMEOUT = 120 s) and PeerGraphLeases, wired across NativeModel, offload::Binding, open_with_gate, and multi-process peer join_peer_with_gate.
  • Execution boundary (helios/src/execution/ranks.rs:19-196, helios/src/execution/parallel.rs:563-566, 652-665, 692, helios/src/server/runtime.rs:718-733, 2340-2360): Splits RankExecutorInner, merges asymmetric peer_copy_graphs across RankPeers::Threads, checks !self.leases.should_drain_for_offload() in RankExecutor::can_submit, acquires/releases leases in fence order in both RankExecutor and serve_rank, and records prefill_started only after executor.submit() succeeds.
  • Offload transfer & codec gating (helios/src/offload/transfer.rs:292-339, 441-505, 780, 795-799, helios/src/offload/transfer/codec.rs:288-376, 673-700, 760-782, 971-1034): Gates uncompressed batches via copy_batch_gated (preserving single end-of-window sync when copy_gate is None), gates all five GPU-codec sites with gpu.codec locked before CopyEngineGate, moves transform_ns timers after gate acquisition, and threads gate_wait into Reply.elapsed.
  • Documentation & tests (docs/prefix-cache-offload.md:133-138, 917-924, 1025-1029, copy_gate.rs:308-583, ranks.rs:198-227, transfer.rs:2013-2053, codec.rs:1286-1292): Updates offload blocking/queueing invariants and adds unit tests for gate fairness/timeout/lease ordering plus ignored CUDA tests for gated transfer and codec paths.
Merge Risk: Medium · up to 76e1813
  • Multi-process TP liveness regression (RankPeers::Processes): Newly gating peer offload workers (flare-cli/src/cluster.rs:254-261 -> helios/src/offload/shard.rs:47-61) alongside serve_rank (helios/src/execution/parallel.rs:563-566, 652-663) without checking leases.should_drain_for_offload() lets 2-frame pipelined decode starve peer-rank offload workers indefinitely whenever rank 0's local gate has no waiting offload batches.
  • Prefix-cache admission pricing distortion: Subtracting max_gate_wait from Reply.elapsed (helios/src/offload/transfer.rs:780, 795-799) hides real restore wait time from MemoryStore::inbound_rate (selene/src/memory.rs:1455) and worth_fetching / RestoreWait::defer, biasing heavily gate-contended restores to look faster than prefill.
  • Zero blast radius on non-peer-copy models, unverified gated GPU paths on 76e1813: NativeModel.copy_gate is None when no rank reconstructed a peer-copy graph (helios/src/runtime_core/model.rs:827-831), keeping single-GPU and non-peer-copy models untouched, but the new gated CUDA transfer/codec tests and peer-copy A/B measurements have not yet run on 76e1813.
Pre-merge checks: ✅ 2 passed · ⚠️ 2 warnings

Have your agent review the Full Review for complete verified findings, file:line citations, and suggested changes.

To opt out, include #autobot:ignore in your post or comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working performance Performance, latency, throughput, or memory-efficiency investigation or improvement. priority:P1 High attention: unresolved correctness, serving failure, or model-data deletion risk. triage:review Proposed change needs code review; this does not imply merge readiness.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

helios: TP2 prefill CUDA graphs using in-graph peer Copy Engine nodes deadlock under concurrent prefix-cache offload on SM120

2 participants