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

Method __init__

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

Source from the content-addressed store, hash-verified

13try:
14 from lightx2v_kernel.gemm import scaled_mxfp4_quant, scaled_mxfp6_quant, scaled_mxfp8_quant, scaled_nvfp4_quant
15except ImportError:
16 pass
17
18
19CONVROT_GROUPSIZES = (256, 64, 16)
20
21
22class QuantTemplate(metaclass=ABCMeta):
23 def __init__(self, weight):
24 if weight.dim() != 2:
25 raise ValueError(f"Only 2D tensors supported. Got {weight.dim()}D tensor")

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected