Repository navigation
helios,heliopause,selene,ignition: fleet-wide 2-way codec green contexts, R580/VMM fallbacks, packed dedup, graph SM bounds, and ScratchArena reserve_sms floor - #723
Conversation
|
A case file has been opened for 723. Future reviews will auto-run 90 minutes after code updates are pushed.
|
Autobot ReviewFull Review · Value Proposition · Case File Recommendation: Changes RequestedThe fleet-wide 2-way
Walkthrough
Merge Risk: High · up to
|
Autobot ReviewFull Review · Value Proposition · Case File Recommendation: Changes RequestedThe 2-way
Walkthrough
Merge Risk: Medium · up to
|
|
Tested the 3-PR Green Context and cooperative SM reservation stack (#723 @ Methods
Results
Findings (5 Pre-Merge Blockers)
|
…xts, R580/VMM fallbacks, packed dedup, graph SM bounds, and ScratchArena reserve_sms floor
1. Why this change is needed and why this approach
Five structural defects blocked safe Green Context GPU KV-codec isolation,
CUDA 13.0/R580 compatibility, and cooperative SM budgeting across exported
cores:
- Helios set `reserve_codec_partition = true` for `--lossless-kv-compression
gpu` in `helios/src/runtime_core/model.rs`, but `NativeResources::initialize`
and `prepare_kernels` in `helios/src/runtime_core/mod.rs` only retained a
primary CUDA context and created a `GreenContextPartition` when
`persistent_workers` was non-empty. Standard cores without persistent workers
therefore shared SMs between GPU KV-codec kernels and full-grid cooperative
graphs, risking scheduler contention and replay stalls.
- Exported graph manifests did not record per-graph minimum compute SM counts
(`min_compute_sms`) or kernel cluster dimensions (`max_cluster_size`), so
Green Context SM splitting could neither enforce co-residency floors nor
reject cluster dimensions exceeding the compute partition's SM count or
driver-reported co-scheduled alignment.
- CUDA 13.0 / R580 drivers (such as GB10 SM121 driver 580.173.02) export
`cuDevSmResourceSplitByCount` and the other seven Green Context driver
symbols without CUDA 13.1's `cuDevSmResourceSplit`, causing Green Context
initialization to fail on R580. In addition, R580 segfaults inside
`cuMemcpyBatchAsync_v2` when copying from `cuMemHostGetDevicePointer` into a
`cuMemMap` VMM range on a `cuCtxFromGreenCtx` stream, whereas `cuMemcpyAsync`
succeeds on identical pointers and streams.
- On multi-rank deployments with `--lossless-kv-compression gpu` or `cpu`,
Selene pre-populated `location.packed` per rank and skipped `pack_shares`
deduplication, storing N identical compressed copies of replicated MLA pages
across DRAM slabs, disk records, and pool exports instead of using v4
`PackedUnit.replicas`.
- During Python preparation, `ScratchArena` tracked overlapping plans via
`register_parallel` for disjoint workspace sizing only, without enforcing a
cooperative SM reservation floor against concurrent auxiliary-stream
collectives.
Generalizing `GreenContextPartition` via a typed `PartitionRequest` enum to
support 2-way `(worker, compute)`, 2-way `(codec, compute)`, and 3-way
`(worker, codec, compute)` topologies isolates GPU KV-codec execution
fleet-wide via shared runtime policy without model-identity branches. Falling
back to `cuDevSmResourceSplitByCount` (with compute in `result[0]` and
three-way remainder refresh through a temporary green context) and routing
Green Context streams through `cuMemcpyAsync` in `Stream::copy_batch` restores
CUDA 13.0 / R580 support while keeping driver-reported co-scheduled alignment
uninflated. Deduplicating byte-identical per-rank `PackedUnit` payloads into
`PackedUnit.replicas` reuses Selene's existing v4 wire and decode contract to
eliminate multi-rank storage inflation across DRAM, disk, and pool tiers.
Recording `min_compute_sms` and `max_cluster_size` as zero-default Protobuf
fields preserves compatibility with existing cores while enforcing SM and
cluster bounds at load time, and bidirectional `reserve_sms` checks on
`ScratchArena` fail closed during preparation when cooperative plans lack
required SM headroom.
2. What changed
- Per-graph SM-budget manifest fields (`helios/proto/{runtime_core,core}.proto`,
`ignition/preparation/{runtime_core_pb2,capture,runtime_core}.py`,
`heliopause/src/export/{mod,capture,core}.rs`,
`helios/src/runtime_core/{format,protobuf,metadata,describe,protection,selection}.rs`,
`helios/src/core/{cache,conversion,export,protection,schema}.rs`):
- Before: `GraphIndex` and `Graph` carried no SM-floor or cluster-dimension
metadata; capture did not record co-resident SM floors or parse
`CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION` (attribute id 4).
- After: added optional `uint32 min_compute_sms = 7` and
`uint32 max_cluster_size = 8` (`0` = unspecified for backward compatibility
with existing cores), regenerated `runtime_core_pb2.py`, wrapped graph
capture in `b12x._lib.utils.device.track_capture_min_compute_sms()` (pinned
via `pyproject.toml` rev `3c5c7b1488`, failing closed without a silent
`ImportError` fallback), exposed shared
`CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION` and
`kernel_cluster_size_from_bytes` in `helios/src/runtime_core/format.rs` for
both export and load, and preserved `(0, 0)` for unclustered graphs without
folding `max_cluster_size` into `min_compute_sms`.
- Fleet-wide Green Context partitioning, R580 fallback, and honest alignment
checks (`helios/src/runtime_core/{driver,persistent_worker,mod,model}.rs`,
`helios/src/cuda.rs`):
- Before: `GreenCtxDriver` required `cuDevSmResourceSplit`; `plan_sm_split`
and `GreenContextPartition::create` required a persistent worker;
`NativeResources::initialize` only retained a primary context for
persistent-worker cores; `Stream::copy_batch` always invoked
`cuMemcpyBatchAsync_v2` when present.
- After: replaced `(Option<u32>, bool)` with `PartitionRequest` supporting
2-way `(worker, compute)`, 2-way `(codec, compute)`, and 3-way
`(worker, codec, compute)` splits; invoked
`NativeResources::initialize_with_options` from `model.rs` whenever
`--lossless-kv-compression gpu` is active; added optional
`cuDevSmResourceSplitByCount` fallback in `GreenCtxDriver` and
`GreenContextPartition::create` placing compute in structured `result[0]`
and refreshing three-way remainders via a temporary `CUgreenCtx`; recorded
driver-reported `actual_compute_sm.sm_coscheduled_alignment` directly
without `.max(...)` inflation and validated it against
`required_compute_coscheduled` (structured split) or `max_cluster_size`
(count-based split); enforced `min_compute_sms`, `max_cluster_size`, and
per-node cluster attributes in `prepare_graphs` with a shared
`CPU_CODEC_HINT`; queried `cuStreamGetGreenCtx` once in `Stream::open` and
`Stream::open_lowest_priority` so `Stream::copy_batch` uses `cuMemcpyAsync`
on Green Context streams.
- Multi-rank packed unit deduplication (`selene/src/{codec_copy,memory,disk_store}.rs`):
- Before: `DirectSlabTarget::take_direct`, `AsyncCompressor`, and
`build_packed_write` stored one copy of every rank's compressed packet even
when per-rank bytes were identical, and `complete_record` skipped
`pack_shares` for packed records.
- After: deduplicated byte-identical per-rank `PackedUnit` entries sorted by
`(kind, logical_index, stored_rank)` across all three paths, recording
dropped ranks in `PackedUnit.replicas`, compacting DRAM slabs tightly when
duplicates are eliminated to release trailing slabs, and counting
deduplicated packed records under `stats.packed_records[0]` while keeping
raw `record.replication` unset for pool compatibility.
- Structural `ScratchArena` cooperative SM floor
(`ignition/preparation/scratch.py`) and normative documentation
(`docs/{runtime-core-design,core-format-design,prefix-cache-offload,core-design,preparation-development}.md`,
`helios/manifest.md`):
- Before: `ScratchArena.register_parallel` tracked byte overlap only and
`docs/runtime-core-design.md` scoped Green Contexts to single-rank
persistent-worker cores.
- After: added `min_reserve_sms=0`, `reserve_sms_floor`,
`require_reserve_sms`, `resolve_reserve_sms`, `register_cooperative_plan`,
and `register_parallel(*plans, reserve_sms=0)` with bidirectional
validation, shared `_validate_reserve_sms`, weakest-link headroom tracking,
and full reset in `release_preparation()`; updated all six normative
documents to reflect the three Green Context topologies, R580/VMM
fallbacks, graph SM bounds, packed cross-rank deduplication, and
`ScratchArena` SM-floor enforcement.
3. Claimed benefit and result
- Isolates `--lossless-kv-compression gpu` in a disjoint Green Context across
non-worker and persistent-worker cores on both CUDA 13.1+ and CUDA 13.0/R580
drivers, avoids R580 `cuMemcpyBatchAsync_v2` VMM faults on Green Context
streams, and rejects under-provisioned compute partitions or driver-downgraded
cluster alignment at load time.
- Preserves backward compatibility with existing exported cores
(`min_compute_sms == 0`, `max_cluster_size == 0`, verified by wire-decode
tests and per-node cluster validation).
- Eliminates multi-rank duplicate storage for identical compressed KV units
(e.g. 4:1 on TP4 MLA and 2:1 on pairwise GQA) across DRAM slabs, disk
records, and `selene-manager` exports without changing the v4 wire format.
- Fails closed at preparation time when cooperative plans overlap concurrent
collectives without sufficient `reserve_sms` headroom.
4. Supporting evidence and limitations
Validated on Linux x86_64 with NVIDIA RTX PRO 6000 Blackwell Max-Q (SM120,
188 SMs, driver 620.73.04), rebased on `origin/main` (`be4092d7`):
- `cargo test --locked --release --manifest-path eos/Cargo.toml --target-dir flare-cli/target`:
12 passed, 0 failed.
- `cargo test --locked --release --manifest-path selene/Cargo.toml --features test-support --target-dir flare-cli/target`:
643 unit + 1 integration passed, 0 failed (including new 4-rank MLA/GQA
`direct_slab_capture_deduplicates_identical_and_pairwise_rank_packets`,
`dedup_capture_slots_merges_identical_ranks_and_validates_layout`, and
`packed_multi_rank_mla_capture_deduplicates_slabs_stats_and_pool_export`).
- `cargo test --locked --release --manifest-path selene-manager/Cargo.toml --features test-support --target-dir flare-cli/target`:
448 passed, 0 failed, 1 ignored.
- `cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server --target-dir flare-cli/target --lib -- runtime_core:: core:: cuda:: offload::`:
561 passed, 0 failed, 33 ignored (including new `PartitionRequest`,
`plan_split_by_count`, `validate_actual_compute_partition` downgrade and R580
TPC-2 tests, and `legacy_graph_wire_bytes_omitting_sm_bounds_decode_to_zero`).
Full `helios --lib` suite with `FLARE_TEST_TEMPLATE_DIR`: 1,956 passed,
51 ignored, 6 failed solely due to absent Hugging Face model template
fixtures in `/tmp/flare-test-templates`.
- `CUDA_VISIBLE_DEVICES=3 cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server --target-dir flare-cli/target --lib -- --ignored --nocapture --test-threads=1 codec_compute_partition three_way_gpu_codec cuda_split_by_count_fallback_partitions_two_way_and_three_way`:
3 passed, 0 failed on SM120:
- 3-way: `worker=8 SMs, codec=8 SMs, compute=172 SMs | baseline_coop=7.5 us | concurrent_coop=137962 (137750.5/s) | gpu_codec_rounds=247 (encode+decode 262.0 MiB/s, ratio 5.98x)`
- 2-way: `codec=8 SMs, compute=180 SMs (cosched=16) | concurrent_coop=73148 | gpu_codec_rounds=125`
- `SplitByCount` fallback: 2-way `(codec, compute)` and 3-way `(worker, codec, compute)` partitions plus Green Context `Stream::copy_batch` from registered host memory into a `cuMemMap` VMM allocation passed.
- `cargo test --locked --release --manifest-path flare/Cargo.toml --target-dir flare-cli/target`:
255 passed, 0 failed, 4 ignored.
- `cargo test --locked --release --manifest-path flare-cli/Cargo.toml` and
`cargo build --locked --release --manifest-path flare-cli/Cargo.toml`:
254 passed, 0 failed, 3 ignored; release binary built cleanly.
- `cargo test --locked --release --manifest-path heliopause/Cargo.toml --target-dir flare-cli/target --lib`:
251 passed, 0 failed, 6 ignored (including
`graph_sm_requirements_extracts_cluster_dimension_and_preserves_unspecified_zero`).
- `CUDA_VISIBLE_DEVICES=3 FLARE_RUN_CUDA_TESTS=1 pytest tests/preparation/{test_scratch,test_capture_graph_metadata,test_core_boundary,test_codec_layout,test_persistent_worker}.py tests/test_kv_codec.py tests/cli -q`
(with `PYTHONPATH` supplying the worktree `ignition` and `flashinfer#217` `b12x`):
314 passed, 0 failed.
Limitations:
- Live SM103 and GB10 SM121 (R580 driver `580.173.02`) hardware execution,
multi-GPU `ignition export` + `flare run --lossless-kv-compression gpu`, and
the 6 gated Hugging Face chat-template tests were not run on this host.
- DeepSeek-V4.1 `DSAFusedIndexerKernel` (`flashinfer/experimental/b12x/attention/dsa_indexer/fused_indexer.py`)
launches full-GPU non-cooperative software-barrier waves in the separate
`local-inference-lab/flashinfer` repository; fixing that kernel (cooperative
clamping or SM-budget reservation) requires a companion PR in
`local-inference-lab/flashinfer` followed by a `pyproject.toml` pin bump.
Design-Signed-Off-By: Antigravity (Gemini); design-review=2e5b
Signed-off-by: Luke Alonso <lalonso@gmail.com>
275b7a5 to
d5d12ea
Compare
Why this change is needed and why this approach
Five structural defects blocked safe Green Context GPU KV-codec isolation, CUDA 13.0/R580 compatibility, and cooperative SM budgeting across exported cores:
reserve_codec_partition = truefor--lossless-kv-compression gpuinhelios/src/runtime_core/model.rs, butNativeResources::initializeandprepare_kernelsinhelios/src/runtime_core/mod.rsonly retained a primary CUDA context and created aGreenContextPartitionwhenpersistent_workerswas non-empty. Standard cores without persistent workers therefore shared SMs between GPU KV-codec kernels and full-grid cooperative graphs, risking scheduler contention and replay stalls.min_compute_sms) or kernel cluster dimensions (max_cluster_size), so Green Context SM splitting could neither enforce co-residency floors nor reject cluster dimensions exceeding the compute partition's SM count or driver-reported co-scheduled alignment.580.173.02) exportcuDevSmResourceSplitByCountand the other seven Green Context symbols without CUDA 13.1'scuDevSmResourceSplit, causing Green Context initialization to fail on R580. In addition, R580 segfaults insidecuMemcpyBatchAsync_v2when copying fromcuMemHostGetDevicePointerinto acuMemMapVMM range on acuCtxFromGreenCtxstream, whereascuMemcpyAsyncsucceeds on identical pointers and streams.--lossless-kv-compression gpuorcpu, Selene pre-populatedlocation.packedper rank and skippedpack_sharesdeduplication, storing N identical compressed copies of replicated MLA pages across DRAM slabs, NVMe records, and pool exports instead of populating v4PackedUnit.replicas.ScratchArenatracked overlapping plans viaregister_parallelfor disjoint workspace sizing only, carrying no cooperative SM reservation floor to fail closed when cooperative plans overlapped concurrent auxiliary-stream collectives.Generalizing
GreenContextPartitionvia a typedPartitionRequestenum to support 2-way(worker, compute), 2-way(codec, compute), and 3-way(worker, codec, compute)topologies isolates GPU KV-codec execution fleet-wide via shared runtime policy without model-identity branches. Adding acuDevSmResourceSplitByCountfallback (placing compute in structuredresult[0]and refreshing three-way remainders through a temporary green context) and routing Green Context streams throughcuMemcpyAsyncinStream::copy_batchrestores CUDA 13.0/R580 support while keeping driver-reported co-scheduled alignment uninflated. Deduplicating byte-identical per-rankPackedUnitpayloads intoPackedUnit.replicasreuses Selene's existing v4 wire and decode contract to eliminate multi-rank capacity inflation across DRAM, disk, and pool tiers. Recordingmin_compute_smsandmax_cluster_sizeas backward-compatible zero-default Protobuf fields lets Helios enforce hardware SM-floor and cluster-alignment invariants at load time, and bidirectionalreserve_smschecks onScratchArenafail closed during preparation.What changed
helios/proto/{runtime_core,core}.proto,ignition/preparation/{runtime_core_pb2,capture,runtime_core}.py,heliopause/src/export/{mod,capture,core}.rs,helios/src/runtime_core/{format,protobuf,metadata,describe,protection,selection}.rs,helios/src/core/{cache,conversion,export,protection,schema}.rs):GraphIndexandGraphcarried no SM-floor or cluster-dimension metadata; capture did not collect non-clamped co-resident SM floors or inspectCU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION(attribute id 4).uint32 min_compute_sms = 7anduint32 max_cluster_size = 8(0= unspecified for full compatibility with existing cores), regeneratedruntime_core_pb2.py, wrapped graph capture inb12x._lib.utils.device.track_capture_min_compute_sms()(pinned onorigin/mainviapyproject.tomlrev3c5c7b1488, failing closed without a silentImportErrorfallback), sharedCU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSIONandkernel_cluster_size_from_bytesinhelios/src/runtime_core/format.rsacross export and load, and preserved(0, 0)for unclustered graphs without foldingmax_cluster_sizeintomin_compute_sms.helios/src/runtime_core/{driver,persistent_worker,mod,model}.rs,helios/src/cuda.rs):GreenCtxDriverrequiredcuDevSmResourceSplit;plan_sm_splitandGreenContextPartition::createrequired aPersistentWorker;NativeResources::initializeonly retained a primary context for persistent-worker cores;Stream::copy_batchalways invokedcuMemcpyBatchAsync_v2when present.(Option<u32>, bool)withPartitionRequest(Worker,Codec,WorkerAndCodec) supporting 2-way(worker, compute), 2-way(codec, compute), and 3-way(worker, codec, compute)splits; addedNativeResources::initialize_with_options(core, ordinal, reserve_codec_partition)invoked frommodel.rswhen--lossless-kv-compression gpuis active; added optionalcuDevSmResourceSplitByCountfallback inGreenCtxDriverandGreenContextPartition::createplacing compute in structuredresult[0]and splitting three-way remainders via a temporaryCUgreenCtx; assignedpartition.compute_coscheduled_alignment = actual_compute_sm.sm_coscheduled_alignmentdirectly (no.max(...)inflation) and validated it againstrequired_compute_coscheduled(structured split) ormax_cluster_size(count-based split); enforcedmin_compute_sms,max_cluster_size, and per-node cluster attributes inprepare_graphswith a sharedCPU_CODEC_HINT; queriedcuStreamGetGreenCtxonce inStream::open/Stream::open_lowest_priorityand routed Green Context streams throughcuMemcpyAsyncinStream::copy_batch.selene/src/{codec_copy,memory,disk_store}.rs):DirectSlabTarget::take_direct,AsyncCompressor, andbuild_packed_writestored duplicate copies of identical per-rank compressed packets, andcomplete_recordskippedpack_sharesfor packed records.PackedUnitentries sorted by(kind, logical_index, stored_rank)across GPU direct-slab capture, CPU async compression, and standalone disk capture, populatingPackedUnit.replicas, compacting DRAM slabs tightly to release excess slabs, and accounting deduplicated packed records understats.packed_records[0]while keeping rawrecord.replicationunset for pool export compatibility.ScratchArenacooperative SM reservation contract & docs (ignition/preparation/scratch.py,docs/{runtime-core-design,core-format-design,prefix-cache-offload,core-design,preparation-development}.md,helios/manifest.md):ScratchArena.register_paralleltracked byte overlap only, anddocs/runtime-core-design.mdscoped Green Context partitioning to single-rank persistent-worker cores.min_reserve_sms=0,reserve_sms_floor,require_reserve_sms,resolve_reserve_sms,register_cooperative_plan, andregister_parallel(*plans, reserve_sms=0)with bidirectional fail-closed checks, shared_validate_reserve_sms, weakest-link headroom tracking, and full reset inrelease_preparation(); updated all six normative docs to cover all three Green Context topologies, CUDA 13.0/R580 and VMM fallbacks, graph SM bounds, cross-rank packed deduplication, andScratchArenaSM-floor enforcement.helios/src/runtime_core/{persistent_worker,protobuf}.rs,heliopause/src/export/capture.rs,selene/src/{codec_copy,memory}.rs,tests/preparation/{test_scratch,test_capture_graph_metadata}.py):PartitionRequest, 2-way/3-wayplan_sm_split,plan_split_by_count,validate_actual_compute_partition(driver downgrade rejection and R580 TPC-2 handling), legacy wire-bytes decode of omitted fields 7/8,graph_sm_requirements, and 4-rank MLA/GQA packed deduplication (DirectSlabTarget,CaptureSlot,MemoryStore, and poolPackedOffer); added live SM120 CUDA tests for 2-way(codec, compute)isolation and thecuDevSmResourceSplitByCountfallback + Green ContextStream::copy_batchVMM path; added Python tests forScratchArenaandmin_compute_smscapture/export metadata.Claimed benefit and result
--lossless-kv-compression gpuacross non-worker and persistent-worker cores on both CUDA 13.1+ and CUDA 13.0/R580 drivers while rejecting under-provisioned compute partitions or downgraded cluster alignment at load time rather than deadlocking or faulting at replay time.cuMemcpyBatchAsync_v2VMM segfaults on Green Context streams viacuMemcpyAsyncfallback.selene-managerexports using the existing v4PackedUnit.replicascontract.min_compute_sms == 0,max_cluster_size == 0).reserve_smson cooperative plans overlapping concurrent collectives into an immediate preparation-timeValueError.pyproject.tomlrev3c5c7b1488) and fix(moe,collectives): enforce ScratchArena reserve_sms contract across SM103/SM120 MoE and recipes local-inference-lab/hyperflare-recipes#157 (applyingScratchArenaenforcement,Sm103RoutedExperts, and recipe reservation fixes).Supporting evidence and limitations
Validated on Linux x86_64 with NVIDIA RTX PRO 6000 Blackwell Max-Q (SM120, 188 SMs, driver
620.73.04), rebased onorigin/main(be4092d7):cargo test --locked --release --manifest-path eos/Cargo.toml --target-dir flare-cli/target: 12 passed, 0 failed.cargo test --locked --release --manifest-path selene/Cargo.toml --features test-support --target-dir flare-cli/target: 643 unit + 1 integration passed, 0 failed (including 4-rank MLA/GQA packed deduplication andPackedOfferlayout validation).cargo test --locked --release --manifest-path selene-manager/Cargo.toml --features test-support --target-dir flare-cli/target: 448 passed, 0 failed, 1 ignored.cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server --target-dir flare-cli/target --lib -- runtime_core:: core:: cuda:: offload::: 561 passed, 0 failed, 33 ignored (fullhelios --libsuite withFLARE_TEST_TEMPLATE_DIR: 1,956 passed, 51 ignored, 6 failed solely due to absent Hugging Face model template fixtures in/tmp/flare-test-templates).CUDA_VISIBLE_DEVICES=3 cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server --target-dir flare-cli/target --lib -- --ignored --nocapture --test-threads=1 codec_compute_partition three_way_gpu_codec cuda_split_by_count_fallback_partitions_two_way_and_three_way: 3 passed, 0 failed on SM120:worker=8 SMs, codec=8 SMs, compute=172 SMs | baseline_coop=7.5 us | concurrent_coop=137962 (137750.5/s) | gpu_codec_rounds=247 (encode+decode 262.0 MiB/s, ratio 5.98x)codec=8 SMs, compute=180 SMs (cosched=16) | concurrent_coop=73148 | gpu_codec_rounds=125SplitByCountfallback: 2-way(codec, compute)and 3-way(worker, codec, compute)partitions plus Green ContextStream::copy_batchfrom registered host memory into acuMemMapVMM allocation passed.cargo test --locked --release --manifest-path flare/Cargo.toml --target-dir flare-cli/target: 255 passed, 0 failed, 4 ignored.cargo test --locked --release --manifest-path flare-cli/Cargo.tomlandcargo build --locked --release --manifest-path flare-cli/Cargo.toml: 254 passed, 0 failed, 3 ignored; release binary built cleanly.cargo test --locked --release --manifest-path heliopause/Cargo.toml --target-dir flare-cli/target --lib: 251 passed, 0 failed, 6 ignored.CUDA_VISIBLE_DEVICES=3 FLARE_RUN_CUDA_TESTS=1 pytest tests/preparation/{test_scratch,test_capture_graph_metadata,test_core_boundary,test_codec_layout,test_persistent_worker}.py tests/test_kv_codec.py tests/cli -q(withPYTHONPATHproviding the worktreeignitionandflashinfer#217b12x): 314 passed, 0 failed.Limitations:
580.173.02) hardware execution, multi-GPUignition export+flare run --lossless-kv-compression gpu, and the 6 gated Hugging Face chat-template tests were not run locally on this host.DSAFusedIndexerKernel(flashinfer/experimental/b12x/attention/dsa_indexer/fused_indexer.py) launches full-GPU non-cooperative software-barrier waves (spin_wait_global_ge_i32) in the separatelocal-inference-lab/flashinferrepository; fixing that kernel (cooperative launch clamping or SM-budget reservation) requires a companion PR inlocal-inference-lab/flashinferfollowed by apyproject.tomlpin bump before TP4 DeepSeek-V4.1 serves safely under--lossless-kv-compression gpu.Discord: lukealonso