Repository navigation
Commit bed2983
Fix GLM-5.2 packed KV-cache layout (#559)
GLM-5.2 declared standard multi-head KV-cache inputs while DSA expected
packed single-head caches, causing an invalid `Squeeze` and incomplete
output shape inference.
- **Cache wiring**
- Use the dedicated `GlmMoeDsaTask`.
- Declare per-layer packed cache widths for full and shared indexers:
```text
key: [B, 1, T, H*(nope+rope) + optional_index_dim]
value: [B, 1, T, H*value_dim]
```
- **Regression coverage**
- Build co-located GLM tests through the production task.
- Assert symmetric past/present cache shapes for both full and shared
layers.
<!-- START COPILOT CODING AGENT SUFFIX -->
- Fixes #557
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: justinchuby <[email protected]>1 parent d33c33b commit bed2983
1 file changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
257 | 277 | | |
258 | 278 | | |
259 | 279 | | |
| |||
0 commit comments