Skip to Main Content

This project, SSD and RAM as an Extended Context Memory System for Large Language Models (LLMs), aims to overcome the memory limitations that prevent AI models from efficiently handling long conversations, large documents, and memory-intensive workloads on consumer-grade hardware. Traditional LLMs rely heavily on GPU VRAM and system RAM to store the Key-Value (KV) cache, which holds information needed to process and maintain conversational context. As the amount of information increases, memory consumption grows, often causing out-of-memory errors, performance degradation, or limitations on the number of simultaneous requests. To address this problem, the project modifies the open-source llama.cpp inference engine by introducing a tiered memory management architecture that utilizes GPU memory, system RAM, and NVMe SSD storage. Instead of keeping all cached information in expensive, limited high-speed memory, the system intelligently manages KV-cache data by retaining frequently needed information in RAM while transferring less frequently accessed data to SSD storage and retrieving it when required. This approach aims to reduce memory pressure, improve hardware utilization, and support larger cumulative workloads without requiring expensive GPU upgrades or relying entirely on cloud infrastructure. The project also introduces configurable memory allocation, automated cache management, and integration with the inference server and its user interface. By making better use of existing hardware resources, the system works toward making local AI inference more affordable, scalable, and accessible, particularly for developers, researchers, and individuals working with limited computational resources. Its extended storage capacity does not automatically increase a model's maximum supported context length, but it provides a foundation for more efficient memory management and future long-context AI capabilities.

Team

RavuriRithesh

More from Meta Global AI Developer Hackathon

Cardo turns the world around you into Kurdish flashcards. Kurdish is spoken by tens of millions of people, but it has very few learning tools, and most…

Kurdolingo project preview

oqed is an LLM-guided superoptimizer for x86-64. You point it at a C or C++ project and it does the rest: - builds the project and runs its workload…

oqed project preview

Playtest Agent plays a game from screenshots, looks for bugs, then replays each report and has a judge check it. I make games alone. Solo developers and…

Adrian project preview

Open-source npm malware detection on Meta's models: a live monitor that flags new malware about a day before the public lists, a Muse agent that investigates…

Gatekeeper project preview

Video2URDF turns one short phone video of a real articulated object (a laptop lid, a drawer, a desk lamp, a microwave door) into a measured URDF/MJCF a robot…

Video2URDF project preview

Glimmer Scope opens up Muse Glimmer 30B so you can see and steer the concepts it thinks with. I trained sparse autoencoders on nine layers of Glimmer's…

Kroonen AI project preview