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

Method __init__

tests/test_linear4bit.py:484–498  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

482
483 class CheckpointedNet(torch.nn.Module):
484 def __init__(self):
485 super().__init__()
486 self.layers = torch.nn.ModuleList(
487 [
488 bnb.nn.Linear4bit(
489 dim,
490 dim,
491 bias=False,
492 compute_dtype=compute_dtype,
493 compress_statistics=compress_statistics,
494 quant_type=quant_type,
495 )
496 for _ in range(4)
497 ]
498 )
499
500 def forward(self, x):
501 for layer in self.layers:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected