MCPcopy Index your code
hub / github.com/microsoft/BitNet / load_hparams

Method load_hparams

utils/generate-dummy-bitnet-model.py:293–295  ·  view source on GitHub ↗
(dir_model)

Source from the content-addressed store, hash-verified

291
292 @staticmethod
293 def load_hparams(dir_model):
294 with open(dir_model / "config.json", "r", encoding="utf-8") as f:
295 return json.load(f)
296
297 @classmethod
298 def register(cls, *names: str) -> Callable[[AnyModel], AnyModel]:

Callers 2

__init__Method · 0.45
mainFunction · 0.45

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected