# Slotstream

> Run a 105 GB MoE model on a Mac that cannot hold it, by streaming experts from SSD

- Category: Models & Inference / Local Runtimes
- Language: Swift
- Licence: MIT
- Repository: https://github.com/carloslfu/slotstream
- Canonical page: https://ai-tldr.dev/tools/slotstream/
- Updated: 2026-09-01

## In short

Slotstream is a local inference engine for Apple Silicon Macs built around one problem: Qwen3.8-Flash-Next is a 125B-parameter mixture-of-experts model that occupies 105 GB on disk at 4-bit, and most Macs do not have that much memory. It sits in the Local Runtimes category of the Models & Inference tools and is open-source, written in Swift and licensed MIT.

## Overview

Slotstream is a local inference engine for Apple Silicon Macs built around one problem: Qwen3.8-Flash-Next is a 125B-parameter mixture-of-experts model that occupies 105 GB on disk at 4-bit, and most Macs do not have that much memory. Instead of shrinking the model, Slotstream changes how it is held: the 3.8 GB trunk stays resident, and the experts are streamed from SSD through a fixed pool of slots sized to what the machine actually has free. Engine start takes about two seconds because only the trunk loads.

It ships as a single Swift binary with no Python dependency, and it speaks two dialects that existing tooling already knows — the Ollama API and the OpenAI chat API — on port 11434, so clients such as Open WebUI and the OpenAI SDKs work against it unchanged. Capabilities the two dialects define but Slotstream does not implement (tools, JSON-schema output, logprobs) return an explicit 400 rather than being silently dropped.

The engine is MLX and Metal and the memory design assumes unified memory, so it is Apple Silicon only by design rather than by omission: experts are read from SSD straight into memory the GPU already addresses. The project documents its own measurements, including the auto-sizing table produced by `slotstream doctor --sim-ram N` and the caveat that the table has no term for SSD read speed — a base-storage Mac mini M2 measured well below the projected figure.

## What it does

- Streams mixture-of-experts weights from SSD through a fixed slot pool, keeping only the 3.8 GB trunk resident so the engine starts in about two seconds
- Auto-sizes its memory pool against what the machine really has free, and gives memory back when other apps want it; the plan is printed at startup
- Serves the Ollama (/api/chat, /api/generate) and OpenAI (/v1) chat subsets on port 11434, tested against Open WebUI and the OpenAI SDKs
- Single Swift binary — no Python runtime — installed by a one-line script or built from source with Command Line Tools
- Image input across every dialect: Ollama's images array, OpenAI image_url parts, and --image on the command line, backed by a 0.9 GB vision tower loaded on first use
- Resumable, sha256-verified weight downloads over eight parallel connections, with a doctor command that checks the machine before anything is transferred

## Getting started

Slotstream needs Apple Silicon, macOS 14 or later, and roughly 110 GB of free disk for the weights. Check the machine first, then install, pull, and serve.

1. Install the binary

   The install script drops the latest release into ~/.slotstream/bin and puts it on your PATH. Re-run the same line to upgrade.

```bash
curl -fsSL https://raw.githubusercontent.com/carloslfu/slotstream/main/install.sh | sh
```

2. Check the machine before downloading

   doctor prints the memory plan Slotstream would use on your Mac and whether the disk can hold the weights. It runs without any weights present.

```bash
slotstream doctor
```

3. Run a prompt with no server

   run offers the 105 GB download on first use, then answers directly on the command line. Add --image to send a picture.

```bash
slotstream run --prompt "why is the sky blue?"
```

4. Serve the Ollama and OpenAI APIs

   serve listens on port 11434 and implements the chat and generate subset used by Ollama clients and OpenAI SDKs, with streaming and CORS.

```bash
slotstream serve

curl localhost:11434/api/chat -d '{
  "model": "qwen3.8-flash-next:4bit",
  "messages": [{"role": "user", "content": "hello"}]
}'
```

## When to use it

- Run a frontier-size open-weight MoE model locally on a Mac whose RAM is far below the model's on-disk size
- Point an existing Ollama- or OpenAI-compatible client (Open WebUI, an SDK script) at a local endpoint without changing the client
- Keep prompts and documents on the machine when a hosted API is not an option, at the cost of SSD bandwidth rather than RAM
- Measure what a specific Mac can actually sustain before committing to a 105 GB download, using the doctor command's simulated-RAM plan

## Version history

- 2026-09-01 v0.2.0: Slotstream 0.2.0 added speculative decoding via an optional 1.5 GB draft head. The launch reached No. 1 on Show HN.
