facebookresearch / memory
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.
☆254Updated 3 weeks ago
Alternatives and similar repositories for memory:
Users that are interested in memory are comparing it to the libraries listed below
- Muon optimizer for neural networks: >30% extra sample efficiency, <3% wallclock overhead☆207Updated this week
- Normalized Transformer (nGPT)☆146Updated last month
- Manage scalable open LLM inference endpoints in Slurm clusters☆247Updated 5 months ago
- ☆179Updated this week
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆89Updated last month
- Implementation of 🥥 Coconut, Chain of Continuous Thought, in Pytorch☆138Updated last week
- Q-GaLore: Quantized GaLore with INT4 Projection and Layer-Adaptive Low-Rank Gradients.☆184Updated 5 months ago
- OpenCoconut implements a latent reasoning paradigm where we generate thoughts before decoding.☆142Updated this week
- Code for "LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding", ACL 2024☆256Updated this week
- ☆144Updated 3 weeks ago
- PyTorch implementation of models from the Zamba2 series.☆166Updated last month
- A framework to study AI models in Reasoning, Alignment, and use of Memory (RAM).☆155Updated last month
- Some preliminary explorations of Mamba's context scaling.☆204Updated 11 months ago
- Public repository for "The Surprising Effectiveness of Test-Time Training for Abstract Reasoning"☆272Updated last month
- Code for Adam-mini: Use Fewer Learning Rates To Gain More https://arxiv.org/abs/2406.16793☆375Updated last month
- Repo for "LoLCATs: On Low-Rank Linearizing of Large Language Models"☆203Updated 2 weeks ago
- Pytorch implementation of the PEER block from the paper, Mixture of A Million Experts, by Xu Owen He at Deepmind☆115Updated 4 months ago
- 🚀 Efficiently (pre)training foundation models with native PyTorch features, including FSDP for training and SDPA implementation of Flash…☆213Updated this week
- [ICML 2024] CLLMs: Consistency Large Language Models☆366Updated last month
- ☆190Updated last month
- [NeurIPS 2024] Official Repository of The Mamba in the Llama: Distilling and Accelerating Hybrid Models☆186Updated last week
- Tree Attention: Topology-aware Decoding for Long-Context Attention on GPU clusters☆109Updated last month
- Code to reproduce "Transformers Can Do Arithmetic with the Right Embeddings", McLeish et al (NeurIPS 2024)☆181Updated 7 months ago
- A simple unified framework for evaluating LLMs☆161Updated 2 weeks ago
- PyTorch implementation of Infini-Transformer from "Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention…☆287Updated 8 months ago
- Code for exploring Based models from "Simple linear attention language models balance the recall-throughput tradeoff"☆220Updated last month
- LLM KV cache compression made easy☆289Updated this week
- An efficent implementation of the method proposed in "The Era of 1-bit LLMs"☆154Updated 2 months ago
- The official evaluation suite and dynamic data release for MixEval.☆230Updated 2 months ago
- A curated reading list of research in Adaptive Computation, Inference-Time Computation & Mixture of Experts (MoE).☆136Updated last week