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

Function get_quant_scheme

app/utils/model_utils.py:465–471  ·  view source on GitHub ↗
(quant_detected, quant_op_val)

Source from the content-addressed store, hash-verified

463
464
465def get_quant_scheme(quant_detected, quant_op_val):
466 if quant_op_val == "torch":
467 return f"{quant_detected}-torchao"
468 elif quant_op_val == "triton":
469 return f"{quant_detected}-triton"
470 else:
471 return f"{quant_detected}-{quant_op_val}"
472
473
474def build_wan21(

Callers 4

build_wan21Function · 0.85
build_wan22Function · 0.85
build_qwen_imageFunction · 0.85
build_z_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected