MCPcopy Create free account
hub / github.com/microsoft/BitNet / register

Method register

utils/generate-dummy-bitnet-model.py:298–305  ·  view source on GitHub ↗
(cls, *names: str)

Source from the content-addressed store, hash-verified

296
297 @classmethod
298 def register(cls, *names: str) -> Callable[[AnyModel], AnyModel]:
299 assert names
300
301 def func(modelcls: type[Model]):
302 for name in names:
303 cls._model_classes[name] = modelcls
304 return modelcls
305 return func
306
307 @classmethod
308 def from_model_architecture(cls, arch):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected