Repository navigation
exl3 decode: read the trellis through ld.global.nc.L1::no_allocate - #1534
Conversation
|
Thanks @BadAd84. The load reads the same address and value, and the trellis, MMA, K walk and epilogue are unchanged. The one-line comment in Could you pin the exact GLM checkpoint revision behind your TP=3 numbers, so we can reproduce them? The shared helper reaches more than the expert decode: the linear, segmented, optional |
|
The checkpoint is The rest of the rig, so the numbers reproduce: 3x GB10 at TP=3,
On the reach, you have it right and I am glad you checked: the helper is picked up by every caller of The value at each address is unchanged, which is what the reply digests are evidence for: both builds produce identical digests across the harness prompt set, so the change is the cache policy and nothing else. One thing I have not verified and will not claim: the SASS. We built with CUDA 13.3 on GB10, and the only difference I would expect in your toolchain is the constant load acquiring |
The expert weight stream is read once per token and never revisited, but every trellis load went through __ldg, which allocates in the read-only cache. On a 163 GiB stream that fills L1 with lines nothing will ask for again, evicting the activations and the small tables that are reused every round. Production's decode kernel uses ld.global.nc.L1::no_allocate.v4.u32 for exactly this reason (read from its own exl3.cu). This takes the cache policy and nothing else: the same 32-bit value from the same address, bit-identical by construction and proven by reply digest, with the read-only path kept. Not the whole difference, and measured before claiming: production's lanes also read 16 contiguous bytes each where ours read 8, and it stages 1-4 steps ahead through a warp slice; both need a re-tile rather than a load swap, so they are separate work.
The lean check allows one comment line of at most 120 columns, and the helper's comment was two lines, which the gate reported as one new problem (428 against 427 on the base). One line, same content.
|
Thank you @BadAd84. This is in TensorFold 1.2.0, released today: https://github.com/ashhart/TensorFold/releases/tag/v1.2.0 It landed with your commits under your own name, so you're listed as a TensorFold contributor, and it's credited to you in the release notes and the changelog. |
The expert weight stream is read once per token and never revisited, but every trellis load went through
__ldg, which allocates in the read-only cache. On a 163 GiB stream that fills L1 with lines nothing will ask for again, evicting the activations and the small tables that are reused every round.Production's decode kernel uses
ld.global.nc.L1::no_allocate.v4.u32for exactly this reason (read from its ownexl3.cu). This takes the cache policy and nothing else: the same 32-bit value from the same address, bit-identical by construction and proven by reply digest, with the read-only path kept.Measured on 3x GB10 at TP=3 with GLM-5.3-Flash EXL3 4bpw, three rounds a cell and one fresh boot per cell, decode aggregate tok/s:
No cell regresses. The reply digests are identical across every prompt in the harness set on both builds, so the change is bit-exact.
Not the whole difference, and measured before claiming: production's lanes also read 16 contiguous bytes each where ours read 8, and it stages 1-4 steps ahead through a warp slice; both need a re-tile rather than a load swap, so they are separate work.