MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / loadPredictorJson

Method loadPredictorJson

convert.py:146–150  ·  view source on GitHub ↗
(model: LazyModel, config_path: Path)

Source from the content-addressed store, hash-verified

144
145 @staticmethod
146 def loadPredictorJson(model: LazyModel, config_path: Path) -> PredictorParams:
147 config = json.load(open(config_path))
148 return PredictorParams(
149 sparse_threshold = config.get("sparse_threshold"),
150 )
151
152 @staticmethod
153 def load(model_plus: ModelPlus) -> PredictorParams:

Callers 1

loadMethod · 0.45

Calls 3

PredictorParamsClass · 0.70
loadMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected