Repository navigation
Conversation
…Core literal NVIDIA#711 (45e1c1a) added external_extents to runtime_core::format::Core and updated the test literal at cache_memory.rs:1397, but missed the second Core test literal added by NVIDIA#659 (1cc15c0) at cache_memory.rs:1659, breaking cargo test on flare-helios with --features runtime-core. Design-Signed-Off-By: Antigravity (Gemini 3.1 Pro); design-review=2e5b Signed-off-by: Joshua Cartu <jcartu@users.noreply.github.com>
|
A case file has been opened for 714. Future reviews will auto-run 90 minutes after code updates are pushed.
|
Autobot ReviewFull Review · Value Proposition · Case File Recommendation: Ready To MergeThe diff is a single inert field initializer (
Walkthrough
Merge Risk: Low · up to
|
…#716) Why: Helios's runtime-core engram table decoder hardcoded NVFP4 (`Nvfp4E4m3Global`) tables to a 160-element width (80 weight bytes and 10 scale bytes per row), matching Qwen3.8-Flash-Next (`ple_embed_dim=2560`, 16 heads). Qwen4-35B-A3B uses `ple_embed_dim=2048` across 16 heads (`embedding_width=128`, 64 weight bytes and 8 scale bytes per row), so core decoding rejected Qwen4-35B-A3B engram tables even though the protobuf metadata already carries `embedding_width`. What changed: In `helios/src/runtime_core/engram.rs`, `decode()` previously matched `Encoding::Nvfp4E4m3Global` to the fixed tuple `(160, 16, 80, 10)`. It now validates `table.embedding_width > 0 && table.embedding_width % 16 == 0` alongside the positive finite `global_scale` check and derives the row geometry `(width, 16, width / 2, width / 16)` from `table.embedding_width`. Added unit test `nvfp4_tables_accept_width_128_and_160_and_reject_unaligned_widths` covering valid widths 128 and 160 and rejecting 0, 8, and 120. Benefit: Existing 160-wide NVFP4 engram cores decode identically while 128-wide Qwen4-35B-A3B cores (and any other 16-aligned NVFP4 table width) load without model-specific runtime branches. Evidence: - `cargo check --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server` succeeded against `origin/main` (`45e1c1ad`). - Limitation: `cargo test --lib` on `origin/main` (`45e1c1ad`) currently fails to compile on an unrelated `Core` literal missing `external_extents` at `helios/src/runtime_core/cache_memory.rs:1659` (fixed separately in #714), so the new unit test was compile-checked via inspection and requires #714 on `main` for `cargo test` execution. Design-Signed-Off-By: Gemini 4 Neon; design-review=2e5b Signed-off-by: Luke Alonso <lalonso@gmail.com>
|
Closing as superseded by #721 ( Discord: jcartu |
Why: Disaggregated prefill-to-decode serving over a shared Selene pool needs deterministic prompt-endpoint checkpoint publication and ordered visibility confirmation before an external router dispatches the decode hop. Without prefill-only request handling, normal checkpoint selection anchors interior message boundaries and PooledStore::store returns before selene-manager processes queued NoticeBatch frames. What changed: - Scheduler & Helios runtime: Added prefill_only: bool on runtime::Prompt, RequestSpec, and LiveRequest (propagated in Incoming::spec()) and RequestScheduler::checkpoint_key(). Prefill-only requests anchor at prompt_tokens, skip decode/token streaming, call HostStore::announce_gpu when headroom defers copy-out, and wait on HostStore::announce_barrier(). - Selene & selene-manager: Added AnnounceBarrier / AnnounceTicket in selene::pool (flushing queued NoticeBatch frames before an empty-boundary LookupRequest sentinel) and HostStore::announce_gpu / announce_barrier, sharing GPU index construction via PooledStore::gpu_index_entry across store() and evicted(). - HTTP API & docs (helios/src/server/http.rs, docs/api.md): Added single-header X-Flare-Prefill-Only (`true`/`1`/`false`/`0`; duplicate/malformed headers and enabling on count_tokens or multi-prompt completions return HTTP 400), JSON object "prefill" responses, X-Flare-Pool-Announced, and X-Flare-Checkpoint-Key. Claimed benefit: Allows an external caller to offload prompt prefill and dispatch decode once X-Flare-Pool-Announced: true is returned without heuristic delays or wire schema changes, keeping normal scheduling unchanged. Combined 1P1D throughput/latency results depend on external routing and shared pool hardware. Evidence: - 6-crate release test suite (flare-eos 12, flare-selene 589, flare-selene-manager 449, flare-helios 1961 with temporary NVIDIA#714 cache_memory build fix, flare 255, flare-cli 248): 3,514 passed, 0 failed, 94 ignored. - verification/helios-lifecycle/check.py --mutations: all 9 TLA+ models, observed transition checks, and mutation checks passed. Design-Signed-Off-By: Antigravity (Gemini 3.1 Pro); design-review=2e5b Signed-off-by: fakoli <fakoli@users.noreply.github.com>
Summary
Fixes
cargo test -p flare-helios --features runtime-corecompilation onmain(45e1c1ad):#711(45e1c1ad) addedexternal_extentstoruntime_core::format::Coreand updated the test struct literal athelios/src/runtime_core/cache_memory.rs:1397, but missed the secondCoretest literal added by#659(1cc15c01) athelios/src/runtime_core/cache_memory.rs:1659.external_extents: vec![]restores unit-test compilation under--features runtime-core.Verification
cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server --lib cache_memory::tests:52 passed, 0 failed, 4 ignored(previously failed witherror[E0063]: missing field external_extents in initializer of runtime_core::format::Core).Discord: jcartu