TokenWing runs AI models larger than RAM by streaming experts from an SSD
TokenWing is the engine inside Run My AI, built on llama.cpp[1]. It loads the routed experts of Mixture-of-Experts (MoE)[2] models from an NVMe SSD as needed, so models far larger than the machine's memory run at a usable speed. It predicts the experts of the next two layers and reads them from the SSD into RAM and VRAM[3] while the current layer computes. Speed is still limited by how fast the CPU and GPU read the experts from RAM or VRAM.
To run a model, you download the zip for your machine from Releases, download a model, run autotuner --file <model>, and then start llama-server, which serves a chat page at http://localhost:8080 and an OpenAI-compatible API. When RAM or VRAM is short, TokenWing switches to a slower path and prints one line about it, and it stops only on wrong data, such as a model file that fails its checksums. It does not skip experts: every expert the model picks is computed with its full weights. An NVMe SSD on PCIe 3.0 or above is suggested, and reads do not wear out an SSD, since wear comes from writes.
The listed additions include more GPUs, speculative decoding[4], macOS on Apple Silicon, image and video input starting with Qwen 3.8 Flash Next, the next model Inkling 2 Mini, and reading one model from several SSDs at once. The engine sends one anonymous record a day, which --no-stats, TOKENWING_NO_STATS=1 or DO_NOT_TRACK=1 turns off. The project is released under the MIT licence.
Repository TokenWing github.com
Inference engine built on llama.cpp that streams MoE model experts from an SSD, so models larger than RAM can run locally.
Discussion
Commenters mostly discuss speed. One suggests prefetching the next two layers' experts using the current layer's hidden state as a proxy, and another reports that a different NVMe offloading setup runs DeepSeek 4.1 at about 300 tokens/s. A third reports about 31 t/s at 100k context with DSpark, which they say is not as good as MTP.
Sources
-
github.com
GitHub - runmyai/tokenwing: Run huge AI models on your own PC, even ones bigger than your memory.



