# DeepSeek-V4.1-Flash 763B on Strata

A 763B MoE at 2.00 bpw on a 12 GB card: dense weights and about 260 experts in VRAM, a 27 GB expert store in RAM, the rest read from NVMe. It runs, at about 5 tok/s decode.

- Recipe id: `deepseek-v41-strata`  ·  status: measured  ·  updated 2026-11-22
- Model: [DeepSeek-V4.1-Flash](https://huggingface.co/ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF) (763B MoE, 384 routed experts per layer, 6 active)
- Weights: GGUF IQ2_XXS (GSQ-RCO), 257 GB, from https://huggingface.co/ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF
- Engine: [Strata](https://github.com/Niko1221/Strata) Strata Terminal 0.1.54 (release v0.2.8), engine strata-dsv41 0.1.54; CUDA 13
- Hardware: NVIDIA GeForce RTX 3060 12 GB, 62 GB RAM, Intel Core i5-12500, NVMe SSD
- Context: 8,192 tokens
- Placement: VRAM: dense weights (5.86 GB) and 252-262 of 15,360 routed experts. RAM: a store of about 2,600 hot experts (26-27 GB). NVMe: the other ~100 GB of experts read in place, and the 111 GB Engram table read a few rows per token.
- Contributor: [David Hatley](https://github.com/davidghatley)

## Run it

From `deepseek-v41-strata/` in a clone of https://github.com/davidghatley/3060-recipes:

```sh
strata install -- --family deepseek41 --model IST-DAS-2.00bpw --data-dir <weights dir> --yes --no-start && ./run_variant.sh faster
```

API: OpenAI-compatible on port 8080

Key flags: `Faster mode (5 experts, the default)`, `--experts 6 for Full quality`, `memory cap of 44 GB if your job runner counts page cache`

The script itself (`deepseek-v41-strata/run_variant.sh`, machine paths shown as `$MODELS`, `$SCRATCH`, `~`; set them to where your weights and builds live):

```sh
#!/usr/bin/env bash
# Start the Strata DeepSeek server with one engine variant, benchmark it, stop it. Run this inside gpu_run:
#   GPU_RUN_MEM=44G ~/anime-pipeline/tools/gpu_run --free --need 11000 deepseek-v41-strata/run_variant.sh LABEL [engine args...]
# Engine args are appended to the setup-written ones (later flags win), e.g.  --experts 6 --dspark off
# BENCH_ARGS passes extra options to scripts/bench.py (e.g. BENCH_ARGS="--cases chat --runs 2").
set -euo pipefail
LABEL=$1; shift
HERE=$(cd "$(dirname "$0")" && pwd)
REPO=$(dirname "$HERE")
OUT=$HERE/runs; mkdir -p "$OUT"
BASE_CFG=$HOME/.local/share/strata/install/strata-deepseek-v4.1-flash-ist-das-2.00bpw.json
STRATA=$MODELS/strata/terminal/0.1.54
CFG=$OUT/$LABEL.config.json
LOG=$OUT/$LABEL.server.log
PORT=8080

# Variant config: same as setup's, but text only, with this variant's flags, and its own engine log.
python3 -I - "$BASE_CFG" "$CFG" "$OUT/$LABEL.engine.log" "$@" <<'EOF'
import json, sys
base, out, log, extra = sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4:]
c = json.load(open(base))
c["args"] = c["args"] + ["--vision", "off"] + extra
c["log"] = log
json.dump(c, open(out, "w"), indent=1)
EOF

# Another server already on the port would answer our readiness checks and take the benchmark.
curl -sf -m 3 http://127.0.0.1:$PORT/v1/models >/dev/null && { echo "port $PORT is already in use; not starting $LABEL"; exit 1; }
echo "[$(date +%T)] start $LABEL: $*"
cd "$STRATA"
source "$REPO/scripts/lib_server.sh"
server_start "$LOG" "$STRATA/python/bin/python3.12" "$STRATA/serve/server.py" --engine strata --config "$CFG" --port "$PORT"
SRV=$server_top
t0=$(date +%s)
if ! server_wait "${STRATA_READY_WAIT:-7200}" 5 server_healthy "$PORT" /v1/models; then
  echo "server did not become ready (see $LOG)" >&2
  tail -30 "$LOG"
  exit 1
fi
# The HTTP side can be up before the engine: a 1-token request waits for the engine to be ready.
curl -s -m 3600 http://127.0.0.1:$PORT/v1/chat/completions -H 'Content-Type: application/json' \
  -d '{"model":"x","messages":[{"role":"user","content":"Say OK."}],"max_tokens":8,"reasoning_effort":"low"}' >"$OUT/$LABEL.warmup.json"
echo "[$(date +%T)] ready after $(( $(date +%s) - t0 )) s; vram $(nvidia-smi --query-gpu=memory.used --format=csv,noheader); rss $(ps -o rss= --ppid $SRV --pid $SRV | awk '{s+=$1} END {printf "%.1f GiB", s/1048576}')" | tee -a "$LOG"

# Sample the disk that really holds the pack (the path can be a symlink to another drive).
PACK=$(python3 -I -c 'import json,sys; a=json.load(open(sys.argv[1]))["args"]; print(a[a.index("--pack")+1])' "$CFG")
echo "[$(date +%T)] pack on $(df --output=source "$(readlink -f "$PACK")" | tail -1) ($(readlink -f "$PACK"))" | tee -a "$LOG"
python3 -I "$REPO/scripts/bench.py" --url http://127.0.0.1:$PORT --label "$LABEL" --out "$OUT" --disk-path "$(readlink -f "$PACK")" ${BENCH_ARGS:-} | tee "$OUT/$LABEL.bench.txt"
echo "[$(date +%T)] done $LABEL" | tee -a "$LOG"
```

## Measured results

| Metric | Conditions | Value | Stock | Ceiling | Source |
|---|---|---|---|---|---|
| decode | chat, Faster mode | 4.98 tok/s |  |  | [deepseek-v41-strata/RESULTS.md:31](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L31) |
| decode | code, Faster mode | 4.78 tok/s |  |  | [deepseek-v41-strata/RESULTS.md:31](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L31) |
| decode | chat, Full quality (6 experts) | 4.1 tok/s |  |  | [deepseek-v41-strata/RESULTS.md:32](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L32) |
| decode | after a 4K prompt, Faster mode | 4.57 tok/s |  |  | [deepseek-v41-strata/RESULTS.md:31](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L31) |
| prefill | 4K prompt, Faster mode | 91 tok/s |  |  | [deepseek-v41-strata/RESULTS.md:31](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L31) |
| prefill | 8K prompt, Faster mode | 126 tok/s |  |  | [deepseek-v41-strata/RESULTS.md:31](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L31) |
| prefill | 60-token prompt (first token after 12-19 s) | 3.5-4.7 tok/s |  |  | [deepseek-v41-strata/RESULTS.md:36](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L36) |
| startup | server up and warm-up reply done | 35 s |  |  | [deepseek-v41-strata/RESULTS.md:37](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L37) |
| vram_peak | while serving | 11.3-11.8 GB |  |  | [deepseek-v41-strata/RESULTS.md:38](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L38) |
| ram_peak | cgroup peak, Faster mode (page cache counted) | 34.9 GB |  |  | [deepseek-v41-strata/RESULTS.md:39](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L39) |
| other | NVMe read rate while decoding, median | 1.3-1.4 GB/s |  |  | [deepseek-v41-strata/RESULTS.md:40](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L40) |
| decode | same run with the weights on a 7200 rpm hard disk (not a controlled comparison) | 0.46 tok/s |  |  | [deepseek-v41-strata/RESULTS.md:52](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L52) |
| ttft | 60-token prompt, weights on the hard disk | 201-210 s |  |  | [deepseek-v41-strata/RESULTS.md:53](https://github.com/davidghatley/3060-recipes/blob/main/deepseek-v41-strata/RESULTS.md#L53) |

## Caveats

- A measurement report, not a tuned recipe: no llama.cpp baseline and no CPU-vs-NVMe separation yet.
- About half of Strata's published 8-11 tok/s for a 3060 with 46 GB RAM.
- Not for interactive coding: a short question waits 12-19 s for its first token.
- Storage sets the speed. The same run from a hard disk decoded at 0.46 tok/s.
- Full quality at an 8K prompt gave an unexplained slow result (1.99 tok/s) and is excluded.

## Findings from this recipe

- [For a model that reads experts from disk, the drive sets decode speed by 10x](https://davidghatley.github.io/3060-recipes/findings/disk-sets-speed-for-disk-bound-models.md)
- [Resolve the model path before benchmarking, because a symlink can hide a slow disk](https://davidghatley.github.io/3060-recipes/findings/symlinked-model-dir-on-a-slow-disk.md)
- [DeepSeek-V4.1-Flash 763B does run on a 12 GB card, at about 5 tok/s](https://davidghatley.github.io/3060-recipes/findings/deepseek-763b-runs-on-12gb-at-5-tok-s.md)
- [A cgroup memory cap counts page cache, so mmap'd weights hit it](https://davidghatley.github.io/3060-recipes/findings/memory-cap-counts-page-cache.md)

## Credits

- DeepSeek: The model behind the Strata recipe. (https://huggingface.co/deepseek-ai)
- ISTA-DASLab: The 2.00 bpw build whose "runs on 12 GB" claim the DeepSeek recipe checks. (https://huggingface.co/ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF)
- Strata (Niko1221): Runs DeepSeek-V4.1-Flash 763B on the 12 GB card. (https://github.com/Niko1221/Strata)
- Hugging Face: Every model, quant and drafter in these recipes is fetched from the Hub at a pinned revision and checked against the API's sha256; the base model's MTP tensors were fetched with HTTP range requests. (https://huggingface.co)
- NVIDIA: Every recipe runs on CUDA on this card; cuBLAS SGEMV is our VRAM bandwidth probe (342 GB/s), nvidia-smi dmon is the telemetry, and Inkling's experts ship in NVFP4. (https://www.nvidia.com/en-us/geforce/graphics-cards/30-series/rtx-3060-3060ti/)

## Reproductions

None yet. Ran it on your own 3060? Report your numbers: https://github.com/davidghatley/3060-recipes/issues/new?template=reproduction.yml

## Machine-readable

- https://davidghatley.github.io/3060-recipes/recipes/deepseek-v41-strata/recipe.json
- Folder with scripts and raw runs: https://github.com/davidghatley/3060-recipes/tree/main/deepseek-v41-strata
- Full results log: https://raw.githubusercontent.com/davidghatley/3060-recipes/main/deepseek-v41-strata/RESULTS.md

## Full write-up (README)

Checking a claim: the [ISTA-DASLab DeepSeek-V4.1-Flash GSQ-RCO GGUF](https://huggingface.co/ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF) card says "With Strata, every build runs on a single GPU with 12 GB of VRAM."
The model is a 763B MoE (384 routed experts per layer, 6 active). This recipe runs the 2.00 bpw IQ2_XXS build on the [Strata](https://github.com/Niko1221/Strata) engine and measures what "runs" means on this box.

This is a measurement report, not a tuned recipe. Numbers are in [RESULTS.md](RESULTS.md), the setup plan is in [PLAN.md](PLAN.md), and the raw data is in `runs/`.

### Result

| Single user, 8k context, Strata 0.1.54 | Faster mode (5 experts, default) | Full quality (6 experts) |
|---|---:|---:|
| Decode, chat | **4.98 tok/s** | 4.10 tok/s |
| Decode, code | 4.78 tok/s | 3.69 tok/s |
| Prefill, 4k / 8k prompt | 91 / 126 tok/s | 89 / 113 tok/s |
| Prefill, 60-token prompt | 4.3 tok/s (a short question waits 12–19 s) | 3.5 tok/s |
| VRAM | 11.3–11.8 GB | |
| RAM (cgroup peak) | 34.9 GB | 30.6 GB |
| Disk | 257 GB on the NVMe, 1.3–1.4 GB/s median reads while decoding | |

Strata's own numbers for a 3060 with 46 GB RAM are 8–11 tok/s. This box gets about half of that.

### What "runs on 12 GB" means

- **The GPU holds very little of the model.** The dense weights (5.86 GB) and about 260 of the 15,360 routed experts (2.5 GB) are in VRAM.
- **RAM holds a store of the hottest experts:** about 2,600 of them (27 GB). It is sized from free RAM at start.
- **Everything else is read from the NVMe.** The other ~100 GB of experts are read in place from the GGUFs, and the 111 GB Engram n-gram table is read a few rows per token. So a fast NVMe on the same box is part of the requirement, not an option. Measured: with the pack on a 7200 rpm hard disk instead, decode fell from 4.98 to 0.46 tok/s and a short question waited 200 s for its first token (RESULTS.md, not a controlled comparison).
- **The CPU does most of the expert maths.** 72–78% of expert evaluations ran on the CPU on short prompts.

So the claim is true: a 12 GB card is enough. But the card is not what sets the speed. RAM, the CPU and the SSD do.

### When you would actually want this

- **Offline or batch questions where quality matters more than time,** and an answer of a few hundred tokens in 1–3 minutes is fine.
- **Checking what a frontier-size MoE says** about a prompt, against a smaller local model, without renting a GPU.
- **Not for interactive coding or agents.** At ~5 tok/s, plus 12–19 s before the first token of even a short question, an opencode session is painful. [flint](../flint/) (58.8 tok/s at 128k) or [inkling-2-mini](../inkling-2-mini/) (29 tok/s) are the interactive options on this box.
- **You need ~260 GB of free NVMe and ~35 GB of free RAM.** On a slower drive (this box's `$SCRATCH` SK hynix BC501), expect it to be slower still.

### Use it

```bash
## 1. Strata Terminal 0.1.54 (release v0.2.8). Read install.sh first; it verifies a SHA-256 and a signed feed, no sudo.
STRATA_DATA_DIR=$MODELS/strata HF_HOME=$MODELS/hf TMPDIR=$MODELS/tmp \
  strata install -- --family deepseek41 --model IST-DAS-2.00bpw --data-dir $MODELS/deepseek-v41-flash --yes --no-start
## 2. One benchmarked run (server on 127.0.0.1:8080, OpenAI-compatible), through the shared GPU queue:
GPU_RUN_MEM=44G ~/anime-pipeline/tools/gpu_run --free --need 11000 deepseek-v41-strata/run_variant.sh faster
##    Engine flags are appended after the label, e.g. `... run_variant.sh full --experts 6`
```

`GPU_RUN_MEM=44G` matters: gpu_run's 20 GB default cap counts page cache, and the experts read in place live in the page cache.

### Tools

| Script | What it does |
|---|---|
| `run_variant.sh LABEL [engine args]` | start the Strata server with one engine variant, wait for the engine, run `scripts/bench.py`, stop |
| `bottleneck.sh [a\|b]` | the CPU-vs-NVMe runs: `--cpu-threads` and `--ssd-cache` (RAM store size), one knob at a time, controls on both sides. Not run yet: needs the pack on an NVMe |
| `../scripts/bench.py` | prefill and decode tok/s from streaming timestamps, plus a 1 s sampler of VRAM, RAM, page cache, CPU busy % and reads on the model's disk |

### Credits

- [Strata](https://github.com/Niko1221/Strata) for the engine, the packer and the install plan.
- ISTA-DASLab for the GSQ-RCO quantisation and the GGUFs.
- DeepSeek for DeepSeek-V4.1-Flash.
