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

Function _is_quant_leaf

needle/model/quantize.py:150–153  ·  view source on GitHub ↗
(path, leaf)

Source from the content-addressed store, hash-verified

148
149
150def _is_quant_leaf(path, leaf):
151 key = path[-1].key
152 return ((key in ("kernel", "embedding") or key.startswith("mhc_phi"))
153 and getattr(leaf, "ndim", 0) >= 2)
154
155
156def _reduces_second_last(path):

Callers 2

qFunction · 0.85
visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected