MCPcopy
hub / github.com/deepspeedai/DeepSpeed / run_dequantize_ds

Function run_dequantize_ds

tests/unit/ops/quantizer/test_quantize.py:27–37  ·  view source on GitHub ↗
(activations, params, num_groups, q_bits, is_symmetric_quant)

Source from the content-addressed store, hash-verified

25
26
27def run_dequantize_ds(activations, params, num_groups, q_bits, is_symmetric_quant):
28 global inference_module
29 if inference_module is None:
30 inference_module = QuantizerBuilder().load()
31 return inference_module.dequantize(
32 activations,
33 params,
34 num_groups,
35 q_bits,
36 inference_module.Symmetric if is_symmetric_quant else inference_module.Asymmetric,
37 )
38
39
40def get_q_props(q_bits):

Callers 1

test_float_quantizeFunction · 0.85

Calls 3

QuantizerBuilderClass · 0.90
loadMethod · 0.45
dequantizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…