Commit 5a5029d
authored
Add parameter_name support to _nvfp4_inference_linear_transform (#3976)
* Add parameter_name support to _mx_inference_linear_transform
Add `parameter_name` keyword-only argument to support FqnToConfig
per-parameter quantization. Replace module.weight reads/writes with
getattr/setattr, and use _module_extra_repr partial pattern.
[ghstack-poisoned]
* Add parameter_name support to _nvfp4_inference_linear_transform
Add `parameter_name` keyword-only argument to the dynamic quantization
branch (step=None) to support FqnToConfig per-parameter quantization.
PREPARE and CONVERT branches are left unchanged as they are
Linear-specific observer flow.
[ghstack-poisoned]
* Update base for Update on "Add parameter_name support to _nvfp4_inference_linear_transform"
Add `parameter_name` keyword-only argument to the dynamic quantization
branch (step=None) to support FqnToConfig per-parameter quantization.
PREPARE and CONVERT branches are left unchanged as they are
Linear-specific observer flow.
[ghstack-poisoned]1 parent f97ec45 commit 5a5029d
2 files changed
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
1057 | 1059 | | |
1058 | 1060 | | |
1059 | 1061 | | |
| 1062 | + | |
| 1063 | + | |
1060 | 1064 | | |
1061 | 1065 | | |
1062 | 1066 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
| |||
249 | 252 | | |
250 | 253 | | |
251 | 254 | | |
252 | | - | |
| 255 | + | |
253 | 256 | | |
254 | 257 | | |
255 | 258 | | |
| |||
306 | 309 | | |
307 | 310 | | |
308 | 311 | | |
| 312 | + | |
| 313 | + | |
309 | 314 | | |
310 | 315 | | |
311 | 316 | | |
| |||
325 | 330 | | |
326 | 331 | | |
327 | 332 | | |
328 | | - | |
329 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
330 | 346 | | |
331 | 347 | | |
332 | 348 | | |
| |||
0 commit comments