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

Method __init__

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

Source from the content-addressed store, hash-verified

82 stochastic_rounding=0,
83 )
84 self.extra["convrot_groupsize"] = torch.tensor(convrot_groupsize, dtype=torch.int32, device=w.device)
85 return w_q.contiguous(), params.scale.to(torch.float32).contiguous(), self.extra
86
87
88@CONVERT_WEIGHT_REGISTER("fp8")
89class QuantWeightFP8(QuantTemplate):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected