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

Method load

convert.py:153–161  ·  view source on GitHub ↗
(model_plus: ModelPlus)

Source from the content-addressed store, hash-verified

151
152 @staticmethod
153 def load(model_plus: ModelPlus) -> PredictorParams:
154 config_path = model_plus.paths[0].parent / "config.json"
155
156 if config_path.exists():
157 params = PredictorParams.loadPredictorJson(model_plus.model, config_path)
158 else:
159 params = PredictorParams()
160
161 return params
162
163@dataclass
164class Params:

Callers

nothing calls this directly

Calls 2

PredictorParamsClass · 0.70
loadPredictorJsonMethod · 0.45

Tested by

no test coverage detected