MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / cpu

Method cpu

bitsandbytes/nn/modules.py:397–398  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

395 return self
396
397 def cpu(self):
398 return self.to(device="cpu")
399
400 def cuda(self, device: Optional[int | device | str] = None, non_blocking: bool = False):
401 if getattr(self.quant_state, "packing_format_for_cpu", False):

Callers 1

unpack_tensor_to_dictFunction · 0.45

Calls 1

toMethod · 0.95

Tested by

no test coverage detected