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

Function quantize_module

deepspeed/module_inject/module_quantize.py:57–59  ·  view source on GitHub ↗
(model, orig_class, quantize_fn)

Source from the content-addressed store, hash-verified

55
56
57def quantize_module(model, orig_class, quantize_fn):
58 policy = {orig_class: quantize_fn}
59 return _quantize_module(model, policy)
60
61
62def _quantize_module(model, policies):

Callers 1

Calls 1

_quantize_moduleFunction · 0.85

Tested by

no test coverage detected