Janas: Run LLMs Larger Than RAM by Streaming
Janas-LLM achieves remarkable performance on laptops with limited RAM, showcasing the potential of streaming techniques for large language models.
Introduction to Janas-LLM
Janas-LLM is a tool designed by Maurizio 'camauri' Cammalleri that allows running large mixture-of-experts language models on ordinary computers, both with and without GPUs. It utilizes SSD for streaming weights and experts, enabling the use of models larger than the available RAM.
Performance on Qwen3-Next-80B Model
On a 32 GB laptop, Janas-LLM achieved 37 tokens per second (tok/s) on the Qwen3-Next-80B model, which has a 48 GB footprint. This is significantly faster than llama.cpp's 2.8 tok/s and 16 tok/s for reading prompts, making Janas-LLM a more efficient option.
Comparison with llama.cpp
Janas-LLM outperformed llama.cpp on all 13 models compared in the Q4_K_M benchmark. This includes faster reading and writing speeds, highlighting the efficiency of Janas-LLM in handling large language models.
Technical Considerations
Janas-LLM is written in C and relies solely on the C library, ensuring compatibility with a wide range of systems. It can be run on various operating systems, including Linux and Windows, and requires minimal setup.
Memory Management
The tool manages memory efficiently by keeping the most frequently used experts in memory while streaming others from the SSD. This allows for smooth operation even on machines with limited RAM.
“Janas-LLM is a game-changer for running large language models on laptops with limited RAM.”
— Maurizio 'camauri' Cammalleri