repair#
Fused application/reduction of immutable integer levels and learned block scales.
Functions
Decode projected weights without materializing a full FP32 level tensor. |
|
Decode immutable GGML levels in one native launch, without reference chunks. |
|
Sum valid squared errors while saving only the original narrow activations. |
- apply_block_scales(levels, scales, dtype)#
Decode projected weights without materializing a full FP32 level tensor.
Autograd retains integer levels and reduces scale gradients directly. Native code selection and scale-field projection remain owned by the format adapter.
- decode_iq_levels(packed, format_name, shape)#
Decode immutable GGML levels in one native launch, without reference chunks.
- masked_mse_sum(prediction, target, mask=None, features=1)#
Sum valid squared errors while saving only the original narrow activations.