MCPcopy Create free account

hub / github.com/csguoh/OBR / types & classes

Types & classes88 in github.com/csguoh/OBR

↓ 21 callersClassFlatQuantizedLinear
FlatQuant/flatquant/flat_linear.py:8
↓ 13 callersClassActivationQuantizer
A class for quantizing the activations. We only support (both sym. and asym.) per-token quantization for the activations.
FlatQuant/flatquant/quant_utils.py:48
↓ 11 callersClassFlatQuantizedLinear
FlatQuant/flatquant/model_tools/deepseekv3_utils.py:21
↓ 7 callersClassQuantizeLinear
SpinQuant/train_utils/quant_linear.py:13
↓ 5 callersClassWeightQuantizer
From GPTQ Repo
FlatQuant/flatquant/quant_utils.py:122
↓ 3 callersClassActQuantWrapper
This class is a wrapper for the activation quantization. We extract the FP features in the forward pass and quantize the rest using the s
SpinQuant/utils/quant_utils.py:201
↓ 3 callersClassActQuantWrapper
This class is a wrapper for the activation quantization. We extract the FP features in the forward pass and quantize the rest using
QuaRot/quant_utils.py:180
↓ 3 callersClassLlamaModel
Transformer decoder consisting of *config.num_hidden_layers* layers. Each layer is a [`LlamaDecoderLayer`] Args: config: LlamaConfig
SpinQuant/eval_utils/modeling_llama.py:1011
↓ 3 callersClassLlamaModel
Transformer decoder consisting of *config.num_hidden_layers* layers. Each layer is a [`LlamaDecoderLayer`] Args: config: LlamaConfig
SpinQuant/train_utils/modeling_llama_quant.py:1012
↓ 3 callersClassLlamaRMSNorm
SpinQuant/eval_utils/modeling_llama.py:123
↓ 3 callersClassLlamaRMSNorm
SpinQuant/train_utils/modeling_llama_quant.py:125
↓ 2 callersClassActQuantizer
A class for quantizing the activations. We only support (both sym. and asym.) per-token quantization for the activations.
SpinQuant/utils/quant_utils.py:87
↓ 2 callersClassActQuantizer
A class for quantizing the activations. We only support (both sym. and asym.) per-token quantization for the activations.
QuaRot/quant_utils.py:80
↓ 2 callersClassFlatQuantMoEExpert
FlatQuant/flatquant/model_tools/deepseekv3_utils.py:365
↓ 2 callersClassLlamaRotaryEmbedding
SpinQuant/eval_utils/modeling_llama.py:146
↓ 2 callersClassLlamaRotaryEmbedding
SpinQuant/train_utils/modeling_llama_quant.py:148
↓ 2 callersClassLogFormatter
SpinQuant/utils/utils.py:86
↓ 2 callersClassLogFormatter
QuaRot/utils.py:56
↓ 2 callersClassRotateModule
SpinQuant/optimize_rotation.py:30
↓ 2 callersClassTokenizerWrapper
FlatQuant/flatquant/data_utils.py:7
↓ 1 callersClassCatcher
SpinQuant/utils/eval_utils.py:53
↓ 1 callersClassCatcher
SpinQuant/eval_utils/obr_utils.py:299
↓ 1 callersClassCatcher
SpinQuant/eval_utils/gptq_utils.py:195
↓ 1 callersClassCatcher
QuaRot/obr_utils.py:287
↓ 1 callersClassCatcher
QuaRot/eval_utils.py:59
↓ 1 callersClassCatcher
QuaRot/gptq_utils.py:287
↓ 1 callersClassCatcher
FlatQuant/gptq_utils.py:175
↓ 1 callersClassCatcher
FlatQuant/flatquant/obr_utils.py:295
↓ 1 callersClassCatcher
FlatQuant/flatquant/train_utils.py:43
↓ 1 callersClassCustomJsonDataset
SpinQuant/utils/data_utils.py:46
↓ 1 callersClassFlatQuantLlamaAttention
FlatQuant/flatquant/model_tools/llama31_utils.py:110
↓ 1 callersClassFlatQuantLlamaAttention
FlatQuant/flatquant/model_tools/llama_utils.py:110
↓ 1 callersClassFlatQuantLlamaMLP
FlatQuant/flatquant/model_tools/llama31_utils.py:17
↓ 1 callersClassFlatQuantLlamaMLP
FlatQuant/flatquant/model_tools/llama_utils.py:17
↓ 1 callersClassFlatQuantQwen2Attention
FlatQuant/flatquant/model_tools/qwen_utils.py:114
↓ 1 callersClassFlatQuantQwen2MLP
FlatQuant/flatquant/model_tools/qwen_utils.py:18
↓ 1 callersClassGPTQ
SpinQuant/eval_utils/gptq_utils.py:24
↓ 1 callersClassGPTQ
QuaRot/gptq_utils.py:14
↓ 1 callersClassGPTQ
FlatQuant/gptq_utils.py:26
↓ 1 callersClassLlamaDecoderLayer
SpinQuant/eval_utils/modeling_llama.py:799
↓ 1 callersClassLlamaDecoderLayer
SpinQuant/train_utils/modeling_llama_quant.py:798
↓ 1 callersClassLlamaMLP
SpinQuant/eval_utils/modeling_llama.py:309
↓ 1 callersClassLlamaMLP
SpinQuant/train_utils/modeling_llama_quant.py:311
↓ 1 callersClassOBR
FlatQuant/flatquant/obr_utils.py:77
↓ 1 callersClassOBR_Wrapper
SpinQuant/eval_utils/obr_utils.py:80
↓ 1 callersClassOBR_Wrapper
QuaRot/obr_utils.py:70
↓ 1 callersClassSGDG
r"""This optimizer updates variables with two different routines based on the boolean variable 'stiefel'. If stiefel is True, the var
SpinQuant/train_utils/optimizer.py:57
↓ 1 callersClassTokenizerWrapper
SpinQuant/ppl_utils.py:16
↓ 1 callersClassTokenizerWrapper
QuaRot/data_utils.py:42
↓ 1 callersClassTokenizerWrapper
QuaRot/ppl_utils.py:19
↓ 1 callersClassTokenizerWrapper
FlatQuant/flatquant/ppl_utils.py:18
↓ 1 callersClassTrainingArguments
SpinQuant/utils/process_args.py:36
ClassAsymSTEQuantize
SpinQuant/utils/quant_utils.py:74
ClassFSDPTrainer
SpinQuant/train_utils/fsdp_trainer.py:148
ClassFlatQuantMLA
FlatQuant/flatquant/model_tools/deepseekv3_utils.py:139
ClassFlatQuantMLP
FlatQuant/flatquant/model_tools/deepseekv3_utils.py:305
ClassFlatQuantMoE
Mixture-of-Experts (MoE) module. Attributes: dim (int): Dimensionality of input features. n_routed_experts (int): Total numb
FlatQuant/flatquant/model_tools/deepseekv3_utils.py:393
ClassHadamardTransform
The unnormalized Hadamard transform (i.e. without dividing by sqrt(2))
SpinQuant/utils/utils.py:44
ClassInvDecomposeTransMatrix
FlatQuant/flatquant/trans_utils.py:170
ClassInvSingleTransMatrix
FlatQuant/flatquant/trans_utils.py:128
ClassLlamaAttention
Multi-headed attention from 'Attention Is All You Need' paper
SpinQuant/eval_utils/modeling_llama.py:374
ClassLlamaAttention
Multi-headed attention from 'Attention Is All You Need' paper
SpinQuant/train_utils/modeling_llama_quant.py:369
ClassLlamaDynamicNTKScalingRotaryEmbedding
LlamaRotaryEmbedding extended with Dynamic NTK scaling. Credits to the Reddit users /u/bloc97 and /u/emozilla
SpinQuant/eval_utils/modeling_llama.py:262
ClassLlamaDynamicNTKScalingRotaryEmbedding
LlamaRotaryEmbedding extended with Dynamic NTK scaling. Credits to the Reddit users /u/bloc97 and /u/emozilla
SpinQuant/train_utils/modeling_llama_quant.py:264
ClassLlamaFlashAttention2
Llama flash attention module. This module inherits from `LlamaAttention` as the weights of the module stays untouched. The only required chan
SpinQuant/eval_utils/modeling_llama.py:549
ClassLlamaFlashAttention2
Llama flash attention module. This module inherits from `LlamaAttention` as the weights of the module stays untouched. The only required chan
SpinQuant/train_utils/modeling_llama_quant.py:546
ClassLlamaForCausalLM
SpinQuant/eval_utils/modeling_llama.py:1263
ClassLlamaForCausalLM
SpinQuant/train_utils/modeling_llama_quant.py:1272
ClassLlamaForQuestionAnswering
SpinQuant/eval_utils/modeling_llama.py:1638
ClassLlamaForQuestionAnswering
SpinQuant/train_utils/modeling_llama_quant.py:1654
ClassLlamaForSequenceClassification
SpinQuant/eval_utils/modeling_llama.py:1511
ClassLlamaForSequenceClassification
SpinQuant/train_utils/modeling_llama_quant.py:1527
ClassLlamaLinearScalingRotaryEmbedding
LlamaRotaryEmbedding extended with linear scaling. Credits to the Reddit user /u/kaiokendev
SpinQuant/eval_utils/modeling_llama.py:250
ClassLlamaLinearScalingRotaryEmbedding
LlamaRotaryEmbedding extended with linear scaling. Credits to the Reddit user /u/kaiokendev
SpinQuant/train_utils/modeling_llama_quant.py:252
ClassLlamaPreTrainedModel
SpinQuant/eval_utils/modeling_llama.py:908
ClassLlamaPreTrainedModel
SpinQuant/train_utils/modeling_llama_quant.py:909
ClassLlamaSdpaAttention
Llama attention module using torch.nn.functional.scaled_dot_product_attention. This module inherits from `LlamaAttention` as the weights of t
SpinQuant/eval_utils/modeling_llama.py:681
ClassLlamaSdpaAttention
Llama attention module using torch.nn.functional.scaled_dot_product_attention. This module inherits from `LlamaAttention` as the weights of t
SpinQuant/train_utils/modeling_llama_quant.py:679
ClassModelArguments
SpinQuant/utils/process_args.py:19
ClassQKRotationWrapper
SpinQuant/eval_utils/rotation_utils.py:150
ClassQKRotationWrapper
SpinQuant/train_utils/apply_r3_r4.py:47
ClassQKRotationWrapper
QuaRot/rotation_utils.py:264
ClassRMSN
This class implements the Root Mean Square Normalization (RMSN) layer. We use the implementation from LLAMARMSNorm here: https://github.c
QuaRot/model_utils.py:258
ClassSTEQuantize
SpinQuant/utils/quant_utils.py:61
ClassSVDDecomposeTransMatrix
FlatQuant/flatquant/trans_utils.py:57
ClassSVDSingleTransMatrix
FlatQuant/flatquant/trans_utils.py:8
ClassWeightQuantizer
From GPTQ Repo
SpinQuant/utils/quant_utils.py:300
ClassWeightQuantizer
From GPTQ Repo
QuaRot/quant_utils.py:260