(
A: torch.Tensor,
absmax: Optional[torch.Tensor] = None,
out: Optional[torch.Tensor] = None,
blocksize=None,
compress_statistics=False,
quant_storage=torch.uint8,
)
| 871 | |
| 872 | |
| 873 | def quantize_nf4( |
| 874 | A: torch.Tensor, |
| 875 | absmax: Optional[torch.Tensor] = None, |
| 876 | out: Optional[torch.Tensor] = None, |
| 877 | blocksize=None, |
| 878 | compress_statistics=False, |
| 879 | quant_storage=torch.uint8, |
| 880 | ): |
| 881 | return quantize_4bit(A, absmax, out, blocksize, compress_statistics, "nf4", quant_storage) |
| 882 | |
| 883 | |
| 884 | def quantize_4bit( |
nothing calls this directly
no test coverage detected