cuda: add experimental lossless compressed expert tier - #651
Conversation
|
Follow-up decode experiments on the 6x RTX 5090 host:
Current best stable balance remains the 2 GB reserve, 10,628-expert compressed |
|
Additional boundary tests:
This confirms the 2 GB reserve is a performance optimum rather than merely a |
|
Fused decode/matvec feasibility result (kept outside this PR):
This is fast enough to justify a separate end-to-end prototype, but the FP |
|
Authored by Fable 5 in Claude Code, analysis in partnership with @monotophic Wearing the #594 hat: this is great to see — a working compressed expert tier On our side, we're moving ahead with building the transport layer for the If you're open to it, we'd like to sync on the record format before we freeze (Figures are calibrations at their stated hosts/dates — yours 6×RTX 5090 |
2015c6b to
0c7c482
Compare
2026-07-28 current-dev revalidationRebased the PR's five implementation commits onto current Validation
Fixed 56-token replayThe sidecar remains tied to Two raw controls were used:
The compressed tier retained 10,628 GPU experts and reduced CPU-routed rows An independent seven-token fixed replay was directionally positive Output semantics correctionThe ANS archives still decode weight bytes exactly. However, a current greedy The older byte-identical SHA-256 result remains valid for that measured prompt, Current verdictThe mechanism survives the latest baseline at roughly +4.5% median decode
The next merge decision is therefore about accepting a scoped experimental |
|
@monotophic Thank you for the offer to converge the transport artifact. The The constraints the 6x5090 implementation has validated and would need from a
The latest fixed replay puts the honest CUDA capacity-tier gain at +4.5% Please tag me when the in-tree record schema is concrete. I can validate |
|
phase-1 of the transport layer is now a PR: #671 Still open to a record-format synch as a v2 pass if you see a benefit there. Moving forward with phase 2 development of the entropy transport layer set. |
|
@ZacharyZcR requirements answered point-by-point on the PR: #671. Short version: mostly met as shipped, container identity routes to #529, and the alignment question is yours to decide with the 6×5090 A/B — details there. |
Summary
O_DIRECTreadsThis is a scoped experimental Linux/CUDA backend. It is not enabled by
default.
Current measured result
GLM-5.2 int4 on 6x RTX 5090, rebased onto
upstream/devateb7a881.All fixed-replay runs used 19,456 resident experts, 100% expert hits, no disk
fetches during decode, and identical 33,600 routed selections.
Earlier 32-token and 128-token experiments measured larger gains
(+8.3% to +15.0%). Those results remain historical datapoints, but the current
rebased fixed-replay result above is the merge claim.
Correctness and output semantics
different raw placement: moving experts from CPU execution to CUDA changes
floating-point accumulation order, and a near tie can change later routing
and tokens.
The tier is lossless with respect to stored expert weights, not a general
cross-placement token-identity guarantee.
Validation
make -C c test-cmake -C c colibri CUDA=1 COLI_ANS=1 DIETGPU_ROOT=/data/test/dietgpu CUDA_ARCH=nativemake -C c cuda-test CUDA=1 COLI_ANS=1 DIETGPU_ROOT=/data/test/dietgpu CUDA_ARCH=nativeLimits
REPINis rejected because it invalidates that orderinginto RAM
Refs #594.