Six literal .cu ports get a pure admission/geometry module (every entry signature is
cross-checked against the .cu text), a Linux-gated driver facade, #[ignore]d GPU smokes
and zero-pin placeholder PTX. All modes are off by default; KAR's closed-launch ABI is
widened to 24 arguments with a 64-bit scalar.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
keyless.rs: SKLROUT1 artifact admission (layout cross-read against prepare-keyless-routing.py),
fmaf-order query routing, positional key reconstruction. cvec.rs: GGUF v3 parsing and the
load_control_vectors table builder (19 golden cases incl. the Original's error texts,
bit-exact, from the Original function extracted verbatim) and a reduction-tree twin of
cvec_kernel. attn.rs: scratch arithmetic and an f64 GQA reference. The emulated kernel
text reproduces routing and cvec bit for bit and attention modes 2/3/4 (incl. M-RoPE) to
1.6e-7 relative L2.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
kv_plan/qsa_state_bytes/host copy sizing equal layer.cpp's own functions (extracted verbatim)
over 480 format x context x ring x --kv-resident cases. StreamMap::resolve models the
kernel's three phases sequentially; the miss-list order is the only device nondeterminism
and is supplied as input. The literal kv_stream.cu text, run with 1024 emulated threads,
reproduces the model state after each of 45 calls with constant eviction.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Six offline-compilation sources spliced verbatim from the Original (kv_q4.cu, kv_q8.cu,
kv_stream.cu, keyless.cu, cvec.cu, qsa_decode_attn.cu modes 2/3/4) with flat extern C
entries; kernel bodies are byte-identical, only signatures and launch geometry moved.
A thread-per-CUDA-thread emulation header runs the kernel text on the host; the FWHT,
Q4_0, INT8, V-only, K8V4 and streaming-append paths match the Rust references bit for
bit (new cache module = CPU twin of the pool data movement). No GPU, no nvcc.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
New pure crate with the arithmetic of f16_bits.hpp, kv_q4.cu and kv_q8.cu, the
cell layouts and byte sizes of fp16/INT8/rotated INT8/Q4_0/K8V4/keyless pools
(identical per-cell figures to the memory planner: 2048/1056/576/816/528), and
the generate.cpp format-selection rules. Golden fixtures are produced by the
Original's own host code extracted verbatim with awk (FWHT, Q4_0 quantizer
under separate and fused multiply-add, INT8 K, kv_pool_bytes, kv_block_bytes).
Experimental formats are explicit; nothing is enabled by default.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>