MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / __init__

Method __init__

tools/convert/quant/quant.py:129–131  ·  view source on GitHub ↗
(self, weight)

Source from the content-addressed store, hash-verified

127 w = w.cuda().to(torch.bfloat16)
128 w_q, scales = scaled_mxfp4_quant(w)
129 w_q, scales = w_q.to(device), scales.to(device)
130 return w_q, scales, self.extra
131
132
133@CONVERT_WEIGHT_REGISTER("mxfp6")
134class QuantWeightMxFP6(QuantTemplate):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected