Janas streams 48 GB LLMs from SSD on a 32 GB laptop, beating llama.cpp by 8x
Janas: Run LLMs larger than RAM by streaming experts from SSD
Janas-LLM, a C engine by Maurizio Cammalleri, runs mixture-of-experts models larger than RAM by streaming experts from an NVMe SSD. On a 32 GB laptop, Qwen3-Next-80B (48 GB) hits 37 tok/s with drafts, 24 without, versus llama.cpp's 2.8; prompt reading reaches 62 tok/s against 16. It outperformed llama.cpp on all 13 models compared in Q4_K_M. Experimental, Linux and Windows.
37 tok/s from Qwen3-Next-80B (a 48 GB model) on a laptop with 32 GB of memory, 24 without drafts, where llama.cpp manages 2.8; reading a prompt, 62 tok/s against 16.
- sieve
> Using a GPU has, once, caused a driver reset that took the desktop with it.
Only once? This has happened to me so many times with LLM-assisted development. I was writing an OCR engine and pathological shapes would cause OOM that would take the display out. On other occasions, the LLM would try to load 24GB of bf16 weights onto a 16GB GPU without understanding the consequences.
Have to encode this in logic: keep some space reserved for the display, and check before allocation. But some errors are bound to slip through.
---
Inspired by DwarfStar4 and Strata, I am trying to build my own gemma4-specific inference engine designed to run on gfx1201.
It is a lot of work. You cannot simply vibecode one in two days.
- suprjami
Qwen 3? (Jumanji) What year is it?
What a waste of time.
Strata already does this with Qwen3.8-Flash-Next: https://github.com/Niko1221/Strata
- jdb9001
Every few weeks, someone stumbles on what llama.cpp has had for years again, and reimplements it. I'm not sure why.
- 3eb7988a1663
If anyone needs to see what 62 tokens/second looks like: https://token.qusai.pro/?speed=62
Which seems sufficient for mortals who are not running gas town, but want a local model.
- skeledrew
This could be a game changer for me. The best I've been able to do so far is ~8 tok/s with Qwen 35B A3B, 32GB RAM. But then again I just got an OpenCode Go plan yesterday and have yet to figure if I can even consume my quota on DeepSeek Flash as the need to plan things well is bottlenecking me. Might be a while before I try the local thing again.