repair_formats#
Differentiable IQ native scale fields; all code and additive bits stay fixed.
Classes
FP32 log-scale masters projected onto legal native FP16/integer fields. |
- class IQScaleState#
Bases:
ModuleFP32 log-scale masters projected onto legal native FP16/integer fields.
- __init__(quantizer, processed_weight, weight_shape, field_prefix)#
Capture the PTQ payload in logical projection coordinates.
- finalize_(quantizer, weight)#
Bake processed coordinates once and persist the exact native codes/scales.
- forward(inputs)#
Decode only this replay’s weight and release its expanded levels afterward.
- native_payload()#
Write only scale bits into the original native payload.
- project_()#
Bound log masters before native projection.
- projected_steps()#
Compose the codec’s native hierarchical scale geometry.
- scales()#
Project global and local fields with straight-through native rounding.
- values()#
Return canonical IDs and FP32 masters for ownership and checkpointing.