Commit Graph
8 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 085512b4f3 docs+test: experimental modes status, literal-port drift guard
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:50:14 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 9852f7a776 build(cuda): seal-plan additions for the six experimental programs (precise flags per CMakeLists policy)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:46:37 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 e80a915a47 feat(cuda-driver): experimental closed programs (opt-in, fail-closed pins, typed facades) with CPU-oracle tests
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>
2026-10-14 15:45:57 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 b219ad5d02 feat(experimental-ref): remote-experts tier planner, grouping, RemoteMeta and scatter with Original-extracted goldens
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:36:40 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 7bd31abdb2 feat(experimental-ref): keyless routing, control vectors and attention references; emulated kernel scenarios
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>
2026-10-14 15:31:44 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 1d1f5bfc14 feat(experimental-ref): KV streaming planner and CLOCK resolver oracle with golden and emulated-kernel checks
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>
2026-10-14 15:24:37 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 e493a58a68 feat(cuda-driver): literal experimental KV/keyless/cvec/stream/attention CUDA sources and a CPU kernel emulator
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>
2026-10-14 15:19:42 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 594146a79e feat(experimental-ref): CPU references of FWHT-256, Q4_0/INT8 KV quantizers and every KV cell layout
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>
2026-10-14 15:12:32 +02:00