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

Function dequantize_fp4

bitsandbytes/functional.py:972–979  ·  view source on GitHub ↗
(
    A: torch.Tensor,
    quant_state: Optional[QuantState] = None,
    absmax: Optional[torch.Tensor] = None,
    out: Optional[torch.Tensor] = None,
    blocksize: Optional[int] = None,
)

Source from the content-addressed store, hash-verified

970
971
972def dequantize_fp4(
973 A: torch.Tensor,
974 quant_state: Optional[QuantState] = None,
975 absmax: Optional[torch.Tensor] = None,
976 out: Optional[torch.Tensor] = None,
977 blocksize: Optional[int] = None,
978) -> torch.Tensor:
979 return dequantize_4bit(A, quant_state, absmax, out, blocksize, "fp4")
980
981
982def dequantize_nf4(

Callers

nothing calls this directly

Calls 1

dequantize_4bitFunction · 0.70

Tested by

no test coverage detected