(
A: torch.Tensor,
absmax: Optional[torch.Tensor] = None,
out: Optional[torch.Tensor] = None,
blocksize=None,
compress_statistics=False,
quant_storage=torch.uint8,
)
| 860 | |
| 861 | |
| 862 | def quantize_fp4( |
| 863 | A: torch.Tensor, |
| 864 | absmax: Optional[torch.Tensor] = None, |
| 865 | out: Optional[torch.Tensor] = None, |
| 866 | blocksize=None, |
| 867 | compress_statistics=False, |
| 868 | quant_storage=torch.uint8, |
| 869 | ): |
| 870 | return quantize_4bit(A, absmax, out, blocksize, compress_statistics, "fp4", quant_storage) |
| 871 | |
| 872 | |
| 873 | def quantize_nf4( |
nothing calls this directly
no test coverage detected