Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
150
def
_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
156
def
_reduces_second_last(path):
Callers
2
q
Function · 0.85
visit
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected