Archived
libr4d's recurrent update and chunk scan already read the state's width off the cache; the plugin declared it f32 unconditionally because f16 changes the generated text. A deployment may now trade that: RADIANCE_GDN_STATE_F16=1 (exactly) declares the cache f16, anything else keeps f32, and the declare log says so. The default does not change. Lossy. Qwen3.8-27B (MXFP4, TP2), mean KL against the bf16 reference, f32 -> f16: - k6_v4 KV: chunk 2048 0.040238 -> 0.040005; chunk 64 (the state stored and rounded every 64 tokens) 0.039607 -> 0.040468, top-1 94.07 -> 94.00 %; - fp8 KV: chunk 2048 0.039171 -> 0.039600 (+1.1 %), chunk 64 0.039327 -> 0.039690 (+0.9 %). It halves the state pool, its host checkpoints and the state's traffic, which grows with the decoding sequences. Decode on two R9700s, greedy, three rounds (medians, tok/s, f32 -> f16): - no speculation: 1 stream 67.1 -> 67.5 (+0.6 %), 4 246.8 -> 253.3 (+2.6 %), 16 708.0 -> 779.5 (+10.1 %); the rounds agree to a tenth; - speculation 7: 1 stream 222.2 -> 215.1 (-3.2 %), 4 636.9 -> 621.0 (-2.5 %), 16 1223.8 -> 1276.7 (+4.3 %); f16 also changes which drafts the greedy text accepts, and the text and the step were not separated. So it is for many concurrent sequences where the KL is acceptable. GUIDE §4.4 has the tables. arch_test: the state group is f32 unset, at "0" and at "yes", f16 at "1". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>