-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d595f1
commit 03fcabd
Showing
4 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Overview | ||
The `bitsandbytes.functional` API provides the low-level building blocks for the library's features. | ||
|
||
## When to Use `bitsandbytes.functional` | ||
|
||
* When you need direct control over quantized operations and their parameters. | ||
* To build custom layers or operations leveraging low-bit arithmetic. | ||
* To integrate with other ecosystem tooling. | ||
* For experimental or research purposes requiring non-standard quantization or performance optimizations. | ||
|
||
## LLM.int8() | ||
[[autodoc]] functional.int8_double_quant | ||
|
||
[[autodoc]] functional.int8_linear_matmul | ||
|
||
[[autodoc]] functional.int8_mm_dequant | ||
|
||
[[autodoc]] functional.int8_vectorwise_deqant | ||
|
||
[[autodoc]] functional.int8_vectorwise_quant | ||
|
||
|
||
## 4-bit | ||
[[autodoc]] functional.dequantize_4bit | ||
|
||
[[autodoc]] functional.dequantize_fp4 | ||
|
||
[[autodoc]] functional.dequantize_nf4 | ||
|
||
[[autodoc]] functional.gemv_4bit | ||
|
||
[[autodoc]] functional.quantize_4bit | ||
|
||
[[autodoc]] functional.quantize_fp4 | ||
|
||
[[autodoc]] functional.quantize_nf4 | ||
|
||
[[autodoc]] functional.QuantState | ||
|
||
## General Quantization | ||
[[autodoc]] functional.dequantize_blockwise | ||
|
||
[[autodoc]] functional.quantize_blockwise | ||
|
||
## Utility | ||
[[autodoc]] functional.get_ptr | ||
|
||
[[autodoc]] functional.is_on_gpu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters