Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitsandbytes-foundation/bitsandbytes
/ types & classes
Types & classes
117 in github.com/bitsandbytes-foundation/bitsandbytes
⨍
Functions
720
◇
Types & classes
117
↳
Endpoints
78
↓ 8 callers
Class
ParametrizeTestModule
Test module with different parameter shapes for testing parametrization.
tests/test_parametrize.py:20
↓ 5 callers
Class
Linear8bitLt
This class is the base module for the [LLM.int8()](https://arxiv.org/abs/2208.07339) algorithm. To read more about it, have a look at the pap
bitsandbytes/nn/modules.py:1018
↓ 4 callers
Class
Params4bit
bitsandbytes/nn/modules.py:213
↓ 4 callers
Class
QuantState
container for quantization state components to work with Params4bit and similar classes
bitsandbytes/functional.py:420
↓ 3 callers
Class
Bnb4bitParametrization
A parametrization module that handles dequantization of a 4-bit quantized parameter. The parameter data is expected to be already quantized
bitsandbytes/nn/parametrize.py:11
↓ 3 callers
Class
CUDASpecs
bitsandbytes/cuda_specs.py:13
↓ 3 callers
Class
Int8Params
bitsandbytes/nn/modules.py:719
↓ 2 callers
Class
MatmulLtState
bitsandbytes/autograd/_functions.py:58
↓ 2 callers
Class
MockArgs
bitsandbytes/optim/optimizer.py:20
↓ 1 callers
Class
Adam
bitsandbytes/optim/adam.py:9
↓ 1 callers
Class
BNBNativeLibrary
bitsandbytes/cextension.py:83
↓ 1 callers
Class
Chain
tests/test_parametrize.py:461
↓ 1 callers
Class
CheckpointedNet
tests/test_linear4bit.py:483
↓ 1 callers
Class
CudaBNBNativeLibrary
bitsandbytes/cextension.py:109
↓ 1 callers
Class
ErrorHandlerMockBNBNativeLibrary
Mock library handler that defers errors until native methods are called. This class serves as a fallback when the native bitsandbytes librar
bitsandbytes/cextension.py:171
↓ 1 callers
Class
Lion
bitsandbytes/optim/lion.py:8
↓ 1 callers
Class
MLP8bit
tests/test_modules.py:25
↓ 1 callers
Class
MoEModule
tests/test_parametrize.py:105
↓ 1 callers
Class
MockArgs
tests/test_modules.py:19
↓ 1 callers
Class
SimpleMoE
tests/test_parametrize.py:211
↓ 1 callers
Class
SimpleQLoRAModel
Minimal model with a frozen 4-bit base layer and a trainable adapter.
tests/fsdp_state_dict_save.py:51
↓ 1 callers
Class
Streamer
benchmarking/xpu/inference_benchmark.py:51
↓ 1 callers
Class
XpuBNBNativeLibrary
XPU native library with SYCL USM paged memory support.
bitsandbytes/cextension.py:118
Class
AdEMAMix
bitsandbytes/optim/ademamix.py:107
Class
AdEMAMix32bit
bitsandbytes/optim/ademamix.py:355
Class
AdEMAMix8bit
bitsandbytes/optim/ademamix.py:270
Class
Adagrad
bitsandbytes/optim/adagrad.py:8
Class
Adagrad32bit
bitsandbytes/optim/adagrad.py:131
Class
Adagrad8bit
bitsandbytes/optim/adagrad.py:67
Class
Adam32bit
bitsandbytes/optim/adam.py:126
Class
Adam8bit
bitsandbytes/optim/adam.py:62
Class
AdamW
bitsandbytes/optim/adamw.py:9
Class
AdamW32bit
bitsandbytes/optim/adamw.py:126
Class
AdamW8bit
bitsandbytes/optim/adamw.py:62
Class
BinaryDistribution
setup.py:15
Class
CUBLAS_Context
bitsandbytes/functional.py:49
Enum
DataType_t
csrc/common.h:3
Class
Embedding
Embedding class to store and retrieve word embeddings from their indices.
bitsandbytes/nn/modules.py:134
Class
Embedding4bit
This is the base class similar to Linear4bit. It implements the 4-bit quantization algorithm presented in [QLoRA](https://arxiv.org/abs/2305.
bitsandbytes/nn/modules.py:880
Class
Embedding8bit
This class implements [LLM.int8()](https://arxiv.org/abs/2208.07339) algorithm for embedding layer Quantization API is similar to Linear8bit
bitsandbytes/nn/modules.py:833
Class
EmbeddingFP4
bitsandbytes/nn/modules.py:980
Class
EmbeddingNF4
bitsandbytes/nn/modules.py:999
Class
ExtBuildPy
setup.py:20
Class
FFN
tests/test_functional.py:50
Class
GlobalOptimManager
A global optimizer manager for enabling custom optimizer configs.
bitsandbytes/optim/optimizer.py:26
Class
GlobalOutlierPooler
bitsandbytes/autograd/_functions.py:25
Class
GlobalPageManager
bitsandbytes/functional.py:25
Class
LAMB
bitsandbytes/optim/lamb.py:8
Class
LAMB32bit
bitsandbytes/optim/lamb.py:137
Class
LAMB8bit
bitsandbytes/optim/lamb.py:67
Class
LARS
bitsandbytes/optim/lars.py:11
Class
LARS32bit
bitsandbytes/optim/lars.py:118
Class
LARS8bit
bitsandbytes/optim/lars.py:66
Class
LUTCache
Per-thread LUT cache with multiple slots to avoid rebuilding when alternating codebooks
csrc/cpu_ops.cpp:523
Class
Linear4bit
This class is the base module for the 4-bit quantization algorithm presented in [QLoRA](https://arxiv.org/abs/2305.14314). QLoRA 4-bit linear
bitsandbytes/nn/modules.py:504
Class
LinearFP4
Implements the FP4 data type.
bitsandbytes/nn/modules.py:640
Class
LinearNF4
Implements the NF4 data type. Constructs a quantization data type where each bin has equal area under a standard normal distribution N(0, 1) that
bitsandbytes/nn/modules.py:676
Class
Lion32bit
bitsandbytes/optim/lion.py:99
Class
Lion8bit
bitsandbytes/optim/lion.py:55
Class
MatMul4Bit
bitsandbytes/autograd/_functions.py:300
Class
MatMul8bitFp
bitsandbytes/autograd/_functions.py:245
Class
MatMul8bitLt
bitsandbytes/autograd/_functions.py:101
Class
Optimizer1State
bitsandbytes/optim/optimizer.py:593
Class
Optimizer2State
bitsandbytes/optim/optimizer.py:403
Class
Optimizer8bit
bitsandbytes/optim/optimizer.py:117
Class
OutlierAwareLinear
bitsandbytes/nn/modules.py:1197
Class
OutlierTracer
bitsandbytes/utils.py:44
Class
PagedAdEMAMix
bitsandbytes/optim/ademamix.py:326
Class
PagedAdEMAMix32bit
bitsandbytes/optim/ademamix.py:386
Class
PagedAdEMAMix8bit
bitsandbytes/optim/ademamix.py:299
Class
PagedAdam
bitsandbytes/optim/adam.py:179
Class
PagedAdam32bit
bitsandbytes/optim/adam.py:296
Class
PagedAdam8bit
bitsandbytes/optim/adam.py:232
Class
PagedAdamW
bitsandbytes/optim/adamw.py:179
Class
PagedAdamW32bit
bitsandbytes/optim/adamw.py:290
Class
PagedAdamW8bit
bitsandbytes/optim/adamw.py:229
Class
PagedLion
bitsandbytes/optim/lion.py:143
Class
PagedLion32bit
bitsandbytes/optim/lion.py:228
Class
PagedLion8bit
bitsandbytes/optim/lion.py:187
Class
PytorchLARS
bitsandbytes/optim/lars.py:170
Class
RMSprop
bitsandbytes/optim/rmsprop.py:8
Class
RMSprop32bit
bitsandbytes/optim/rmsprop.py:117
Class
RMSprop8bit
bitsandbytes/optim/rmsprop.py:64
Class
SGD
bitsandbytes/optim/sgd.py:8
Class
SGD32bit
bitsandbytes/optim/sgd.py:107
Class
SGD8bit
bitsandbytes/optim/sgd.py:59
Class
StableEmbedding
Custom embedding layer designed to improve stability during training for NLP tasks by using 32-bit optimizer states. It is designed to reduce gra
bitsandbytes/nn/modules.py:28
Class
Test4bitBlockwiseQuantOps
tests/test_ops.py:137
Class
Test8BitBlockwiseQuantizeFunctional
tests/test_functional.py:104
Class
TestInt8BlockwiseQuantOps
tests/test_ops.py:96
Class
TestLLMInt8Functional
tests/test_functional.py:350
Class
TestLLMInt8Ops
tests/test_ops.py:12
Class
TestNonContiguousInputs
Regression tests for #1342 and #1690: quantization must handle non-contiguous tensors correctly.
tests/test_ops.py:378
Class
TestParametrizationCacheCounterUnderCheckpointing
The cache-gate hooks must stay balanced under activation checkpointing. ``use_reentrant=False`` checkpointing aborts its backward recompute mid-f
tests/test_parametrize.py:436
Class
TestQuantize4BitFunctional
tests/test_functional.py:575
Class
Timer
tests/test_functional.py:66
Class
Unroll
csrc/cpu_ops.h:45
Class
Unroll<1>
csrc/cpu_ops.h:52
Class
_ReferenceAdEMAMix
Reference: https://hf.co/papers/2409.03137
bitsandbytes/optim/ademamix.py:11
Class
bf16_t
csrc/cpu_ops.h:132
next →
1–100 of 117, ranked by callers