Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/kyegomez/BitNet
/ types & classes
Types & classes
33 in github.com/kyegomez/BitNet
⨍
Functions
143
◇
Types & classes
33
↳
Endpoints
1
↓ 37 callers
Class
BitLinear
Custom linear layer with bit quantization. Args: dim (int): The input dimension of the layer. training (bool, optional): Whe
bitnet/bitlinear.py:27
↓ 6 callers
Class
BitNetTransformer
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 callers
Class
BitFeedForward
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 callers
Class
RMSNorm
bitnet/bit_llama.py:33
↓ 2 callers
Class
AutoregressiveWrapper
AutoregressiveWrapper is a wrapper class that adds autoregressive generation functionality to a given neural network. Args: net (nn.
bitnet/at.py:35
↓ 2 callers
Class
BitMGQA
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 callers
Class
TextSamplerDataset
train.py:55
↓ 2 callers
Class
Transformer
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 callers
Class
Attention
Multi-head attention module.
bitnet/bit_llama.py:175
↓ 1 callers
Class
BitLinearNew
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 callers
Class
BitMamba
BitMamba module for performing computations using the BitNet architecture. Args: dim (int): The input dimension (D). depth (
bitnet/bit_mamba.py:546
↓ 1 callers
Class
BitMoE
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 callers
Class
Expert
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 callers
Class
FeedForward
bitnet/one_bit_vision_transformers.py:48
↓ 1 callers
Class
FeedForward
bitnet/bit_llama.py:313
↓ 1 callers
Class
GLU
Gated Linear Unit (GLU) module. Args: dim_in (int): Input dimension. dim_out (int): Output dimension. activation (Ca
bitnet/bit_ffn.py:18
↓ 1 callers
Class
Mamba
bitnet/bit_mamba.py:487
↓ 1 callers
Class
MambaBlock
bitnet/bit_mamba.py:196
↓ 1 callers
Class
MambaConfig
bitnet/bit_mamba.py:141
↓ 1 callers
Class
NoisyTopkRouter
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 callers
Class
OneBitViT
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 callers
Class
RMSNorm
bitnet/bit_mamba.py:13
↓ 1 callers
Class
ResidualBlock
bitnet/bit_mamba.py:167
↓ 1 callers
Class
Transformer
bitnet/one_bit_vision_transformers.py:62
↓ 1 callers
Class
TransformerBlock
bitnet/bit_llama.py:357
Class
BitLora
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
Class
BitNetInference
A class used to perform inference with the BitNetTransformer model. ... Attributes ---------- model : torch.nn.Module a
bitnet/inference.py:8
Class
CachedWheelsCommand
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
Class
ModelArgs
bitnet/bit_llama.py:19
Class
PScan
bitnet/bit_mamba.py:28
Class
RMSNorm
bitnet/one_bit_vision_transformers.py:34
Class
RMSNorm
Root Mean Square Normalization (RMSNorm) module. Args: dim (int): The input dimension. affine (bool, optional): If True, app
bitnet/bit_transformer.py:15
Class
Transformer
bitnet/bit_llama.py:419