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

Method __init__

bitsandbytes/functional.py:440–459  ·  view source on GitHub ↗
(
        self,
        absmax,
        shape=None,
        code=None,
        blocksize=None,
        quant_type=None,
        dtype=None,
        offset=None,
        state2=None,
    )

Source from the content-addressed store, hash-verified

438 ]
439
440 def __init__(
441 self,
442 absmax,
443 shape=None,
444 code=None,
445 blocksize=None,
446 quant_type=None,
447 dtype=None,
448 offset=None,
449 state2=None,
450 ):
451 self.absmax = absmax
452 self.shape = shape
453 self.code = code
454 self.dtype = dtype
455 self.blocksize = blocksize
456 self.quant_type = quant_type
457 self.offset = offset
458 self.state2 = state2
459 self.nested = state2 is not None
460
461 def __getattr__(self, name):
462 # Support attribute access for packed state_dict keys like "bitsandbytes__nf4".

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected