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

Function _

bitsandbytes/backends/cpu/ops.py:29–33  ·  view source on GitHub ↗
(A: torch.Tensor, B: torch.Tensor)

Source from the content-addressed store, hash-verified

27
28 @register_kernel("bitsandbytes::int8_linear_matmul", "cpu")
29 def _(A: torch.Tensor, B: torch.Tensor):
30 return torch._int_mm(
31 A.reshape(-1, A.shape[-1]),
32 B.t(),
33 ).reshape(*A.shape[:-1], B.shape[0])
34
35
36if not isinstance(lib, ErrorHandlerMockBNBNativeLibrary):

Callers

nothing calls this directly

Calls 4

get_ptrFunction · 0.90
_get_4bit_codeFunction · 0.85
_dequantize_4bit_computeFunction · 0.85
toMethod · 0.45

Tested by

no test coverage detected