Repository navigation
research/ssd_offload: sparse SSD KV offload with speculative prefetch (SolidAttention FAST '26, engine#84, HIP-1345 §2.1) - #110
Closed
breezesamuel wants to merge 1 commit into
Conversation
… (SolidAttention FAST '26, engine#92, HIP-1345 §2.1) Bounded clean-room implementation of SolidAttention legs 1+2 at the fabric policy layer: - 64 MiB coarse KV blocks (BLOCK_BYTES), salted_block_key SplitMix64 tenant keying (HIP-1345 §1.1 CacheSalt isolation at the offload tier) - SsdOffloadPool: LRU staging pool under a 512 MiB budget, prefetch/ fetch with unused-prefetch waste accounting (unused_staged_bytes) - predict_next temporal-locality predictor (deliberately simple) - overlap_stall_ns per-block completion model: prefetch issued at step j hides under cumulative decode compute j..i-1, residual stalls at the consuming step; demand fetches stall in full - 7 tests: salt isolation, predictor order, resident-free, miss-stages, LRU budget, waste accounting, overlap edges; stdlib only - results/solid-attention-results.json: demand vs speculative vs depth-1 oracle on the identical deterministic 128k-token trace (64x64 MiB blocks, 6 resident, window-3 sparse attention, sink/16), two SSD scenarios; raw numbers. Speculative: 1.13x (2 GB/s) and 1.46x (500 MB/s) decode wall vs demand, SSD bytes identical, one wasted 64 MiB prefetch reported honestly. Depth-1 oracle is SLOWER than the predictor -> prefetch depth dominates hiding (labeled honestly as depth-1, not upper bound) - results/HIP-1345-update.md: proposed §2.1 addendum + explicit out-of-scope statement (sparse attention algorithms, answer-quality regression, leg 3 kernel orchestration, real I/O, engine integration) - Upstream SolidAttention figures (3.1x, ~98% memory) remain the authors' own per the bounty caveat; no reference code exists to port - clean-room from the abstract
This was referenced Nov 18, 2026
Member
|
cargo test -p hanzo-kv-fabric fails to compile at this head: examples/solid_attention_bench.rs imports hanzo_kv_solidattn, which is not a crate (lib tests pass, 10/10). Please fix the import so the bench reproduces solid-attention-results.json. |
Member
|
Closing stale conflicting draft (last commit 2026-11-18, no follow-up since the 2026-11-21 review). Blocking issues remain:
Feel free to open a fresh PR rebased on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Research deliverable for #84 ([Bounty #11] Sparse KV offload for local Zen, SolidAttention FAST '26, HIP-1345 §2.1): a bounded clean-room implementation of SolidAttention's legs 1+2 (coarse-grained SSD KV blocks + speculative prefetch) with a bounded per-block overlap model, at the
hanzo-kv-fabricpolicy layer, plus demand-fetch as the matched baseline, a depth-1 oracle probe, raw measurements, the HIP-1345 §2.1 status update, and an explicit out-of-scope statement.Contract coverage (6-point)
hanzo-kv-fabric/results/solid-attention-results.json.hanzo-kv-fabric/src/ssd_offload.rs(64 MiB block model,salted_block_keySplitMix64 §1.1 keying, LRU staging pool under a 512 MiB budget,predict_nexttemporal-locality predictor,overlap_stall_ns, unused-prefetch accounting, 7 tests) +hanzo-kv-fabric/examples/solid_attention_bench.rs(the trace + three policies + two scenarios) + results JSON + HIP update. Bounded: one module, no engine integration, lib change is onepub modline.cargo testgreen on windows/amd64; stdlib-only (no new dependencies).results/solid-attention-results.json;results/HIP-1345-update.mdproposes the §2.1 addendum and carries the out-of-scope statement.Key results
Findings worth the maintainers' time
Honesty boundaries
Draft PR — happy to rebase (note: #100/#104/#105/#108 all touch the same
lib.rsregion; whichever merges first, this rebases on it).lib.rs note
hanzo-kv-fabric/src/lib.rsgains onepub mod ssd_offload;+pub useblock before theconst WIRE_MAGICanchor.