Commit 70457ac
fix: Dequant dtype mismatch and fallback test for rotation changes
- Cast rotation matrix R to output dtype in dequantize_nvfp4 to handle
non-BF16 outputs (FP16, FP32).
- Update fallback test to check shape correctness instead of round-trip
error, since fallback uses plain Hadamard but dequant uses randomized.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 30138f8 commit 70457ac
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1241 | 1241 | | |
1242 | 1242 | | |
1243 | 1243 | | |
1244 | | - | |
| 1244 | + | |
1245 | 1245 | | |
1246 | 1246 | | |
1247 | 1247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
165 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
| |||
0 commit comments