mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 08:18:54 +00:00
The engine read the 51.2e9-value n-gram table only as IQ4_NL (ISTA-DASLab's shard 2, 90 B/row), which is 8.1% off the checkpoint's own values per row (correlation 0.996-0.997 on rows from all 128 shards: same table, same order). The checkpoint stores it as 128 shards of [2500012, 160] F8_E4M3 plus one weight_scale. - tools/ple_fp8_pack.py copies those bytes, unchanged, into a one-tensor GGUF: per_layer_token_embd.weight [160, 320001536] as I8, with strata.ple.format = f8_e4m3 and strata.ple.scale. 51.2 GB, streamed. - PleTable opens either format; the row size (90 / 160) and the decode (IQ4_NL codebook / an E4M3 table times the scale) follow the file. PleReader takes the row size at open; its cache sizes itself by it. GGUF reader: type I8. - A PLE-only table (architecture strata-ple) is not added to the dense-projection sources. - The start line names the table's format. - ple_fp8_parity: rows through Direct, Mmap and gather_batch match torch's decode of the checkpoint bit for bit. First-token KL of the IQ4_NL table against the FP8 one: 0.0009 (1K), 0.0013 (2K), 0.0002 (4K), 0.022 (32K); mean 0.0061, top-1 4/4. Rebased onto 0.1.31 + #317 + #296 (Niko1221): one row size (`rb`) and one decoder in PleTable for the three table formats - IQ4_NL, #296's Q5_0 (110 B rows, the mapped reader only, as #296 has it) and FP8 (160 B) - and #317's SSD keep-alive picks its page inside the table at the table's own row size; 0.1.31's shard list for the dense sources keeps the PLE-only exception; ple_fp8_parity builds with STRATA_BUILD_TESTS beside #296's checks. The "PLE on" start line stays 0.1.31's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VZy1yKaDDiA8a7svdwaHio