Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/csguoh/OBR
/ types & classes
Types & classes
88 in github.com/csguoh/OBR
⨍
Functions
645
◇
Types & classes
88
↳
Endpoints
2
↓ 21 callers
Class
FlatQuantizedLinear
FlatQuant/flatquant/flat_linear.py:8
↓ 13 callers
Class
ActivationQuantizer
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 callers
Class
FlatQuantizedLinear
FlatQuant/flatquant/model_tools/deepseekv3_utils.py:21
↓ 7 callers
Class
QuantizeLinear
SpinQuant/train_utils/quant_linear.py:13
↓ 5 callers
Class
WeightQuantizer
From GPTQ Repo
FlatQuant/flatquant/quant_utils.py:122
↓ 3 callers
Class
ActQuantWrapper
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 callers
Class
ActQuantWrapper
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 callers
Class
LlamaModel
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 callers
Class
LlamaModel
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 callers
Class
LlamaRMSNorm
SpinQuant/eval_utils/modeling_llama.py:123
↓ 3 callers
Class
LlamaRMSNorm
SpinQuant/train_utils/modeling_llama_quant.py:125
↓ 2 callers
Class
ActQuantizer
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 callers
Class
ActQuantizer
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 callers
Class
FlatQuantMoEExpert
FlatQuant/flatquant/model_tools/deepseekv3_utils.py:365
↓ 2 callers
Class
LlamaRotaryEmbedding
SpinQuant/eval_utils/modeling_llama.py:146
↓ 2 callers
Class
LlamaRotaryEmbedding
SpinQuant/train_utils/modeling_llama_quant.py:148
↓ 2 callers
Class
LogFormatter
SpinQuant/utils/utils.py:86
↓ 2 callers
Class
LogFormatter
QuaRot/utils.py:56
↓ 2 callers
Class
RotateModule
SpinQuant/optimize_rotation.py:30
↓ 2 callers
Class
TokenizerWrapper
FlatQuant/flatquant/data_utils.py:7
↓ 1 callers
Class
Catcher
SpinQuant/utils/eval_utils.py:53
↓ 1 callers
Class
Catcher
SpinQuant/eval_utils/obr_utils.py:299
↓ 1 callers
Class
Catcher
SpinQuant/eval_utils/gptq_utils.py:195
↓ 1 callers
Class
Catcher
QuaRot/obr_utils.py:287
↓ 1 callers
Class
Catcher
QuaRot/eval_utils.py:59
↓ 1 callers
Class
Catcher
QuaRot/gptq_utils.py:287
↓ 1 callers
Class
Catcher
FlatQuant/gptq_utils.py:175
↓ 1 callers
Class
Catcher
FlatQuant/flatquant/obr_utils.py:295
↓ 1 callers
Class
Catcher
FlatQuant/flatquant/train_utils.py:43
↓ 1 callers
Class
CustomJsonDataset
SpinQuant/utils/data_utils.py:46
↓ 1 callers
Class
FlatQuantLlamaAttention
FlatQuant/flatquant/model_tools/llama31_utils.py:110
↓ 1 callers
Class
FlatQuantLlamaAttention
FlatQuant/flatquant/model_tools/llama_utils.py:110
↓ 1 callers
Class
FlatQuantLlamaMLP
FlatQuant/flatquant/model_tools/llama31_utils.py:17
↓ 1 callers
Class
FlatQuantLlamaMLP
FlatQuant/flatquant/model_tools/llama_utils.py:17
↓ 1 callers
Class
FlatQuantQwen2Attention
FlatQuant/flatquant/model_tools/qwen_utils.py:114
↓ 1 callers
Class
FlatQuantQwen2MLP
FlatQuant/flatquant/model_tools/qwen_utils.py:18
↓ 1 callers
Class
GPTQ
SpinQuant/eval_utils/gptq_utils.py:24
↓ 1 callers
Class
GPTQ
QuaRot/gptq_utils.py:14
↓ 1 callers
Class
GPTQ
FlatQuant/gptq_utils.py:26
↓ 1 callers
Class
LlamaDecoderLayer
SpinQuant/eval_utils/modeling_llama.py:799
↓ 1 callers
Class
LlamaDecoderLayer
SpinQuant/train_utils/modeling_llama_quant.py:798
↓ 1 callers
Class
LlamaMLP
SpinQuant/eval_utils/modeling_llama.py:309
↓ 1 callers
Class
LlamaMLP
SpinQuant/train_utils/modeling_llama_quant.py:311
↓ 1 callers
Class
OBR
FlatQuant/flatquant/obr_utils.py:77
↓ 1 callers
Class
OBR_Wrapper
SpinQuant/eval_utils/obr_utils.py:80
↓ 1 callers
Class
OBR_Wrapper
QuaRot/obr_utils.py:70
↓ 1 callers
Class
SGDG
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 callers
Class
TokenizerWrapper
SpinQuant/ppl_utils.py:16
↓ 1 callers
Class
TokenizerWrapper
QuaRot/data_utils.py:42
↓ 1 callers
Class
TokenizerWrapper
QuaRot/ppl_utils.py:19
↓ 1 callers
Class
TokenizerWrapper
FlatQuant/flatquant/ppl_utils.py:18
↓ 1 callers
Class
TrainingArguments
SpinQuant/utils/process_args.py:36
Class
AsymSTEQuantize
SpinQuant/utils/quant_utils.py:74
Class
FSDPTrainer
SpinQuant/train_utils/fsdp_trainer.py:148
Class
FlatQuantMLA
FlatQuant/flatquant/model_tools/deepseekv3_utils.py:139
Class
FlatQuantMLP
FlatQuant/flatquant/model_tools/deepseekv3_utils.py:305
Class
FlatQuantMoE
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
Class
HadamardTransform
The unnormalized Hadamard transform (i.e. without dividing by sqrt(2))
SpinQuant/utils/utils.py:44
Class
InvDecomposeTransMatrix
FlatQuant/flatquant/trans_utils.py:170
Class
InvSingleTransMatrix
FlatQuant/flatquant/trans_utils.py:128
Class
LlamaAttention
Multi-headed attention from 'Attention Is All You Need' paper
SpinQuant/eval_utils/modeling_llama.py:374
Class
LlamaAttention
Multi-headed attention from 'Attention Is All You Need' paper
SpinQuant/train_utils/modeling_llama_quant.py:369
Class
LlamaDynamicNTKScalingRotaryEmbedding
LlamaRotaryEmbedding extended with Dynamic NTK scaling. Credits to the Reddit users /u/bloc97 and /u/emozilla
SpinQuant/eval_utils/modeling_llama.py:262
Class
LlamaDynamicNTKScalingRotaryEmbedding
LlamaRotaryEmbedding extended with Dynamic NTK scaling. Credits to the Reddit users /u/bloc97 and /u/emozilla
SpinQuant/train_utils/modeling_llama_quant.py:264
Class
LlamaFlashAttention2
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
Class
LlamaFlashAttention2
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
Class
LlamaForCausalLM
SpinQuant/eval_utils/modeling_llama.py:1263
Class
LlamaForCausalLM
SpinQuant/train_utils/modeling_llama_quant.py:1272
Class
LlamaForQuestionAnswering
SpinQuant/eval_utils/modeling_llama.py:1638
Class
LlamaForQuestionAnswering
SpinQuant/train_utils/modeling_llama_quant.py:1654
Class
LlamaForSequenceClassification
SpinQuant/eval_utils/modeling_llama.py:1511
Class
LlamaForSequenceClassification
SpinQuant/train_utils/modeling_llama_quant.py:1527
Class
LlamaLinearScalingRotaryEmbedding
LlamaRotaryEmbedding extended with linear scaling. Credits to the Reddit user /u/kaiokendev
SpinQuant/eval_utils/modeling_llama.py:250
Class
LlamaLinearScalingRotaryEmbedding
LlamaRotaryEmbedding extended with linear scaling. Credits to the Reddit user /u/kaiokendev
SpinQuant/train_utils/modeling_llama_quant.py:252
Class
LlamaPreTrainedModel
SpinQuant/eval_utils/modeling_llama.py:908
Class
LlamaPreTrainedModel
SpinQuant/train_utils/modeling_llama_quant.py:909
Class
LlamaSdpaAttention
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
Class
LlamaSdpaAttention
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
Class
ModelArguments
SpinQuant/utils/process_args.py:19
Class
QKRotationWrapper
SpinQuant/eval_utils/rotation_utils.py:150
Class
QKRotationWrapper
SpinQuant/train_utils/apply_r3_r4.py:47
Class
QKRotationWrapper
QuaRot/rotation_utils.py:264
Class
RMSN
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
Class
STEQuantize
SpinQuant/utils/quant_utils.py:61
Class
SVDDecomposeTransMatrix
FlatQuant/flatquant/trans_utils.py:57
Class
SVDSingleTransMatrix
FlatQuant/flatquant/trans_utils.py:8
Class
WeightQuantizer
From GPTQ Repo
SpinQuant/utils/quant_utils.py:300
Class
WeightQuantizer
From GPTQ Repo
QuaRot/quant_utils.py:260