knotgrass / attention
several types of attention modules written in PyTorch for learning purposes
☆46Updated 5 months ago
Alternatives and similar repositories for attention:
Users that are interested in attention are comparing it to the libraries listed below
- This repository contains papers for a comprehensive survey on accelerated generation techniques in Large Language Models (LLMs).☆12Updated 9 months ago
- Playground for Transformers☆48Updated last year
- Official implementation of the ICML 2024 paper RoSA (Robust Adaptation)☆39Updated last year
- A repository for DenseSSMs☆87Updated 10 months ago
- Implementation of IceFormer: Accelerated Inference with Long-Sequence Transformers on CPUs (ICLR 2024).☆22Updated 8 months ago
- A custom pytorch Dataset extension that provides a faster iteration and better RAM usage☆42Updated 11 months ago
- Implementation of Infini-Transformer in Pytorch☆109Updated 2 months ago
- HGRN2: Gated Linear RNNs with State Expansion☆53Updated 6 months ago
- Pytorch Implementation of the sparse attention from the paper: "Generating Long Sequences with Sparse Transformers"☆72Updated last month
- ☆46Updated last year
- Official repository for the paper "SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention"☆96Updated 5 months ago
- PyTorch implementation of Soft MoE by Google Brain in "From Sparse to Soft Mixtures of Experts" (https://arxiv.org/pdf/2308.00951.pdf)☆71Updated last year
- Implementation of Agent Attention in Pytorch☆90Updated 7 months ago
- ☆100Updated 11 months ago
- PyTorch implementation of moe, which stands for mixture of experts☆42Updated 4 years ago
- Implementation of Griffin from the paper: "Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models"☆51Updated last month
- [ICLR 2023] "Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformers" by Tianlong Chen*, Zhenyu Zhang*, Ajay Jaiswal…☆48Updated 2 years ago
- ☆20Updated 2 years ago
- Explorations into the recently proposed Taylor Series Linear Attention☆93Updated 6 months ago
- An unofficial implementation of "Mixture-of-Depths: Dynamically allocating compute in transformer-based language models"☆35Updated 8 months ago
- Contextual Position Encoding but with some custom CUDA Kernels https://arxiv.org/abs/2405.18719☆22Updated 8 months ago
- [ICLR 2024] This is the official PyTorch implementation of "QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Mod…☆26Updated 11 months ago
- Pruner-Zero: Evolving Symbolic Pruning Metric from scratch for LLMs☆79Updated 3 months ago
- CUDA and Triton implementations of Flash Attention with SoftmaxN.☆67Updated 9 months ago
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆155Updated 9 months ago
- ☆48Updated 2 years ago
- A simple implementation of [Mamba: Linear-Time Sequence Modeling with Selective State Spaces](https://arxiv.org/abs/2312.00752)☆21Updated last year
- Implementation of the paper: "Mixture-of-Depths: Dynamically allocating compute in transformer-based language models"☆81Updated 3 weeks ago
- [EMNLP 2022] Official implementation of Transnormer in our EMNLP 2022 paper - The Devil in Linear Transformer☆59Updated last year
- Experiments on Multi-Head Latent Attention☆69Updated 6 months ago