AminRezaei0x443 / memory-efficient-attention
Memory Efficient Attention (O(sqrt(n)) for Jax and PyTorch
☆179Updated last year
Related projects ⓘ
Alternatives and complementary repositories for memory-efficient-attention
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆207Updated last year
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆360Updated last year
- Implementation of a Transformer, but completely in Triton☆249Updated 2 years ago
- Implementation of the Adan (ADAptive Nesterov momentum algorithm) Optimizer in Pytorch☆247Updated 2 years ago
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆203Updated last year
- Implementation of the specific Transformer architecture from PaLM - Scaling Language Modeling with Pathways - in Jax (Equinox framework)☆185Updated 2 years ago
- DiffQ performs differentiable quantization using pseudo quantization noise. It can automatically tune the number of bits used per weight …☆234Updated last year
- Implementation of Flash Attention in Jax☆196Updated 8 months ago
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆225Updated 2 months ago
- Named tensors with first-class dimensions for PyTorch☆322Updated last year
- Library for 8-bit optimizers and quantization routines.☆714Updated 2 years ago
- Sequence modeling with Mega.☆298Updated last year
- A library to inspect and extract intermediate layers of PyTorch models.☆470Updated 2 years ago
- Slicing a PyTorch Tensor Into Parallel Shards☆296Updated 3 years ago
- Simple and efficient RevNet-Library for PyTorch with XLA and DeepSpeed support and parameter offload☆124Updated 2 years ago
- [Prototype] Tools for the concurrent manipulation of variably sized Tensors.☆253Updated 2 years ago
- Pretrained deep learning models for Jax/Flax: StyleGAN2, GPT2, VGG, ResNet, etc.☆238Updated last year
- Implementation of Block Recurrent Transformer - Pytorch☆213Updated 3 months ago
- Context Manager to profile the forward and backward times of PyTorch's nn.Module☆83Updated last year
- Official code for "Distributed Deep Learning in Open Collaborations" (NeurIPS 2021)☆116Updated 2 years ago
- ☆178Updated last week
- ☆132Updated last year
- Implementation of Nyström Self-attention, from the paper Nyströmformer☆122Updated 10 months ago
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆205Updated 3 months ago
- ☆73Updated 2 years ago
- Unofficial JAX implementations of deep learning research papers☆151Updated 2 years ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆507Updated last year
- ☆365Updated last year
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆222Updated 2 years ago