Method
__init__
(
self,
num_embeddings,
embedding_dim,
dtype=None,
quant_storage=torch.uint8,
device=None,
)
Source from the content-addressed store, hash-verified
| 979 | |
| 980 | class 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 | |
| 999 | class EmbeddingNF4(Embedding4bit): |
Callers
nothing calls this directly
Tested by
no test coverage detected