Liuhong99 / Sophia
The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training”
☆937Updated 9 months ago
Related projects ⓘ
Alternatives and complementary repositories for Sophia
- Effortless plugin and play Optimizer to cut model training costs by 50%. New optimizer that is 2x faster than Adam on LLMs.☆377Updated 5 months ago
- [NeurIPS 2023] MeZO: Fine-Tuning Language Models with Just Forward Passes. https://arxiv.org/abs/2305.17333☆1,041Updated 9 months ago
- Implementation of MEGABYTE, Predicting Million-byte Sequences with Multiscale Transformers, in Pytorch☆623Updated last month
- maximal update parametrization (µP)☆1,396Updated 3 months ago
- Fast & Simple repository for pre-training and fine-tuning T5-style models☆965Updated 2 months ago
- Convolutions for Sequence Modeling☆867Updated 4 months ago
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆393Updated 8 months ago
- Cramming the training of a (BERT-type) language model into limited compute.☆1,294Updated 4 months ago
- Transformers with Arbitrarily Large Context☆637Updated 2 months ago
- Official code for ReLoRA from the paper Stack More Layers Differently: High-Rank Training Through Low-Rank Updates☆433Updated 6 months ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆506Updated last year
- Efficient implementations of state-of-the-art linear attention models in Pytorch and Triton☆1,320Updated this week
- Repo for "Monarch Mixer: A Simple Sub-Quadratic GEMM-Based Architecture"☆536Updated 5 months ago
- Tutel MoE: An Optimized Mixture-of-Experts Implementation☆728Updated last week
- Foundation Architecture for (M)LLMs☆3,025Updated 6 months ago
- Annotated version of the Mamba paper☆455Updated 8 months ago
- [ICML 2024] Break the Sequential Dependency of LLM Inference Using Lookahead Decoding☆1,141Updated 3 weeks ago
- A simple and effective LLM pruning approach.☆660Updated 3 months ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆291Updated 4 months ago
- GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection☆1,426Updated last week
- LOMO: LOw-Memory Optimization☆978Updated 4 months ago
- Implementation of 💍 Ring Attention, from Liu et al. at Berkeley AI, in Pytorch☆474Updated 2 weeks ago
- Kernl lets you run PyTorch transformer models several times faster on GPU with a single line of code, and is designed to be easily hackab…☆1,530Updated 8 months ago
- 🦁 Lion, new optimizer discovered by Google Brain using genetic algorithms that is purportedly better than Adam(w), in Pytorch☆2,028Updated 4 months ago
- minLoRA: a minimal PyTorch library that allows you to apply LoRA to any PyTorch model.☆432Updated last year
- Helpful tools and examples for working with flex-attention☆460Updated 2 weeks ago
- Implementation of Memorizing Transformers (ICLR 2022), attention net augmented with indexing and retrieval of memories using approximate …☆625Updated last year
- distributed trainer for LLMs☆541Updated 5 months ago