mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #865] [CLOSED] ngram: add opt-in Q8_0 PLE table support #2882
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2882
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/865
Author: @CC-David-CC
Created: 10/5/2026
Status: ❌ Closed
Base:
main← Head:feat/q8-ple-reader📝 Commits (2)
18d3da4ngram: add opt-in Q8 PLE rows through the existing mapped readerbe379fcdocs: record standalone Q8 PLE validation and native token parity📊 Changes
7 files changed (+524 additions, -21 deletions)
View changed files
📝
CMakeLists.txt(+4 -0)➕
bench/results/q8-ple-reader-token-ids.json(+1 -0)➕
bench/results/q8-ple-reader-validation.json(+220 -0)➕
docs/Q8_PLE.md(+99 -0)📝
include/strata/kernels/ngram.hpp(+3 -2)📝
src/kernels/ngram.cpp(+51 -19)➕
src/kernels/ple_q8_parity.cpp(+146 -0)📄 Description
The PLE reader currently rejects Q8_0 tables even when the model's expert weights are supported. Add 170-byte Q8_0 rows through the existing scalar dequantizer and mapped reader.
This is the independent Q8 follow-up discussed in #689. It starts from upstream
6f32ec0and does not include or depend on the rotation patch in #864.STRATA_EXPERIMENTAL_Q8_PLE=1.--ple-io mmapand--ple-io ram; direct Q8 PLE I/O is explicitly rejected.Validation
Fresh standalone build at
18d3da487f82c8e7b5d8e91f6fdd8c75972182f1, RTX PRO 6000 Blackwell 96GB / Ryzen 7950X / GCC 13.3 / CUDA 13.2:The model uses Q8 experts/PLE, compatibility BF16 small projections and a Q5_K head. The EOS sentinel forces the count. This is a correctness check, not a quality or speedup claim. Q8 PLE row data alone is about 50.66 GiB; the full-model configuration requires substantial memory. AMD and Windows GPU execution remain untested.
Enablement and tests | Fresh receipt | Raw IDs
The guide also links the older combined branch's token-identical 1K/16K/32K rotation comparisons, clearly separated from this standalone validation.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.