ag1988 / top_k_attention
The accompanying code for "Memory-efficient Transformers via Top-k Attention" (Ankit Gupta, Guy Dar, Shaya Goodman, David Ciprut, Jonathan Berant. SustaiNLP 2021).
☆64Updated 3 years ago
Alternatives and similar repositories for top_k_attention:
Users that are interested in top_k_attention are comparing it to the libraries listed below
- [EVA ICLR'23; LARA ICML'22] Efficient attention mechanisms via control variates, random features, and importance sampling☆80Updated last year
- ☆98Updated 10 months ago
- [EMNLP 2022] Official implementation of Transnormer in our EMNLP 2022 paper - The Devil in Linear Transformer☆59Updated last year
- Mixture of Attention Heads☆41Updated 2 years ago
- ☆19Updated last year
- [NeurIPS 2023] Make Your Pre-trained Model Reversible: From Parameter to Memory Efficient Fine-Tuning☆29Updated last year
- ☆32Updated 3 years ago
- [ICLR 2023] "Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformers" by Tianlong Chen*, Zhenyu Zhang*, Ajay Jaiswal…☆48Updated last year
- Repository of the paper "Accelerating Transformer Inference for Translation via Parallel Decoding"☆114Updated 10 months ago
- ☆29Updated 2 years ago
- "Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encoding" Zhenyu Zhang, Runjin Chen, Shiw…☆25Updated 8 months ago
- Parameter Efficient Transfer Learning with Diff Pruning☆73Updated 3 years ago
- Code for the ACL-2022 paper "StableMoE: Stable Routing Strategy for Mixture of Experts"☆43Updated 2 years ago
- Code for ACL 2023 Oral Paper: ManagerTower: Aggregating the Insights of Uni-Modal Experts for Vision-Language Representation Learning☆11Updated last month
- PyTorch codes for the paper "An Empirical Study of Multimodal Model Merging"☆38Updated last year
- This package implements THOR: Transformer with Stochastic Experts.☆61Updated 3 years ago
- ☆49Updated 6 months ago
- ☆30Updated 11 months ago
- Sparse Backpropagation for Mixture-of-Expert Training☆27Updated 6 months ago
- ☆29Updated 2 months ago
- Transformers at any scale☆41Updated last year
- Stick-breaking attention☆41Updated 2 weeks ago
- Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr\"om Method (NeurIPS 2021)☆60Updated 2 years ago
- Here we will test various linear attention designs.☆58Updated 9 months ago
- ☆127Updated 2 years ago
- Retrieval as Attention☆83Updated 2 years ago
- PyTorch implementation of "From Sparse to Soft Mixtures of Experts"☆50Updated last year
- Source code for the paper "Prefix Language Models are Unified Modal Learners"☆43Updated last year
- 🔥 A minimal training framework for scaling FLA models☆32Updated this week
- EfficientVLM: Fast and Accurate Vision-Language Models via Knowledge Distillation and Modal-adaptive Pruning (ACL 2023)☆24Updated last year