Skip to Main Content

PocketLLM runs large Mixture-of-Experts models (30B to 100B+) fully offline on laptops that don't have the RAM for them, with the weights on one or more USB drives. Problem: organisations that must not leak data (defence, public sector, regulated industry) can't send prompts to a cloud LLM, and the laptops they actually have can't hold a 30B+ model in memory. With stock llama.cpp, a model bigger than RAM is read page fault by page fault and decode collapses to well under 1 token/s. What I built: - Expert streaming engine (ggml-pocket): a ~500-line patch to llama.cpp's CPU MoE kernel. It reads only the experts the router picked, as soon as it picks them, with concurrent large reads. Output is token-identical with the engine on and off (checked in CI). - Multi-drive striping: expert tensors spread over several drives and read in parallel. - Planner and measured tuner: before downloading, it says whether a model fits, where each part lives (GPU / RAM / streamed), and an upper bound on speed; llama-bench then measures the real speed. - Air-gap mode: cloud features disabled by policy, signed manifest verified before anything runs, per-session key for the local model, metadata-only audit log. - Cluster mode: pools memory of several machines over llama.cpp RPC. - One-command Mac installer and a dashboard that shows plugged-in drives, per-drive read speed and a model picker. Results (Linux CI lab, Qwen3-30B-A3B, 18.6 GB, 6 GiB RAM, drives throttled to 300 MB/s): stock llama.cpp 0.08 tok/s. PocketLLM default (Q3_K experts) 1.40 tok/s on 1 drive (x17.5) and 1.96 on 2 drives, with mean KLD 0.065 vs the original. Settings that lose more than KLD 0.15 are not offered by default. Honest scope: a USB drive adds capacity and read bandwidth, not compute. Most numbers come from an emulated low-RAM machine with throttled drives; measurements on real laptops with real USB drives, and on Llama 4 Scout, are still to do.

Team

Looming41

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