MCPcopy Create free account
hub / github.com/cactus-compute/needle / deploy_quantize

Function deploy_quantize

needle/model/quantize.py:74–80  ·  view source on GitHub ↗
(params, config)

Source from the content-addressed store, hash-verified

72
73
74def deploy_quantize(params, config):
75 spec = getattr(config, "weight_bits", "") or ""
76 if spec:
77 bits_map, default_bits = parse_bits_map(spec)
78 return cq_mixed_params(params, bits_map, default_bits), spec
79 return (cq_quantize_params(params, _WEIGHT_BITS, _WEIGHT_GROUP),
80 f"CQ W{_WEIGHT_BITS}")
81
82
83def weight_bits():

Callers

nothing calls this directly

Calls 3

parse_bits_mapFunction · 0.85
cq_mixed_paramsFunction · 0.85
cq_quantize_paramsFunction · 0.85

Tested by

no test coverage detected