knotgrass / attentionLinks
several types of attention modules written in PyTorch for learning purposes
☆52Updated last year
Alternatives and similar repositories for attention
Users that are interested in attention are comparing it to the libraries listed below
Sorting:
- Implementation of Infini-Transformer in Pytorch☆113Updated 11 months ago
- Experiments on Multi-Head Latent Attention☆99Updated last year
- Pytorch Implementation of the sparse attention from the paper: "Generating Long Sequences with Sparse Transformers"☆92Updated last month
- ☆293Updated 11 months ago
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆185Updated last year
- A simple but robust PyTorch implementation of RetNet from "Retentive Network: A Successor to Transformer for Large Language Models" (http…☆106Updated 2 years ago
- Official repository for the paper "SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention"☆102Updated last year
- Some personal experiments around routing tokens to different autoregressive attention, akin to mixture-of-experts☆121Updated last year
- ☆42Updated last year
- ☆134Updated 2 years ago
- Playground for Transformers☆53Updated last year
- PyTorch implementation of Soft MoE by Google Brain in "From Sparse to Soft Mixtures of Experts" (https://arxiv.org/pdf/2308.00951.pdf)☆79Updated 2 years ago
- PyTorch implementation of moe, which stands for mixture of experts☆51Updated 4 years ago
- Implementation of Agent Attention in Pytorch☆93Updated last year
- Training small GPT-2 style models using Kolmogorov-Arnold networks.☆122Updated last year
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆112Updated 2 years ago
- Explorations into the recently proposed Taylor Series Linear Attention☆100Updated last year
- We study toy models of skill learning.☆31Updated 10 months ago
- Unofficial implementation of https://arxiv.org/pdf/2407.14679☆51Updated last year
- Root Mean Square Layer Normalization☆258Updated 2 years ago
- Implementation of the paper: "Mixture-of-Depths: Dynamically allocating compute in transformer-based language models"☆111Updated last week
- A repository for DenseSSMs☆89Updated last year
- Efficient Infinite Context Transformers with Infini-attention Pytorch Implementation + QwenMoE Implementation + Training Script + 1M cont…☆83Updated last year
- The official implementation of the paper "What Matters in Transformers? Not All Attention is Needed".☆185Updated 3 weeks ago
- Implementation of Griffin from the paper: "Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models"☆56Updated last month
- ☆58Updated 2 years ago
- Implementation of TableFormer, Robust Transformer Modeling for Table-Text Encoding, in Pytorch☆39Updated 3 years ago
- Official implementation of the ICML 2024 paper RoSA (Robust Adaptation)☆44Updated last year
- Implementation of the paper: "Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention" from Google in pyTO…☆58Updated last week
- Utilities for Training Very Large Models☆58Updated last year