rasbt / pytorch-memory-optim
This code repository contains the code used for my "Optimizing Memory Usage for Training LLMs and Vision Transformers in PyTorch" blog post.
☆87Updated last year
Alternatives and similar repositories for pytorch-memory-optim:
Users that are interested in pytorch-memory-optim are comparing it to the libraries listed below
- Collection of autoregressive model implementation☆81Updated this week
- ☆75Updated 7 months ago
- ☆78Updated 10 months ago
- Implementation of the Llama architecture with RLHF + Q-learning☆162Updated 2 weeks ago
- Just some miscellaneous utility functions / decorators / modules related to Pytorch and Accelerate to help speed up implementation of new…☆120Updated 6 months ago
- σ-GPT: A New Approach to Autoregressive Models☆61Updated 6 months ago
- ☆86Updated 11 months ago
- ML/DL Math and Method notes☆58Updated last year
- ☆47Updated 5 months ago
- A place to store reusable transformer components of my own creation or found on the interwebs☆46Updated this week
- Official repository for the paper "Approximating Two-Layer Feedforward Networks for Efficient Transformers"☆36Updated last year
- Large scale 4D parallelism pre-training for 🤗 transformers in Mixture of Experts *(still work in progress)*☆81Updated last year
- Some personal experiments around routing tokens to different autoregressive attention, akin to mixture-of-experts☆115Updated 4 months ago
- The simplest implementation of recent Sparse Attention patterns for efficient LLM inference.☆57Updated 3 weeks ago
- Official repository for the paper "SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention"☆96Updated 4 months ago
- Train, tune, and infer Bamba model☆84Updated last month
- Minimal sharded dataset loaders, decoders, and utils for multi-modal document, image, and text datasets.☆156Updated 10 months ago
- ☆40Updated 9 months ago
- ☆135Updated last week
- ☆91Updated 8 months ago
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆95Updated 3 months ago
- some common Huggingface transformers in maximal update parametrization (µP)☆78Updated 2 years ago
- ☆66Updated 7 months ago
- Code repository for the c-BTM paper☆105Updated last year
- ☆58Updated 11 months ago
- ☆67Updated 6 months ago
- ☆125Updated last year
- Implementation of Infini-Transformer in Pytorch☆109Updated last month
- CUDA and Triton implementations of Flash Attention with SoftmaxN.☆67Updated 8 months ago
- Code for NeurIPS LLM Efficiency Challenge☆55Updated 10 months ago