MCPcopy Create free account

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

Functions720 in github.com/bitsandbytes-foundation/bitsandbytes

Functionexecute_and_return
(command_string: str)
bitsandbytes/utils.py:104
Functionfill
(A, value, device=None, prefetch=True)
bitsandbytes/functional.py:142
Functionfmt_gb
(nbytes)
examples/xpu/benchmark_paged_memory.py:146
Methodforward
( ctx: torch.autograd.function.FunctionCtx, A: torch.Tensor, B: torch.Tensor,
bitsandbytes/autograd/_functions.py:103
Methodforward
(ctx, A, B, out=None, bias=None, state=MatmulLtState)
bitsandbytes/autograd/_functions.py:252
Methodforward
(ctx, A, B, out=None, bias=None, quant_state: Optional[F.QuantState] = None)
bitsandbytes/autograd/_functions.py:304
Methodforward
(self, input: Tensor)
bitsandbytes/nn/modules.py:117
Methodforward
(self, input: Tensor)
bitsandbytes/nn/modules.py:199
Methodforward
(self, x: torch.Tensor)
bitsandbytes/nn/modules.py:609
Methodforward
(self, input: Tensor)
bitsandbytes/nn/modules.py:862
Methodforward
(self, input: Tensor)
bitsandbytes/nn/modules.py:966
Methodforward
(self, x: torch.Tensor)
bitsandbytes/nn/modules.py:1180
Methodforward
(self, x)
bitsandbytes/nn/modules.py:1209
Methodforward
(self, x)
tests/test_modules.py:41
Methodforward
(self, x)
tests/fsdp_state_dict_save.py:59
Methodforward
(self, x)
tests/test_linear4bit.py:500
Methodforward
(self, x)
tests/test_functional.py:60
Methodforward
(self, x, expert_idx=0)
tests/test_parametrize.py:217
Methodforward
(self, x)
tests/test_parametrize.py:467
Methodforward_with_outliers
(self, x, outlier_idx)
bitsandbytes/nn/modules.py:1203
Functiongemv_4bit
( A: Tensor, B: Tensor, out: Optional[torch.Tensor] = None, transposed_A=False, transposed
bitsandbytes/functional.py:1300
Functiongemv_4bit
( A: torch.Tensor, B: torch.Tensor, shapeB: Sequence[int], absmax: torch.Tensor, code: tor
bitsandbytes/backends/triton/ops.py:146
Functiongemv_4bit_inference
csrc/xpu_ops.cpp:34
Functiongemv_4bit_inference
csrc/cpu_ops.cpp:866
Functiongemv_4bit_inference_cpu_fp4_bf16
csrc/pythonInterface.cpp:821
Functiongemv_4bit_inference_cpu_nf4_bf16
csrc/pythonInterface.cpp:828
Functiongenerate
(model, tokenizer, text, generation_config, prompt_func=get_prompt_for_generation_eval)
tests/test_generation.py:56
Functionget_args
()
tests/test_modules.py:47
Functionget_available_devices
(no_cpu=False)
tests/helpers.py:21
Functionget_cache_blocks
csrc/cpu_ops.h:32
Functionget_context
csrc/pythonInterface.cpp:522
Methodget_current_outlier_idx
(self)
bitsandbytes/autograd/_functions.py:50
Methodget_instance
(cls)
bitsandbytes/functional.py:35
Methodget_instance
(cls)
bitsandbytes/autograd/_functions.py:36
Functionget_paged
(*shape, dtype=torch.float32, device=FIRST_CUDA_DEVICE)
bitsandbytes/functional.py:91
Functionget_prompt_for_generation_eval
(text, add_roles=True)
tests/test_generation.py:44
Functionhas_avx512bf16_cpu
csrc/pythonInterface.cpp:838
Functionhas_avx512f_cpu
csrc/pythonInterface.cpp:836
Methodhas_ext_modules
(self)
setup.py:16
Methodhas_imma
(self)
bitsandbytes/cuda_specs.py:19
Functionid_formatter
Return a function that formats the value given to it with the given label.
tests/helpers.py:83
Functionigemm
( A: Tensor, B: Tensor, out: Optional[torch.Tensor] = None, transposed_A=False, transposed
bitsandbytes/functional.py:1338
Methodinit_state
(self, group, p, gindex, pindex)
bitsandbytes/optim/optimizer.py:492
Methodinit_state
(self, group, p, gindex, pindex)
bitsandbytes/optim/optimizer.py:664
Methodinit_state
(self, group, p, gindex, pindex)
bitsandbytes/optim/ademamix.py:139
Methodinitialize
(self)
bitsandbytes/functional.py:31
Functionint8_double_quant
Determine the quantization statistics for input matrix `A` in accordance to the `LLM.int8()` algorithm. The statistics are determined both row-wi
bitsandbytes/functional.py:1590
Functionint8_linear_matmul
Performs an 8-bit integer matrix multiplication. A linear transformation is applied such that `out = A @ B.T`. When possible, integer tensor core
bitsandbytes/functional.py:1536
Functionint8_mm_dequant
Performs dequantization on the result of a quantized int8 matrix multiplication. Args: A (`torch.Tensor` with dtype `torch.int32`): The r
bitsandbytes/functional.py:1562
Functionint8_vectorwise_dequant
Dequantizes a tensor with dtype `torch.int8` to `torch.float32`. Args: A (`torch.Tensor` with dtype `torch.int8`): The quantized int8 ten
bitsandbytes/functional.py:1641
Functionint8_vectorwise_quant
Quantizes a tensor with dtype `torch.float16` to `torch.int8` in accordance to the `LLM.int8()` algorithm. For more information, see the [LLM.int
bitsandbytes/functional.py:1655
MethodkDequantizeBlockwise
csrc/xpu_kernels.h:11
Methodkgemv_4bit_inference
csrc/xpu_kernels.h:28
Functionlookup_code_index
csrc/cpu_ops.cpp:20
Functionmatmul
( A: torch.Tensor, B: torch.Tensor, out: Optional[torch.Tensor] = None, state: Optional[Matmul
bitsandbytes/autograd/_functions.py:389
Functionmatmul_4bit
( A: torch.Tensor, B: torch.Tensor, quant_state: F.QuantState, out: Optional[torch.Tensor] = N
bitsandbytes/autograd/_functions.py:407
Functionmaybe_rearrange_weight
(state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
bitsandbytes/nn/modules.py:812
Functionmodel_and_tokenizer
(request)
tests/test_generation.py:68
Functionneon_absmax
csrc/cpu_ops.cpp:169
Functionneon_lut_lookup_flat
Efficient NEON float LUT lookup using indexed lane extraction The LUT has 16 float entries stored as a flat array for direct indexing
csrc/cpu_ops.cpp:85
Methodnested_absmax
(self)
bitsandbytes/nn/modules.py:307
Methodnested_blocksize
(self)
bitsandbytes/nn/modules.py:314
Methodnested_dtype
(self)
bitsandbytes/nn/modules.py:328
Methodnested_offset
(self)
bitsandbytes/nn/modules.py:335
Methodnested_quant_map
(self)
bitsandbytes/nn/modules.py:321
Methodoffset
(self)
bitsandbytes/nn/modules.py:293
Methodoperator()
csrc/cpu_ops.h:46
Methodoperator()
csrc/cpu_ops.h:53
Methodoperator()
csrc/xpu_kernels.cpp:97
Functionoptimizer_update_32bit
Performs an inplace optimizer update with one or two optimizer states. Universal optimizer update for 32-bit state and 32/16-bit gradients/w
bitsandbytes/functional.py:1080
Functionoptimizer_update_32bit
( optimizer_name: str, g: torch.Tensor, p: torch.Tensor, state1: torch.Tensor, state2: Opt
bitsandbytes/backends/triton/ops.py:262
Functionoptimizer_update_32bit_impl
32-bit optimizer implemented by Triton
bitsandbytes/backends/triton/kernels_optim.py:360
Functionoptimizer_update_8bit_blockwise
( optimizer_name: str, g: Tensor, p: Tensor, state1: Tensor, state2: Optional[torch.Tensor
bitsandbytes/functional.py:1169
Functionoptimizer_update_8bit_blockwise
( optimizer_name: str, g: torch.Tensor, p: torch.Tensor, state1: torch.Tensor, state2: Opt
bitsandbytes/backends/triton/ops.py:183
Functionoptimizer_update_8bit_blockwise_pytorch
Pure PyTorch implementation of the 8-bit block-wise optimizer update step. This version ensures high-precision updates for float16 parameters
bitsandbytes/backends/triton/kernels_optim.py:583
Functionoptimizer_update_8bit_blockwise_triton_quant
Pure PyTorch implementation of the 8-bit block-wise optimizer update step. This version ensures high-precision updates for float16 parameters
bitsandbytes/backends/triton/kernels_optim.py:730
Functionoutlier_hook
(module, input)
bitsandbytes/utils.py:11
Methodprefetch_all
(self, to_cpu=False)
bitsandbytes/functional.py:41
Functionprint_runtime_diagnostics
()
bitsandbytes/diagnostics/cuda.py:172
Methodput
(self, t)
benchmarking/xpu/inference_benchmark.py:57
Functionpytest_runtest_call
(item)
tests/conftest.py:17
Functionpytest_runtest_teardown
(item, nextitem)
tests/conftest.py:36
Methodquant_map
(self)
bitsandbytes/nn/modules.py:286
Functionquantize_4bit
( A: torch.Tensor, blocksize: int, quant_type: str, quant_storage: torch.dtype )
bitsandbytes/backends/triton/ops.py:69
Functionquantize_4bit_blockwise_kernel
( A_ptr, code_ptr, absmax_ptr, out_ptr, n_elements, BLOCK_SIZE: tl.constexpr, CODE
bitsandbytes/backends/triton/kernels_4bit.py:519
Functionquantize_4bit_blockwise_triton
(A, blocksize, quant_type, blocks, absmax, num_elements, quantized_out)
bitsandbytes/backends/triton/kernels_4bit.py:157
Functionquantize_8bit_blockwise_kernel
( A_ptr, code_ptr, absmax_ptr, out_ptr, n_elements, BLOCK_SIZE: tl.constexpr, CODE
bitsandbytes/backends/triton/kernels_8bit_quant.py:84
Functionquantize_blockwise
(A: torch.Tensor, code: torch.Tensor, blocksize: int)
bitsandbytes/backends/triton/ops.py:17
Functionquantize_cpu_impl
csrc/cpu_ops.cpp:575
Functionquantize_fp4
( A: torch.Tensor, absmax: Optional[torch.Tensor] = None, out: Optional[torch.Tensor] = None,
bitsandbytes/functional.py:862
Functionquantize_fp4_blockwise_kernel
( A_ptr, absmax_ptr, out_ptr, n_elements, BLOCK_SIZE: tl.constexpr, SPLIT_NUM_BLOCKS:
bitsandbytes/backends/triton/kernels_4bit.py:20
Functionquantize_nf4
( A: torch.Tensor, absmax: Optional[torch.Tensor] = None, out: Optional[torch.Tensor] = None,
bitsandbytes/functional.py:873
Functionquantize_nf4_blockwise_kernel
( A_ptr, absmax_ptr, out_ptr, n_elements, BLOCK_SIZE: tl.constexpr, SPLIT_NUM_BLOCKS:
bitsandbytes/backends/triton/kernels_4bit.py:87
Functionreplace_linear
Replace linear modules with a new Linear module. Parameters: model (`torch.nn.Module`): Input model or `torch.nn.Module`
bitsandbytes/utils.py:121
Functionrequires_cuda
()
tests/conftest.py:48
Methodreset_parameters
(self)
bitsandbytes/nn/modules.py:183
Functionrocm70_spec
Simulates torch+rocm7.0.
tests/test_cuda_setup_evaluator.py:22
Methodstate2
(self)
bitsandbytes/nn/modules.py:300
Methodstep
Perform a single optimization step. Arguments: closure (`Callable`, *optional*, defaults to `None`): A closure th
bitsandbytes/optim/optimizer.py:306
Methodstep
(self, closure=None)
bitsandbytes/optim/ademamix.py:34
← previousnext →501–600 of 720, ranked by callers