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

Method load_hparams

utils/convert-hf-to-gguf-bitnet.py:221–223  ·  view source on GitHub ↗
(dir_model)

Source from the content-addressed store, hash-verified

219
220 @staticmethod
221 def load_hparams(dir_model):
222 with open(dir_model / "config.json", "r", encoding="utf-8") as f:
223 return json.load(f)
224
225 @classmethod
226 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