Memory layers use a trainable key-value lookup mechanism to add extra parameters to a model without increasing FLOPs. Conceptually, sparsely activated memory layers complement compute-heavy dense feed-forward layers, providing dedicated capacity to store and retrieve information cheaply.
☆386Dec 12, 2024Updated last year
Alternatives and similar repositories for memory
Users that are interested in memory are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- [ICLR 2025 & COLM 2025] Official PyTorch implementation of the Forgetting Transformer and Adaptive Computation Pruning☆154Feb 25, 2026Updated 8 months ago
- Pretraining and inference code for a large-scale depth-recurrent language model☆987Dec 29, 2025Updated 10 months ago
- Layer-Condensed KV cache w/ 10 times larger batch size, fewer params and less computation. Dramatic speed up with better task performance…☆155Apr 7, 2025Updated last year
- [ICLR2025 Spotlight🔥] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameters☆596Feb 11, 2025Updated last year
- Official repo of paper LM2☆49Feb 13, 2025Updated last year
- Bare Metal GPUs on DigitalOcean Gradient AI • AdPurpose-built for serious AI teams training foundational models, running large-scale inference, and pushing the boundaries of what's possible.
- Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models☆345Feb 23, 2025Updated last year
- Large Concept Models: Language modeling in a sentence representation space☆2,387Jan 29, 2025Updated last year
- Unofficial implementation of Titans, SOTA memory for transformers, in Pytorch☆1,995Jul 13, 2026Updated 3 months ago
- ☆139May 29, 2025Updated last year
- Code for the paper "Cottention: Linear Transformers With Cosine Attention"☆21Nov 15, 2025Updated 11 months ago
- Homepage for ProLong (Princeton long-context language models) and paper "How to Train Long-Context Language Models (Effectively)"☆268Sep 12, 2025Updated last year
- [ICML'24 Oral] The official code of "DiJiang: Efficient Large Language Models through Compact Kernelization", a novel DCT-based linear at…☆105Jun 14, 2024Updated 2 years ago
- [NeurIPS 2025 Spotlight] TPA: Tensor ProducT ATTenTion Transformer (https://arxiv.org/abs/2501.06425)☆464Sep 4, 2026Updated last month
- Stick-breaking attention☆64Jul 1, 2025Updated last year
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Code for BLT research paper☆2,068Nov 3, 2025Updated 11 months ago
- Transformers components but in Triton☆34May 9, 2025Updated last year
- Repo for "LoLCATs: On Low-Rank Linearizing of Large Language Models"☆262Jan 31, 2025Updated last year
- MoBA: Mixture of Block Attention for Long-Context LLMs☆2,197Apr 3, 2025Updated last year
- ☆16Aug 26, 2026Updated 2 months ago
- Official repository for the paper "Blending Complementary Memory Systems in Hybrid Quadratic-Linear Transformers"☆13Jun 3, 2025Updated last year
- Work in progress.☆82Nov 25, 2025Updated 11 months ago
- VPTQ, A Flexible and Extreme low-bit quantization algorithm☆683Aug 4, 2026Updated 2 months ago
- Quick implementation of nGPT, learning entirely on the hypersphere, from NvidiaAI☆299Jun 3, 2025Updated last year
- GPUs on demand by Runpod - Special Offer Available • AdRun AI, ML, and HPC workloads on powerful cloud GPUs—without limits or wasted spend. Deploy GPUs in under a minute and pay by the second.
- [ICML'24] Data and code for our paper "Training-Free Long-Context Scaling of Large Language Models"☆451Oct 16, 2024Updated 2 years ago
- Muon is Scalable for LLM Training☆1,553Aug 3, 2025Updated last year
- An Open Large Reasoning Model for Real-World Solutions☆1,538Jun 17, 2026Updated 4 months ago
- The official implementation of the ICML 2024 paper "MemoryLLM: Towards Self-Updatable Large Language Models" and "M+: Extending MemoryLLM…☆329Jul 28, 2025Updated last year
- Code for "LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding", ACL 2024☆379Jul 20, 2026Updated 3 months ago
- Minimalistic large language model 3D-parallelism training☆2,850Oct 8, 2026Updated 3 weeks ago
- ☆142Jun 6, 2025Updated last year
- Physics of Language Models: Part 4.2, Canon Layers at Scale where Synthetic Pretraining Resonates in Reality☆364Aug 21, 2026Updated 2 months ago
- Training Large Language Model to Reason in a Continuous Latent Space☆1,733Jul 2, 2026Updated 3 months ago
- Serverless GPU API endpoints on Runpod - Get Bonus Credits • AdSkip the infrastructure headaches. Auto-scaling, pay-as-you-go, no-ops approach lets you focus on innovating your application.
- The official repository for SkyLadder: Better and Faster Pretraining via Context Window Scheduling☆44Dec 29, 2025Updated 10 months ago
- Official repository of paper "RNNs Are Not Transformers (Yet): The Key Bottleneck on In-context Retrieval"☆27Apr 17, 2024Updated 2 years ago
- ☆149Feb 4, 2026Updated 8 months ago
- [ICML 24 NGSM workshop] Associative Recurrent Memory Transformer implementation and scripts for training and evaluation☆68Aug 14, 2026Updated 2 months ago
- Meta Lingua: a lean, efficient, and easy-to-hack codebase to research LLMs.☆4,772Jul 18, 2025Updated last year
- Code to train and evaluate Neural Attention Memory Models to obtain universally-applicable memory systems for transformers.☆361Oct 22, 2024Updated 2 years ago
- an open source reproduction of NVIDIA's nGPT (Normalized Transformer with Representation Learning on the Hypersphere)☆112Mar 7, 2025Updated last year