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

Method nested_offset

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

Source from the content-addressed store, hash-verified

333
334 @property
335 def nested_offset(self):
336 qs = self.__dict__.get("quant_state")
337 if qs is not None:
338 return qs.offset
339 raise AttributeError(f"'{type(self).__name__}' object has no attribute 'nested_offset'")
340
341 def __deepcopy__(self, memo):
342 new_instance = type(self).__new__(type(self))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected