# Ramgod runs mixture-of-experts models bigger than RAM on an 8 GB Mac

Published 2026-11-28 · AI.info Team · AI.info

> Ramgod streams parts of mixture-of-experts models from an SSD so they can run on a Mac with less RAM than the model's size. Its repository reports faster generation than llama.cpp in tests on one 8 GB M1 Mac.

Ramgod runs mixture-of-experts language models larger than a Mac's available RAM by streaming their components from the SSD as needed. The project repository reports that it ran two such models on an 8 GB M1 MacBook faster than a configured version of llama.cpp.

Source [github.com](https://github.com/Ri4dH/ramgod)

The tool uses llama.cpp for the model's calculations while managing when and how model weights move into memory. The reported results come from one tested machine, and performance depends heavily on free RAM.

## Results on one Mac

The reported tests used an 8 GB M1 running macOS 26, with the same prompt and greedy decoding. For the 11.6 GB gpt-oss-20b model, Ramgod reached a median of 3.66 tokens per second, compared with 0.72 for the best llama.cpp settings the project found.

For the 18.6 GB Qwen3-30B-A3B-Instruct-2507 model, the corresponding results were 3.54 and 1.12 tokens per second. The repository says default llama.cpp settings ran out of GPU memory on both models; the comparison instead used settings that placed attention on the GPU and experts on the CPU from a memory-mapped file.

Each reported speed is the median of three alternating back-to-back rounds, with only a terminal open in the same session. The project cautions that absolute speeds moved by ±25% with free RAM, including for llama.cpp, and says its observed gpt-oss speed ratio ranged from 2.8 to 5.1 times across A/B sessions as Ramgod improved.

The results cover single-sequence decoding. Prompt processing was also faster in the reported test, but long prompts have not been optimized.

## Moving experts from storage

A mixture-of-experts model uses only some of its experts for each generated token. Ramgod reads chosen experts in large parallel chunks before they are needed and skips pages already in RAM.

It also predicts which experts the next layer will use and fetches them while the current layer computes. The repository says the predictor found 87–89% of the experts selected by the next layer; it is enabled by default for models with large experts and disabled for smaller ones.

Frequently used experts are locked in RAM, while the rest are left to the page cache. The project says the locking can push some other apps' memory to swap, reporting 0–77 MB system-wide per gpt-oss run; an option turns locking off.

## Requirements and limits

Ramgod requires an [Apple](https://ai.info/companies/apple-inc) Silicon Mac, Homebrew and a mixture-of-experts model in GGUF format. It currently relies on macOS features and Metal.

The repository lists gpt-oss-20b and Qwen3-30B-A3B as tested and benchmarked. Other mixture-of-experts GGUF models, including members of the Qwen3 MoE family, Mixtral and OLMoE, are listed as expected to work but untested.

The tool was built and tested against llama.cpp 1.0.0, Homebrew build 12359. The repository warns that a future llama.cpp version may break Ramgod because it relies on internal tensor names.

Its PolyForm Noncommercial 1.0.0 license permits personal projects, research, education and other noncommercial uses. Commercial use is not permitted under that license; the repository directs prospective commercial users to contact the author.

## Sources

1. Original source [GitHub](https://github.com/Ri4dH/ramgod) “GitHub - Ri4dH/ramgod: Run Mixture-of-Experts LLMs bigger than your RAM on a Mac, 3–5× faster than llama.cpp” github.com

## In the tracker

- [gpt-oss-20b](https://ai.info/tracker/models/gpt-oss-20b)

## Related stories

- [EUROPA reports faster 1T-scale MoE training on public supercomputer](https://ai.info/news/europa-pytorch-1t-moe-public-supercomputer-training)
- [Google Cloud connects AlloyDB Omni to local language models](https://ai.info/news/google-cloud-alloydb-omni-local-model-support)
- [Apple’s Claris previews Harbor for running AI models on Macs](https://ai.info/news/claris-harbor-private-preview-local-ai-mac)
- [Ollama brings Inkling 2 Mini to local Macs in preview](https://ai.info/news/ollama-inkling-2-mini-local-preview)
- [Unsloth Desktop adds local inference on AMD XDNA 2 NPUs in Ryzen AI PCs](https://ai.info/news/amd-unsloth-xdna-2-npu-agentic-ai-apps)

## Explore

[More articles](https://ai.info/news)

---

Canonical: https://ai.info/news/ramgod-moe-models-8gb-mac
