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.
☆383Dec 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 6 months ago
- Large Concept Models: Language modeling in a sentence representation space☆2,378Jan 29, 2025Updated last year
- Official repo of paper LM2☆49Feb 13, 2025Updated last year
- Repo for "LoLCATs: On Low-Rank Linearizing of Large Language Models"☆262Jan 31, 2025Updated last year
- [ICLR2025 Spotlight🔥] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameters☆594Feb 11, 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.
- Homepage for ProLong (Princeton long-context language models) and paper "How to Train Long-Context Language Models (Effectively)"☆266Sep 12, 2025Updated last year
- Code for BLT research paper☆2,062Nov 3, 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
- ☆140Jun 6, 2025Updated last year
- Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models☆344Feb 23, 2025Updated last year
- ☆138May 29, 2025Updated last year
- [ICML 24 NGSM workshop] Associative Recurrent Memory Transformer implementation and scripts for training and evaluation☆68Aug 14, 2026Updated last month
- MEXMA: Token-level objectives improve sentence representations☆44Jan 6, 2025Updated last year
- The official implementation of the ICML 2024 paper "MemoryLLM: Towards Self-Updatable Large Language Models" and "M+: Extending MemoryLLM…☆323Jul 28, 2025Updated last year
- Deploy open-source AI quickly and easily - Special Bonus Offer • AdRunpod Hub is built for open source. One-click deployment and autoscaling endpoints without provisioning your own infrastructure.
- ☆147Feb 4, 2026Updated 7 months ago
- Unofficial implementation of Titans, SOTA memory for transformers, in Pytorch☆1,981Jul 13, 2026Updated 2 months ago
- Pretraining and inference code for a large-scale depth-recurrent language model☆961Dec 29, 2025Updated 8 months ago
- A framework to study AI models in Reasoning, Alignment, and use of Memory (RAM).☆382Jun 25, 2026Updated 2 months ago
- Physics of Language Models: Part 4.2, Canon Layers at Scale where Synthetic Pretraining Resonates in Reality☆361Aug 21, 2026Updated 3 weeks ago
- Official implementation of the paper "Pretraining Language Models to Ponder in Continuous Space"☆27Jul 21, 2025Updated last year
- Scalable RL solution for advanced reasoning of language models☆1,874Mar 18, 2025Updated last year
- VPTQ, A Flexible and Extreme low-bit quantization algorithm☆681Aug 4, 2026Updated last month
- An Open Large Reasoning Model for Real-World Solutions☆1,538Jun 17, 2026Updated 3 months ago
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- 🐳 Efficient Triton implementations for "Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention"☆1,021Feb 5, 2026Updated 7 months ago
- Minimalistic large language model 3D-parallelism training☆2,825Updated this week
- Code for "LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding", ACL 2024☆380Jul 20, 2026Updated last month
- OpenDiLoCo: An Open-Source Framework for Globally Distributed Low-Communication Training☆592Jul 17, 2026Updated 2 months ago
- Official repository for "Scaling Retrieval-Based Langauge Models with a Trillion-Token Datastore".☆226Dec 16, 2025Updated 9 months ago
- Transformers components but in Triton☆34May 9, 2025Updated last year
- Stick-breaking attention☆64Jul 1, 2025Updated last year
- [ICML'24 Oral] The official code of "DiJiang: Efficient Large Language Models through Compact Kernelization", a novel DCT-based linear at…☆104Jun 14, 2024Updated 2 years ago
- The official repository for SkyLadder: Better and Faster Pretraining via Context Window Scheduling☆43Dec 29, 2025Updated 8 months ago
- 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.
- The evaluation framework for training-free sparse attention in LLMs☆132Jan 27, 2026Updated 7 months ago
- [NeurIPS 2025 Spotlight] TPA: Tensor ProducT ATTenTion Transformer (https://arxiv.org/abs/2501.06425)☆463Sep 4, 2026Updated 2 weeks ago
- [ICML'24] Data and code for our paper "Training-Free Long-Context Scaling of Large Language Models"☆449Oct 16, 2024Updated last year
- 🔥 A minimal training framework for scaling FLA models☆416Apr 22, 2026Updated 4 months ago
- Official repository for the paper "NeuZip: Memory-Efficient Training and Inference with Dynamic Compression of Neural Networks". This rep…☆62Oct 31, 2024Updated last year
- Meta Lingua: a lean, efficient, and easy-to-hack codebase to research LLMs.☆4,765Jul 18, 2025Updated last year
- Training Large Language Model to Reason in a Continuous Latent Space☆1,706Jul 2, 2026Updated 2 months ago