Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vahe1994/AQLM
/ functions
Functions
225 in github.com/Vahe1994/AQLM
⨍
Functions
225
◇
Types & classes
13
↳
Endpoints
1
Function
code2x8_matmat_dequant_transposed_meta
(input, codes, codebooks, scales, bias)
inference_lib/src/aqlm/inference_kernels/cuda_kernel.py:89
Function
code2x8_matmat_meta
(input, codes, codebooks, scales, bias)
inference_lib/src/aqlm/inference_kernels/cuda_kernel.py:63
Function
dequantize_gemm
( input: torch.Tensor, # [..., in_features] codes: torch.IntTensor, # [num_out_groups, num_in_grou
inference_lib/src/aqlm/inference_kernels/dequantization.py:9
Method
extra_repr
(self)
src/aq.py:283
Method
forward
(self, inp, **kwargs)
main.py:128
Method
forward
(self, input, *args, **kwargs)
main.py:481
Method
forward
(self, input: torch.Tensor)
inference_lib/src/aqlm/inference.py:68
Method
forward
( ctx: Any, input: torch.Tensor, codes: torch.IntTensor, codeb
inference_lib/src/aqlm/inference.py:102
Method
forward
(self, input: torch.Tensor)
src/aq.py:29
Method
forward
Differentably reconstruct the weight (or parts thereof) from compressed components :param selection: By default, reconstruct the enti
src/aq.py:200
Function
from_pretrained_aqlm
(*args, **kwargs)
lmeval.py:159
Function
get_layers_prefix
(config: transformers.PretrainedConfig)
src/modelutils.py:288
Function
get_mean_nbits_by_codebook
Calculates average code length in codebooks. :param codes: codebook codes :param huffman_group_size: huffman compresssion dimension count
src/utils.py:17
Function
group_texts
Group tokenized examples together and split them into blocks of up to block_size tokens
src/datautils.py:269
Function
maybe_script
Apply torch.jit.script to function unless one is using TPU. TPU does not support torch.jit.script.
inference_lib/src/aqlm/utils.py:35
Function
maybe_script
Apply torch.jit.script to function unless one is using TPU. TPU does not support torch.jit.script.
src/utils.py:56
Function
numba_gemm_lut
( input: torch.Tensor, # [..., in_features] codes: torch.IntTensor, # [num_out_groups, num_in_grou
inference_lib/src/aqlm/inference_kernels/numba_kernel.py:10
Function
numba_gemv_lut_
(x, codebooks, codes_alt, scales)
inference_lib/src/aqlm/inference_kernels/numba_kernel.py:38
Function
optimize_for_training
WARNING: `optimize_for_training` is deprecated. The optimization now happens automatically at runtime. OBSOLETE: Use this context manager dur
inference_lib/src/aqlm/inference_kernels/kernel_selector.py:9
Function
read_quant_weight_from_file
(load_path, block_i, layer_name, device)
src/modelutils.py:190
Method
shape
(self)
src/aq.py:197
Function
skip
(*args, **kwargs)
src/modelutils.py:22
Method
step
r"""Performs a single optimization step. Arguments: closure: A closure that reevaluates the model and returns the loss.
src/configurable_adam.py:100
Function
test_kl_divergence
Verify correctness of compute_kl_divergence_loss_values
src/memory_efficient_loss.py:77
Function
triton_matmul
( input: torch.Tensor, codes: torch.IntTensor, codebooks: torch.Tensor, scales: torch.Tensor,
inference_lib/src/aqlm/inference_kernels/triton_kernel.py:187
← previous
201–225 of 225, ranked by callers