Prototype selective CUDA staging for KAR rows
This commit is contained in:
@@ -229,3 +229,7 @@ The test toolchain was installed into ignored `artifacts/tool-venv/` for this ru
|
||||
- `scripts/check-kar-cuda-records.py` compared Rust CPU and CUDA reconstruction checksums for all 22 records in the private level-3 precision overlay. The checksum matched for **22/22** real records: full output for records up to one million values and row 0 for larger records. Thirty warm CUDA iterations per record gave isolated median decode times from 0.002496 to 0.003200 ms; recorded compressed residency ranged from 53,792 to 13,762,592 bytes. Transfer/setup time, matrix multiplication, and model-level quality are outside this measurement. The independent paired full-record L2 report for those same 22 records has median relative L2 0.50735 at base level 2 and 0.22608 at overlay level 3; this improvement is numerical, not a passed model-quality gate. The model-free temporary GPU fixture was removed after validation.
|
||||
- A local release CLI independently verified the complete 55,295,529,472-byte v4 archive and decoded row 0 of `per_layer_token_embd.weight#strata-part-001-of-002` at level 2. Its 160 F32 values have FNV-1a `c6f74b955ce5a5ae`. This is the CPU oracle for a later GPU check after the remote v4 transfer finishes and its SHA-256 is verified. The temporary local Cargo build directory was removed after this run.
|
||||
- The local CI entry point now checks Python syntax for both new offline measurement scripts and runs a mock HTTP A/B test. That test delays readiness until `max_context` becomes nonzero, requires bearer authentication, checks three case results per arm and paired output equality, and confirms the private report has mode 0600 without the token. It passed locally with Python 3; hosted GitHub Actions still cannot run until a repository is created.
|
||||
|
||||
## 2026-10-03 — selective KAR row transfer prototype
|
||||
|
||||
- Added an isolated CUDA prototype that verifies a KAR archive, gathers only the requested rows' scales and plane words into one compact packet, and decodes that packet on GPU. On RTX 5090 (driver 595.91.07, CUDA 13.2), level-3 `blk.0.ffn_gate_inp.weight` rows 0 and 1 each reconstructed to the same FNV-1a values as the independently verified Rust CPU decoder: `1a84ea920505914` and `b9359351c81dc9fb`. One row used a 1,136-byte H2D packet versus a 573,472-byte complete record prefix; two rows used 2,256 bytes versus the same prefix. The one-row test's 30 warm iterations had median H2D event time 0.003008 ms and decode event time 0.007328 ms. The existing full-prefix smoke on the same record reported `reserve_ms=0.044608` and warm decode median 0.003200 ms, but its reserve includes allocation/synchronization and the two programs have different setup paths, so these timing numbers are not a paired speedup claim. Packet construction and storage page faults are not timed. The prototype binary SHA-256 is `b05f037d68f3f4ca5d24f5a56029762d889babc8954f68050f187fe7bca9c44c`; it was built with the server's CUDA 13.2 `nvcc`. The server lacks CMake, so the new CMake target itself has not run there; the direct `nvcc` build and real CUDA execution passed.
|
||||
|
||||
Reference in New Issue
Block a user