MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / quantize

Method quantize

op_builder/supa/quantizer.py:32–33  ·  view source on GitHub ↗
(input_vals, groups, num_bits, quant_type)

Source from the content-addressed store, hash-verified

30
31 @staticmethod
32 def quantize(input_vals, groups, num_bits, quant_type):
33 return SUPAQuantizer._op('quantize')(input_vals, groups, num_bits, int(quant_type))
34
35 @staticmethod
36 def dequantize(quantized_data, params, groups, num_bits, quant_type):

Callers

nothing calls this directly

Calls 1

_opMethod · 0.45

Tested by

no test coverage detected