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

Method __init__

bitsandbytes/nn/modules.py:981–996  ·  view source on GitHub ↗
(
        self,
        num_embeddings,
        embedding_dim,
        dtype=None,
        quant_storage=torch.uint8,
        device=None,
    )

Source from the content-addressed store, hash-verified

979
980class EmbeddingFP4(Embedding4bit):
981 def __init__(
982 self,
983 num_embeddings,
984 embedding_dim,
985 dtype=None,
986 quant_storage=torch.uint8,
987 device=None,
988 ):
989 super().__init__(
990 num_embeddings,
991 embedding_dim,
992 dtype=dtype,
993 quant_type="fp4",
994 quant_storage=quant_storage,
995 device=device,
996 )
997
998
999class EmbeddingNF4(Embedding4bit):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected