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

Method to

bitsandbytes/functional.py:580–587  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

578 return qs_packed_dict
579
580 def to(self, device):
581 # make sure the quantization state is on the right device
582 self.code = self.code.to(device)
583 self.absmax = self.absmax.to(device)
584 if self.nested:
585 self.offset = self.offset.to(device)
586 self.state2.absmax = self.state2.absmax.to(device)
587 self.state2.code = self.state2.code.to(device)
588
589 def __eq__(self, other):
590 if not isinstance(other, QuantState):

Callers 15

from_dictMethod · 0.45
quantize_blockwiseFunction · 0.45
dequantize_blockwiseFunction · 0.45
test_kbit_backpropFunction · 0.45
test_embedding_losslessFunction · 0.45
test_embedding_errorFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_kbit_backpropFunction · 0.36
test_embedding_losslessFunction · 0.36
test_embedding_errorFunction · 0.36
generateFunction · 0.36
test_piFunction · 0.36