Janas: Run LLMs larger than RAM by streaming experts from SSD
TL;DR Highlight
Streaming MoE experts from SSD ran an 80B model on a 32GB laptop at 24 tok/s versus llama.cpp's 2.8.
Who Should Read
A developer who wants to run large MoE models locally on a 32GB-RAM laptop without a big GPU
Core Mechanics
- Models bigger than RAM run by reading from SSD
- Janas-LLM keeps weights on disk and streams the experts each token needs from an NVMe SSD.
- Experts that keep coming back stay in a memory cache.
- This works because MoE (Mixture-of-Experts, where only some expert blocks run per token) activates only part of the model.
- Qwen3-Next-80B beat llama.cpp
- On the same laptop (32GB, Core Ultra 9 185H, integrated Arc GPU), the 48.4GB model wrote at 24 tok/s versus llama.cpp's 2.8 tok/s.
- Reading a 1,024-token prompt was 62 versus 16 tok/s.
- With drafts (a small predictor guessing next tokens that the model verifies) writing reached 37 tok/s.
- Faster on most of the 13 models compared
- The README says Janas is faster than llama.cpp on all 13 models in Q4_K_M.
- For example, Qwen3-30B-A3B wrote at 32 versus 15 tok/s and read at 135 versus 122 tok/s.
- The exception is 3-bit Qwen3-30B, which read prompts slower (100 versus 112 tok/s).
- llama.cpp ran out of memory on the big model
- With the usual build and GPU involved, the 48GB model ran out of memory.
- It only ran with a no-repack build (GGML_CPU_REPACK=OFF) plus --no-host 1 -lm mmap.
- Under that setup it read at 16 tok/s and wrote at 2.8 tok/s on CPU alone.
- It is an experiment with unverified stability
- The author developed and measured on a single machine and says other hardware is untested.
- It fills free memory with its cache and reads the disk with O_DIRECT, which can push the desktop into swap.
- A GPU use once caused a driver reset that took the desktop down.
- It also serves code completion and MCP
- janas-server offers an OpenAI-compatible HTTP API and /infill, usable from VSCodium and VS Code via llama.vscode or Continue.
- janas-mcp exposes the model as tools to MCP clients such as Claude Code.
- Code completion took 1.5-2.2 s per proposal.
Community Reactions
- Opinion that this reinvents existing tools
- One commenter said people keep reimplementing what llama.cpp has had for years.
- Another said there are many SSD expert-streaming projects and a guide or merged project is needed.
- Experience hoping for faster local inference
- A user who reached about 8 tok/s on Qwen 35B A3B with 32GB RAM said this could be a game changer.
- Another comment said 62 tok/s is enough for ordinary local use.
- Experience with GPU OOM crashes
- A commenter said LLM-assisted development had crashed their display via OOM many times.
- They now reserve space for the display and check before allocating.
- Concerns about SSD wear and model choice
- Some worried the heavy reads would wear out the SSD.
- Another asked why such old models were used instead of something like Qwen 3.8.
How to Apply
- Measure your own machine with janas-bench
- On an idle Linux x86-64 box, download the release tarball and run janas-chat.
- Start with a small model and compare read/write tok/s from janas-bench against llama-bench.
- Set --cache <GiB> to cap memory from the start.
- Set safety limits first
- On a test machine, use JANAS_GPU=0 and a --cache limit to reduce swap and driver-reset risk.
- Measure with other apps closed, then again with a browser open.
- Gauge local candidates by SSD speed
- When a model file exceeds RAM, check your NVMe read speed first (the author's was about 5.7 GB/s).
- Compare it with the active expert size to judge whether local deployment is realistic.
- Try it as a local code completion server
- Start janas-server and point Continue or llama.vscode at its OpenAI-compatible endpoint in VS Code.
- Time a single completion with a code model like Qwen3-Coder-30B-A3B.
Try It
# Paste into a terminal (Linux x86-64). Steps are taken from the README
curl -LO https://github.com/prabanta-dev/janas/releases/latest/download/janas-linux-x86_64.tar.gz
tar xf janas-linux-x86_64.tar.gz && cd janas
# Run with a memory cap and pick a model (prefix JANAS_GPU=0 to keep it off the GPU)
./janas-chat --cache 16
# Next: run janas-bench to measure read/write speed on your machine and compare with llama-benchTerminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls