knotgrass / attentionLinks
several types of attention modules written in PyTorch for learning purposes
☆52Updated 11 months ago
Alternatives and similar repositories for attention
Users that are interested in attention are comparing it to the libraries listed below
Sorting:
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆179Updated last year
- PyTorch implementation of moe, which stands for mixture of experts☆48Updated 4 years ago
- PyTorch implementation of Soft MoE by Google Brain in "From Sparse to Soft Mixtures of Experts" (https://arxiv.org/pdf/2308.00951.pdf)☆78Updated last year
- Pytorch Implementation of the sparse attention from the paper: "Generating Long Sequences with Sparse Transformers"☆86Updated last week
- Experiments on Multi-Head Latent Attention☆95Updated last year
- Implementation of Infini-Transformer in Pytorch☆111Updated 8 months ago
- ☆293Updated 9 months ago
- A simple but robust PyTorch implementation of RetNet from "Retentive Network: A Successor to Transformer for Large Language Models" (http…☆106Updated last year
- Official repository for the paper "SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention"☆98Updated 11 months ago
- A repository for DenseSSMs☆88Updated last year
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆109Updated 2 years ago
- Some personal experiments around routing tokens to different autoregressive attention, akin to mixture-of-experts☆121Updated 11 months ago
- ☆42Updated last year
- Playground for Transformers☆53Updated last year
- Implementation of the paper: "Mixture-of-Depths: Dynamically allocating compute in transformer-based language models"☆106Updated last week
- Implementation of Griffin from the paper: "Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models"☆56Updated 2 weeks ago
- A custom pytorch Dataset extension that provides a faster iteration and better RAM usage☆45Updated last year
- ☆134Updated last year
- PyTorch Implementation of Jamba: "Jamba: A Hybrid Transformer-Mamba Language Model"☆187Updated 2 weeks ago
- Implementation of Agent Attention in Pytorch☆91Updated last year
- ☆56Updated last year
- The official implementation of the paper "What Matters in Transformers? Not All Attention is Needed".☆176Updated 5 months ago
- Root Mean Square Layer Normalization☆254Updated 2 years ago
- This repository contains an implementation of the LLaMA 2 (Large Language Model Meta AI) model, a Generative Pretrained Transformer (GPT)…☆71Updated last year
- ☆183Updated 11 months ago
- We study toy models of skill learning.☆31Updated 8 months ago
- Explorations into the recently proposed Taylor Series Linear Attention☆100Updated last year
- code for the ddp tutorial☆32Updated 3 years ago
- Implementation of the proposed DeepCrossAttention by Heddes et al at Google research, in Pytorch☆92Updated 6 months ago
- Integrating Mamba/SSMs with Transformer for Enhanced Long Context and High-Quality Sequence Modeling☆206Updated 2 weeks ago