Bitsandbytes documentation

Other algorithms

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Other algorithms

WIP: Still incomplete… Community contributions would be greatly welcome!

This is an overview of the bnb.functional API in bitsandbytes that we think would also be useful as standalone entities.

Using Int8 Matrix Multiplication

For straight Int8 matrix multiplication without mixed precision decomposition you can use bnb.matmul(...). To enable mixed precision decomposition, use the threshold parameter:

bnb.matmul(..., threshold=6.0)
< > Update on GitHub