repair#
Transactional IQ-only repair ownership, shared by Bypass adapters.
Classes
Validated lazy weight bindings; inspection does not slice FSDP parameters. |
|
Train native IQ fields and retain input autograd through every frozen projection. |
Functions
Refuse ambiguous ownership before changing flags or materializing weight views. |
- class IQRepairPlan#
Bases:
objectValidated lazy weight bindings; inspection does not slice FSDP parameters.
- __init__(units, bindings)#
- Parameters:
units (tuple[Module, ...])
bindings (tuple[tuple[_WeightBinding, ...], ...])
- Return type:
None
- bindings: tuple[tuple[_WeightBinding, ...], ...]#
- units: tuple[Module, ...]#
- class IQRepairPolicy#
Bases:
objectTrain native IQ fields and retain input autograd through every frozen projection.
- __init__()#
Initialize an inactive, model-independent repair policy.
- close()#
Idempotently restore quantizers and caller gradient/calibration/GEMM flags.
- finalize_()#
Persist native scales, then restore all temporary behavior and flags.
- prepare(unit)#
Freeze ordinary parameters and return only native IQ scale masters.
- prepare_plan(plan, index)#
Materialize a validated unit inside its owner’s weight-lifetime scope.
- project_()#
Project prepared native fields after an optimizer update.
- plan_iq_repair(units)#
Refuse ambiguous ownership before changing flags or materializing weight views.