Janas: Streaming LLMs from SSD for RAM-Large Models π
Janas-LLM achieves 37 tok/s on 32GB laptops, outperforming llama.cpp across 13 models, thanks to SSD streaming and efficient memory usage.
Introduction to Janas-LLM
Janas-LLM, a tool designed by Maurizio 'camauri' Cammalleri, enables the execution of large language models (LLMs) on standard computers without requiring dedicated GPUs. The key innovation is the streaming of model components from an SSD, allowing models larger than the available RAM to run efficiently.
Performance Metrics
On a 32GB laptop, Janas-LLM achieved 37 tokens per second (tok/s) with the Qwen3-Next-80B model, significantly outperforming llama.cpp's 2.8 tok/s. Reading speeds were also superior, with 62 tok/s for Janas-LLM compared to 16 tok/s for llama.cpp.
Comparison with llama.cpp
Janas-LLM outperformed llama.cpp on all 13 models compared in the Q4_K_M benchmark. This includes the 3-bit Qwen3-30B model, which, despite reading prompts slower than llama.cpp, writes three times as fast.
Hardware and Software Requirements
Janas-LLM is designed to run on Linux x86-64 systems, such as Ubuntu 22.04 and Debian 12 and later. It can also run on Windows 10 and 11 with specific configurations. The tool is written in C and does not require additional dependencies beyond the C library.
Efficiency and Memory Management
The Janas-LLM architecture ensures that model weights remain on disk, while the necessary tokens are streamed from an NVMe SSD. This approach allows for efficient memory usage, enabling the execution of large models on systems with limited RAM.
βJanas-LLM is an experiment, not a product, designed to push the boundaries of LLM execution on standard hardware.β
β Maurizio 'camauri' Cammalleri
By Chaos Lab Β· ε¦ηζηAI