syncdoth / RetNet
Huggingface compatible implementation of RetNet (Retentive Networks, https://arxiv.org/pdf/2307.08621.pdf) including parallel, recurrent, and chunkwise forward.
☆226Updated last year
Alternatives and similar repositories for RetNet
Users that are interested in RetNet are comparing it to the libraries listed below
Sorting:
- A simple but robust PyTorch implementation of RetNet from "Retentive Network: A Successor to Transformer for Large Language Models" (http…☆105Updated last year
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆407Updated 4 months ago
- Official code for ReLoRA from the paper Stack More Layers Differently: High-Rank Training Through Low-Rank Updates☆454Updated last year
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆331Updated 11 months ago
- Implementation of Block Recurrent Transformer - Pytorch☆217Updated 8 months ago
- ☆189Updated this week
- Effortless plugin and play Optimizer to cut model training costs by 50%. New optimizer that is 2x faster than Adam on LLMs.☆381Updated 11 months ago
- Repo for "Monarch Mixer: A Simple Sub-Quadratic GEMM-Based Architecture"☆550Updated 4 months ago
- Recurrent Memory Transformer☆149Updated last year
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆227Updated 8 months ago
- An implementation of "Retentive Network: A Successor to Transformer for Large Language Models"☆1,187Updated last year
- Some preliminary explorations of Mamba's context scaling.☆213Updated last year
- Code repository for Black Mamba☆246Updated last year
- Official implementation of TransNormerLLM: A Faster and Better LLM☆243Updated last year
- ☆220Updated 11 months ago
- Official PyTorch implementation of QA-LoRA☆135Updated last year
- PyTorch Implementation of Jamba: "Jamba: A Hybrid Transformer-Mamba Language Model"☆168Updated last month
- Implementation of 💍 Ring Attention, from Liu et al. at Berkeley AI, in Pytorch☆512Updated 6 months ago
- Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models☆285Updated 2 months ago
- ☆290Updated 5 months ago
- Implementation of MEGABYTE, Predicting Million-byte Sequences with Multiscale Transformers, in Pytorch☆643Updated 4 months ago
- A repository for log-time feedforward networks☆222Updated last year
- Annotated version of the Mamba paper☆483Updated last year
- ☆146Updated last year
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆212Updated 8 months ago
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆673Updated 5 months ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆378Updated last year
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆105Updated last year
- Implementation of MambaByte in "MambaByte: Token-free Selective State Space Model" in Pytorch and Zeta☆116Updated last month
- Code for the ALiBi method for transformer language models (ICLR 2022)☆526Updated last year