MCPcopy Create free account

hub / github.com/bitsandbytes-foundation/bitsandbytes / functions

Functions720 in github.com/bitsandbytes-foundation/bitsandbytes

Functionsycl_comp_kernel_submit
csrc/xpu_ops.h:23
Functionsycl_kernel_submit
csrc/xpu_ops.h:16
Methodtest_4bit_compressed_stats
(self, device, quant_type, blocksize, dtype)
tests/test_functional.py:666
Functiontest_4bit_embedding_warnings
(device, caplog)
tests/test_modules.py:437
Functiontest_4bit_embedding_weight_fsdp_fix
(device)
tests/test_modules.py:452
Functiontest_4bit_linear_warnings
(device, caplog)
tests/test_modules.py:417
Functiontest_4bit_linear_weight_fsdp_fix
(device)
tests/test_modules.py:470
Methodtest_4bit_quant
(self, device, dtype, quant_type, blocksize)
tests/test_functional.py:583
Methodtest_4bit_quant_large
Test that we can successfully quantize a large tensor. Note that the following limitations apply: - On CUDA/XPU/ROCm, the maximum num
tests/test_functional.py:702
Functiontest_adagrad8bit_rejects_non_8_optim_bits
()
tests/test_optim.py:737
Functiontest_ademamix_state_dict_no_nan
Test that AdEMAMix can save/load state_dict and continue training without NaN. Regression test for https://github.com/bitsandbytes-foundation/bit
tests/test_optim.py:593
Methodtest_bench_4bit_dequant
(self, quant_type)
tests/test_functional.py:732
Functiontest_bench_8bit_training
(batch, seq, model, hidden)
benchmarking/int8/training_benchmark.py:28
Methodtest_bench_dequantization
(self)
tests/test_functional.py:328
Functiontest_bench_matmul
(batch, seq, model, hidden)
benchmarking/matmul_benchmark.py:30
Functiontest_benchmark_blockwise
(dim1, dim2, gtype, optim_name, device)
tests/test_optim.py:552
Methodtest_blockwise_cpu_large
(self, hidden, blocksize)
tests/test_functional.py:202
Methodtest_coo_double_quant
(self, device, dim1, dim2)
tests/test_functional.py:541
Methodtest_coo_int8_vectorwise_quant
(self, device, dim1, dim2)
tests/test_functional.py:561
Functiontest_copy_param
(device, quant_type, blocksize, compress_statistics)
tests/test_linear4bit.py:199
Methodtest_counter_balanced_under_checkpoint_early_stop
(self)
tests/test_parametrize.py:453
Methodtest_counter_never_goes_negative
(self)
tests/test_parametrize.py:487
Functiontest_deepcopy_param
(device, quant_type, blocksize, compress_statistics)
tests/test_linear4bit.py:287
Methodtest_dequant_mm
(self, device, dim1, dim4, dims, has_bias)
tests/test_functional.py:423
Methodtest_dequantize_4bit
(self, device, dtype, storage_dtype, quant_type, blocksize)
tests/test_ops.py:193
Methodtest_dequantize_blockwise
(self, device, dtype, blocksize)
tests/test_ops.py:120
Methodtest_dequantize_blockwise_non_contiguous
(self, device, dtype, blocksize)
tests/test_ops.py:403
Functiontest_different_blocksizes
Test parametrization with different block sizes to verify flexibility.
tests/test_parametrize.py:340
Methodtest_dynamic_blockwise_quantization
(self, device, dtype, nested, blocksize, signed)
tests/test_functional.py:113
Methodtest_dynamic_blockwise_quantization_large
Test that we can successfully quantize a large tensor. Note that the following limitations apply: - On CUDA/XPU/ROCm, the maximum num
tests/test_functional.py:175
Functiontest_embedding_error
(device, embedding_class, input_shape, embedding_dim, quant_storage)
tests/test_modules.py:377
Functiontest_embedding_lossless
(device, embedding_class, input_shape, embedding_dim, quant_storage)
tests/test_modules.py:326
Functiontest_embedding_not_implemented_error
()
tests/test_modules.py:487
Functiontest_error_conditions
Test that proper errors are raised for invalid inputs.
tests/test_parametrize.py:249
Methodtest_few_bit_quant
(self, device, bits, method)
tests/test_functional.py:225
Methodtest_fp8_quant
(self, device)
tests/test_functional.py:277
Functiontest_fsdp_state_dict_save_4bit
Integration test: FSDP get_model_state_dict with cpu_offload on a 4-bit model (#1405). Launches a single-GPU FSDP process via torchrun to exercis
tests/test_linear4bit.py:595
Methodtest_gemm_4bit
(self, device, dtype, quant_type, compress_statistics, has_bias, storage_dtype, requires_grad)
tests/test_ops.py:269
Methodtest_gemm_4bit_non_float32_offset
Regression test: offset tensors not in float32 must still produce correct results.
tests/test_ops.py:339
Methodtest_gemv_4bit
(self, device, dim, dtype, storage_type, double_quant, kind)
tests/test_functional.py:767
Methodtest_gemv_4bit
(self, device, dtype, storage_dtype, quant_type, blocksize)
tests/test_ops.py:227
Methodtest_gemv_eye_4bit
(self, device, storage_type, dtype)
tests/test_functional.py:950
Functiontest_global_config
(dim1, dim2, gtype, device)
tests/test_optim.py:300
Functiontest_gradient_behavior
Test that quantized parameters have proper gradient behavior.
tests/test_parametrize.py:415
Methodtest_int8_double_quant
(self, dim1, dim2)
tests/test_functional.py:464
Methodtest_int8_linear_matmul
(self, device, dim1, dim2, dim3, dim4, dims, ldb)
tests/test_functional.py:382
Methodtest_int8_linear_matmul
(self, device)
tests/test_ops.py:14
Methodtest_int8_linear_matmul_half
(self, device, dim1, dim2, dim3, dim4, dims)
tests/test_functional.py:400
Methodtest_int8_linear_matmul_out
(self, device)
tests/test_ops.py:26
Methodtest_int8_mm_dequant
(self, device)
tests/test_ops.py:66
Methodtest_int8_scaled_mm
(self, device, dtype, has_bias)
tests/test_ops.py:81
Methodtest_int8_vectorwise_quant
(self, threshold, device)
tests/test_ops.py:41
Methodtest_integrated_int8_linear_matmul
(self, device, dim1, dim4, inner)
tests/test_functional.py:508
Functiontest_kbit_backprop
(device, module, dtype)
tests/test_modules.py:244
Functiontest_lamb8bit_rejects_amsgrad
()
tests/test_optim.py:716
Functiontest_lamb8bit_rejects_non_default_max_unorm
()
tests/test_optim.py:725
Functiontest_lamb_max_unorm_changes_update
()
tests/test_optim.py:698
Functiontest_lamb_max_unorm_threaded_to_config
(optim_cls, max_unorm)
tests/test_optim.py:688
Functiontest_linear4bit_torch_compile
( device, quant_type, compute_dtype, compress_statistics, bias, fullgraph, mode, batch_size )
tests/test_linear4bit.py:359
Functiontest_linear4bit_torch_compile_activation_checkpointing
Regression test for #1904: __getattr__ on Params4bit causes graph breaks under torch.compile. Activation checkpointing replays the forward pass d
tests/test_linear4bit.py:458
Functiontest_linear8bit_copy_param
(linear8bit)
tests/test_linear8bitlt.py:196
Functiontest_linear8bit_deepcopy_param
(linear8bit)
tests/test_linear8bitlt.py:203
Functiontest_linear8bit_load_state_dict_raises_runtime_for_tied_weight
()
tests/test_linear8bitlt.py:242
Functiontest_linear8bit_serialization
(linear8bit)
tests/test_linear8bitlt.py:218
Functiontest_linear8bit_state_dict_skips_scb_for_tied_weight
()
tests/test_linear8bitlt.py:232
Functiontest_linear8bitlt_device_movement
Test moving a Linear8bitLt layer between CPU and an accelerator device.
tests/test_linear8bitlt.py:333
Functiontest_linear8bitlt_inference
(device, threshold)
tests/test_modules.py:65
Functiontest_linear8bitlt_no_fp16_weights
(device, threshold)
tests/test_modules.py:80
Functiontest_linear8bitlt_torch_compile
(device, threshold, bias, fullgraph, mode)
tests/test_linear8bitlt.py:260
Functiontest_linear_kbit_fp32_bias
(device, module)
tests/test_modules.py:205
Functiontest_linear_no_igemmlt
(device)
tests/test_linear8bitlt.py:28
Functiontest_linear_serialization
( device, has_fp16_weights, threshold, serialize_before_forward, deserialize_before_cuda,
tests/test_linear8bitlt.py:77
Functiontest_linear_serialization
( device, quant_type, original_dtype, compress_statistics, bias, quant_storage, save_before_forward )
tests/test_linear4bit.py:39
Functiontest_lion32bit_weight_decay
Lion must use *decoupled* weight decay (p *= 1 - lr*wd), matching the Lion paper and the lion_pytorch reference. Regression test for a couple
tests/test_optim.py:250
Functiontest_matmul_4bit
( device, dim2, dim3, dim4, dtype, req_grad, transpose_B, has_bias, compre
tests/test_autograd.py:143
Methodtest_matmul_4bit
(self, MNK, dtype, blocksize, quant_type, compress_statistics, has_bias, device)
tests/test_functional.py:989
Methodtest_matmul_4bit_weight_orientation
(self, device)
tests/test_functional.py:1016
Functiontest_matmullt
( device, dim1, dim2, dim3, dim4, funcs, dtype, req_grad, transpose, decomp, has_fp16_weights, has_bias )
tests/test_autograd.py:36
Functiontest_moe_parameter_shape
Test parametrization with MoE-style parameter shape
tests/test_parametrize.py:97
Functiontest_moe_realistic_forward
Test realistic MoE forward computation with quantized expert weights.
tests/test_parametrize.py:206
Functiontest_multiple_parameters
Test applying parametrization to multiple parameters in the same module.
tests/test_parametrize.py:306
Functiontest_normal_map_tree
()
tests/test_functional.py:1037
Functiontest_optimizer32bit
(dim1, dim2, gtype, optim_name, device)
tests/test_optim.py:167
Functiontest_optimizer8bit
(dim1, dim2, gtype, optim_name, device)
tests/test_optim.py:387
Functiontest_override
BNB_CUDA_VERSION overrides path selection.
tests/test_cuda_setup_evaluator.py:108
Functiontest_override_config_after_register
Test that override_config works when called after register_parameters (issue #1269).
tests/test_optim.py:343
Functiontest_override_invalid_format
Override value must be digits only (e.g. '124'), not dotted or alphanumeric.
tests/test_cuda_setup_evaluator.py:131
Functiontest_parametrization_forward_method
Test the Bnb4bitParametrization forward method directly.
tests/test_parametrize.py:376
Functiontest_params4bit_quant_state_attr_access
Test that Params4bit proxies QuantState attributes for FSDP state_dict traversal (#1405). PyTorch's FSDP state_dict machinery traverses FQN paths
tests/test_linear4bit.py:530
Functiontest_params4bit_real_serialization
(device, quant_type, blocksize, compress_statistics)
tests/test_linear4bit.py:316
Functiontest_params4bit_torch_chunk_split
Test that torch.chunk and torch.split preserve Params4bit subclass for FSDP2 compatibility.
tests/test_linear4bit.py:219
Functiontest_pi
(requires_cuda, model_and_tokenizer, inference_kernel, DQ, dtype)
tests/test_generation.py:78
Functiontest_prequantized_replacement
Test applying parametrization to already quantized parameters.
tests/test_parametrize.py:143
Functiontest_quant_state_preservation
Test that quantization state is properly preserved and accessible.
tests/test_parametrize.py:272
Functiontest_quant_storage_shard_roundtrip
Test that quantized weights survive a flatten-chunk-reassemble roundtrip. Non-uint8 quant_storage exists so that FSDP can shard quantized tensors
tests/test_linear4bit.py:256
Methodtest_quantize_4bit
(self, device, dtype, storage_dtype, quant_type, blocksize)
tests/test_ops.py:143
Methodtest_quantize_4bit_non_contiguous
(self, device, dtype, quant_type, blocksize)
tests/test_ops.py:431
Methodtest_quantize_4bit_not_divisible_by_blocksize
Test quantize/dequantize roundtrip when n_elements is not divisible by blocksize.
tests/test_ops.py:166
Methodtest_quantize_4bit_roundtrip_non_contiguous
End-to-end test: quantize non-contiguous, dequantize, compare with contiguous path.
tests/test_ops.py:453
Methodtest_quantize_blockwise
(self, device, dtype, blocksize)
tests/test_ops.py:100
← previousnext →601–700 of 720, ranked by callers