Files
Tyler Michael SmithandClaude Opus 4.6 36b60baf60 Fix EPLB + NVFP4 modelopt: use direct Parameter assignment for g1/g2_alphas
PR #34646 uses replace_parameter() to register g1_alphas and g2_alphas,
but these are never pre-registered in create_weights(), so
replace_parameter's getattr(mod, name) raises AttributeError.

Switch to direct nn.Parameter assignment (matching the compressed_tensors
path in the same PR) so the parameters are properly registered on the
layer. This ensures get_expert_weights() includes them in the EPLB
rearrangement set, and the quant config holds a reference to the same
tensor that EPLB modifies in-place.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
2026-03-07 16:50:51 -05:00
..
2026-03-05 17:05:46 +00:00