aju22 / LLaMA2Links
This repository contains an implementation of the LLaMA 2 (Large Language Model Meta AI) model, a Generative Pretrained Transformer (GPT) variant. The implementation focuses on the model architecture and the inference process. The code is restructured and heavily commented to facilitate easy understanding of the key parts of the architecture.
☆72Updated 2 years ago
Alternatives and similar repositories for LLaMA2
Users that are interested in LLaMA2 are comparing it to the libraries listed below
Sorting:
- Official PyTorch implementation of QA-LoRA☆143Updated last year
- ☆233Updated last year
- Implementation of Speculative Sampling as described in "Accelerating Large Language Model Decoding with Speculative Sampling" by Deepmind☆105Updated last year
- Explorations into some recent techniques surrounding speculative decoding☆288Updated 10 months ago
- A family of compressed models obtained via pruning and knowledge distillation☆355Updated 11 months ago
- Training code for Baby-Llama, our submission to the strict-small track of the BabyLM challenge.☆84Updated 2 years ago
- Unofficial implementation for the paper "Mixture-of-Depths: Dynamically allocating compute in transformer-based language models"☆175Updated last year
- ☆202Updated 11 months ago
- ☆127Updated last year
- Spherical Merge Pytorch/HF format Language Models with minimal feature loss.☆139Updated 2 years ago
- Easy and Efficient Quantization for Transformers☆202Updated 4 months ago
- Code for studying the super weight in LLM☆119Updated 11 months ago
- Low-bit optimizers for PyTorch☆132Updated 2 years ago
- Implementation of the LongRoPE: Extending LLM Context Window Beyond 2 Million Tokens Paper☆152Updated last year
- Official PyTorch implementation of DistiLLM: Towards Streamlined Distillation for Large Language Models (ICML 2024)☆236Updated 7 months ago
- Automated Identification of Redundant Layer Blocks for Pruning in Large Language Models☆250Updated last year
- Simple implementation of Speculative Sampling in NumPy for GPT-2.☆98Updated 2 years ago
- LLaMA 2 implemented from scratch in PyTorch☆358Updated 2 years ago
- Positional Skip-wise Training for Efficient Context Window Extension of LLMs to Extremely Length (ICLR 2024)☆204Updated last year
- An extension of the nanoGPT repository for training small MOE models.☆207Updated 8 months ago
- The official implementation of the paper "What Matters in Transformers? Not All Attention is Needed".☆179Updated 7 months ago
- Unofficial implementation of https://arxiv.org/pdf/2407.14679☆50Updated last year
- Parameter-Efficient Sparsity Crafting From Dense to Mixture-of-Experts for Instruction Tuning on General Tasks (EMNLP'24)☆147Updated last year
- Prune transformer layers☆69Updated last year
- Code for "LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding", ACL 2024☆344Updated 6 months ago
- For releasing code related to compression methods for transformers, accompanying our publications☆447Updated 9 months ago
- Multipack distributed sampler for fast padding-free training of LLMs☆201Updated last year
- Code for the paper "QMoE: Practical Sub-1-Bit Compression of Trillion-Parameter Models".☆277Updated 2 years ago
- An efficent implementation of the method proposed in "The Era of 1-bit LLMs"☆154Updated last year
- Block Transformer: Global-to-Local Language Modeling for Fast Inference (NeurIPS 2024)☆162Updated 6 months ago