MCPcopy Create free account

hub / github.com/kyegomez/BitNet / types & classes

Types & classes33 in github.com/kyegomez/BitNet

↓ 37 callersClassBitLinear
Custom linear layer with bit quantization. Args: dim (int): The input dimension of the layer. training (bool, optional): Whe
bitnet/bitlinear.py:27
↓ 6 callersClassBitNetTransformer
BitNetTransformer is a transformer-based model for BitNet. Args: dim (int): The dimension of the token embeddings. depth (in
bitnet/bit_transformer.py:92
↓ 4 callersClassBitFeedForward
BitFeedForward module performs feed-forward operations on the input tensor. Args: dim (int): The input dimension. dim_out (i
bitnet/bit_ffn.py:59
↓ 3 callersClassRMSNorm
bitnet/bit_llama.py:33
↓ 2 callersClassAutoregressiveWrapper
AutoregressiveWrapper is a wrapper class that adds autoregressive generation functionality to a given neural network. Args: net (nn.
bitnet/at.py:35
↓ 2 callersClassBitMGQA
Multi-head grouped query attention (GQA) layer. Reference: "GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Chec
bitnet/bit_attention.py:147
↓ 2 callersClassTextSamplerDataset
train.py:55
↓ 2 callersClassTransformer
Transformer module that applies multi-head attention and feed-forward layers. Args: dim (int): The dimension of the input and output
bitnet/bit_transformer.py:39
↓ 1 callersClassAttention
Multi-head attention module.
bitnet/bit_llama.py:175
↓ 1 callersClassBitLinearNew
Custom linear layer with bit quantization. Args: dim (int): The input dimension of the layer. training (bool, optional): Whe
bitnet/bit_linear_new.py:27
↓ 1 callersClassBitMamba
BitMamba module for performing computations using the BitNet architecture. Args: dim (int): The input dimension (D). depth (
bitnet/bit_mamba.py:546
↓ 1 callersClassBitMoE
BitMoE (Bitwise Mixture of Experts) module. Args: dim (int): The input dimension. num_experts (int): The number of experts i
bitnet/bit_moe.py:83
↓ 1 callersClassExpert
An MLP is a simple linear layer followed by a non-linearity i.e. each Expert Args: dim (int): The input dimension of the linear layer.
bitnet/bit_moe.py:11
↓ 1 callersClassFeedForward
bitnet/one_bit_vision_transformers.py:48
↓ 1 callersClassFeedForward
bitnet/bit_llama.py:313
↓ 1 callersClassGLU
Gated Linear Unit (GLU) module. Args: dim_in (int): Input dimension. dim_out (int): Output dimension. activation (Ca
bitnet/bit_ffn.py:18
↓ 1 callersClassMamba
bitnet/bit_mamba.py:487
↓ 1 callersClassMambaBlock
bitnet/bit_mamba.py:196
↓ 1 callersClassMambaConfig
bitnet/bit_mamba.py:141
↓ 1 callersClassNoisyTopkRouter
A class representing a Noisy Top-k Router module. This module takes the output tensor from a multihead self attention block and performs rou
bitnet/bit_moe.py:37
↓ 1 callersClassOneBitViT
OneBitViT is a vision transformer model for image classification tasks. Args: image_size (int or tuple): The size of the input image
bitnet/one_bit_vision_transformers.py:82
↓ 1 callersClassRMSNorm
bitnet/bit_mamba.py:13
↓ 1 callersClassResidualBlock
bitnet/bit_mamba.py:167
↓ 1 callersClassTransformer
bitnet/one_bit_vision_transformers.py:62
↓ 1 callersClassTransformerBlock
bitnet/bit_llama.py:357
ClassBitLora
BitLora class represents a custom linear layer with LoRa (Low Rank) regularization. Args: rank (int): The rank of the LoRa regulariz
bitnet/bit_lora.py:28
ClassBitNetInference
A class used to perform inference with the BitNetTransformer model. ... Attributes ---------- model : torch.nn.Module a
bitnet/inference.py:8
ClassCachedWheelsCommand
The CachedWheelsCommand plugs into the default bdist wheel, which is ran by pip when it cannot find an existing wheel (which is currently the
setup.py:197
ClassModelArgs
bitnet/bit_llama.py:19
ClassPScan
bitnet/bit_mamba.py:28
ClassRMSNorm
bitnet/one_bit_vision_transformers.py:34
ClassRMSNorm
Root Mean Square Normalization (RMSNorm) module. Args: dim (int): The input dimension. affine (bool, optional): If True, app
bitnet/bit_transformer.py:15
ClassTransformer
bitnet/bit_llama.py:419