rasbt / pytorch-memory-optimLinks
This code repository contains the code used for my "Optimizing Memory Usage for Training LLMs and Vision Transformers in PyTorch" blog post.
☆92Updated 2 years ago
Alternatives and similar repositories for pytorch-memory-optim
Users that are interested in pytorch-memory-optim are comparing it to the libraries listed below
Sorting:
- Collection of autoregressive model implementation☆85Updated 2 months ago
- ML/DL Math and Method notes☆61Updated last year
- A place to store reusable transformer components of my own creation or found on the interwebs☆56Updated last week
- Various transformers for FSDP research☆37Updated 2 years ago
- ☆79Updated last year
- ☆161Updated last year
- Just some miscellaneous utility functions / decorators / modules related to Pytorch and Accelerate to help speed up implementation of new…☆123Updated 11 months ago
- Implementation of the Llama architecture with RLHF + Q-learning☆165Updated 5 months ago
- CUDA and Triton implementations of Flash Attention with SoftmaxN.☆70Updated last year
- Code for NeurIPS LLM Efficiency Challenge☆59Updated last year
- experiments with inference on llama☆104Updated last year
- ☆48Updated 10 months ago
- ☆87Updated last year
- Supercharge huggingface transformers with model parallelism.☆77Updated 9 months ago
- ☆81Updated last year
- Large scale 4D parallelism pre-training for 🤗 transformers in Mixture of Experts *(still work in progress)*☆85Updated last year
- ☆48Updated 8 months ago
- ☆19Updated 2 years ago
- ☆88Updated last year
- Demo of the unit_scaling library, showing how a model can be easily adapted to train in FP8.☆46Updated last year
- some common Huggingface transformers in maximal update parametrization (µP)☆81Updated 3 years ago
- Triton Implementation of HyperAttention Algorithm☆48Updated last year
- Context Manager to profile the forward and backward times of PyTorch's nn.Module☆83Updated last year
- Set of scripts to finetune LLMs☆37Updated last year
- Utilities for Training Very Large Models☆58Updated 9 months ago
- Fast, Modern, and Low Precision PyTorch Optimizers☆97Updated this week
- ☆133Updated last year
- Minimal example scripts of the Hugging Face Trainer, focused on staying under 150 lines☆197Updated last year
- LoRA and DoRA from Scratch Implementations☆206Updated last year
- Experiment of using Tangent to autodiff triton☆79Updated last year