Commit fdeaf7e
mmtmu
glm-dsa: only rotate lid K when cache is quantized
The online Hadamard rotation (PR ggml-org#21038) exists to suppress quantization
error. On an F16 lid cache it is a no-op and costs one extra mul_mat per
layer. Remove the force-enable for GLM_DSA and DEEPSEEK2 and let the lid
cache follow the standard rule (quantized type + aligned head dim).
Guard the Hadamard mul_mats in the builder and the set_input_k_rot call
on self_k_rot_lid being non-null, since it can legitimately be null now.1 parent d987cba commit fdeaf7e
3 files changed
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
504 | 507 | | |
505 | 508 | | |
506 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 284 | | |
291 | 285 | | |
292 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
96 | 105 | | |
97 | 106 | | |
98 | 107 | | |
| |||
0 commit comments