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

Method from_model_architecture

utils/generate-dummy-bitnet-model.py:308–312  ·  view source on GitHub ↗
(cls, arch)

Source from the content-addressed store, hash-verified

306
307 @classmethod
308 def from_model_architecture(cls, arch):
309 try:
310 return cls._model_classes[arch]
311 except KeyError:
312 raise NotImplementedError(f'Architecture {arch!r} not supported!') from None
313
314 def _is_model_safetensors(self) -> bool:
315 return Model.count_model_parts(self.dir_model, ".safetensors") > 0

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected