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:
- ML/DL Math and Method notes☆64Updated 2 years ago
- A place to store reusable transformer components of my own creation or found on the interwebs☆62Updated 2 weeks ago
- Collection of autoregressive model implementation☆85Updated 7 months ago
- ☆91Updated last year
- Implementation of the Llama architecture with RLHF + Q-learning☆168Updated 10 months ago
- CUDA and Triton implementations of Flash Attention with SoftmaxN.☆73Updated last year
- Utilities for Training Very Large Models☆58Updated last year
- Various transformers for FSDP research☆38Updated 3 years ago
- LoRA and DoRA from Scratch Implementations☆215Updated last year
- ☆177Updated last year
- Explorations into the proposal from the paper "Grokfast, Accelerated Grokking by Amplifying Slow Gradients"☆103Updated 11 months ago
- experiments with inference on llama☆103Updated last year
- ☆48Updated last year
- Large scale 4D parallelism pre-training for 🤗 transformers in Mixture of Experts *(still work in progress)*☆87Updated last year
- Context Manager to profile the forward and backward times of PyTorch's nn.Module☆83Updated 2 years ago
- ☆86Updated last year
- Experiment of using Tangent to autodiff triton☆80Updated last year
- Minimal sharded dataset loaders, decoders, and utils for multi-modal document, image, and text datasets.☆160Updated last year
- Just some miscellaneous utility functions / decorators / modules related to Pytorch and Accelerate to help speed up implementation of new…☆125Updated last year
- Demo of the unit_scaling library, showing how a model can be easily adapted to train in FP8.☆46Updated last year
- Triton Implementation of HyperAttention Algorithm☆48Updated last year
- ☆15Updated 6 months ago
- Minimal (400 LOC) implementation Maximum (multi-node, FSDP) GPT training☆132Updated last year
- The Automated LLM Speedrunning Benchmark measures how well LLM agents can reproduce previous innovations and discover new ones in languag…☆112Updated last month
- ☆134Updated 2 years ago
- NeurIPS Large Language Model Efficiency Challenge: 1 LLM + 1GPU + 1Day☆258Updated 2 years ago
- A really tiny autograd engine☆96Updated 6 months ago
- Minimal example scripts of the Hugging Face Trainer, focused on staying under 150 lines☆196Updated last year
- ☆90Updated last year
- ☆82Updated last year