Notes · 2026-11-04

Strata: 큰 MoE 모델을 개인 PC에서 돌리는 추론 엔진Strata: An Inference Engine for Running Large MoE Models on a Personal PC

수백 GB급 MoE 모델을 소비자 GPU, 큰 RAM, NVMe SSD에 나눠 올려 로컬에서 돌리는 오픈소스 엔진 Strata의 구조와 실측 수치를 정리한다.The architecture and measured numbers of Strata, an open-source engine that runs MoE models of hundreds of GB locally by splitting them across a consumer GPU, a large RAM and an NVMe SSD.

Sources are the README, docs/HOW_IT_WORKS.md, docs/MODELS.md and docs/SAFETY.md of the niko1221/strata repo (as of v0.2.10, released 2026-11-02). All numbers are the repo documentation’s own measurements; I have not reproduced them.

Related lesson: /study/llm/inference/ · Related note: Inference optimization reading list

1. In one line

A C++ engine (partly built on llama.cpp/ggml, MIT) that runs MoE models needing hundreds of GB of GPU memory (Qwen3.8-Flash-Next, DeepSeek-V4.1-Flash-1017, etc.) by splitting them across a 12–24GB consumer GPU + lots of RAM + an NVMe SSD. It has a desktop app and a terminal app, and serves an OpenAI- and Anthropic-compatible API on localhost so you can plug in coding agents such as Claude Code, Codex and OpenCode. It was created on 2026-09-24 and has about 39K GitHub stars (as of early November).

2. How it fits

Location What goes there
GPU (VRAM) Attention/DeltaNet mixers, router, shared expert, output head, MTP draft layer, KV cache (from 64K on, only the frequently read part). Leftover VRAM becomes a cache of frequently used experts (it keeps changing during a conversation)
RAM All experts (Qwen3.8-Flash-Next has 24,576, using 10 per token). Experts that are not on the GPU are computed by the CPU straight from RAM (AVX-512/AVX2), concurrently with the GPU
SSD A 28.8GB n-gram lookup table. Only a few rows are read per token
  • Each extra 1GB of VRAM lets about 700 more experts live on the GPU. That is why “more VRAM beats a faster GPU.”
  • Speculative decoding: the model’s own MTP layer drafts up to 3 tokens, and a single verification pass accepts 2.4–3.2 tokens on average, for a 1.6–1.8× speedup. For answers that repeat earlier content, such as code edits, prompt lookup drafts up to 5 tokens (code edits get 6–11% faster).
  • Long inputs are read in 8,192-token chunks, with the next layer’s experts sent ahead over PCIe. Prefill on long documents exceeds 1,000 tok/s. The conversation cache is kept, so follow-up questions only read the new part.

3. Memory by model

Model Size Requirements
Qwen3.8-Flash-Next (ISTA-DASLab compression) Q2_0 37.6GB · IQ2_XS 39.2GB · IQ3_XXS 47.0GB · IQ3_S 54.8GB (RAM+VRAM) IQ3_S reportedly scores the same as the original. The Coder variant needs about 32GB of RAM
Qwen3.6-35B-A3B RAM 32–52GB
DeepSeek-V4.1-Flash-1017 (ISTA-DAS) 1.75 / 2.00 / 2.25 bpw = 239 / 257 / 274GB download, Coder variant (half the experts removed) 191GB GPU 12GB+, RAM 46GB+ (64GB recommended), NVMe. Whatever does not fit in RAM is read from the SSD. 8K context

DeepSeek 2.00 bpw speed (README, as of Strata 0.2.5):

Hardware Output Input processing
RTX 3060 12GB, RAM 46GB 9–11 tok/s about 155 tok/s (4K)
RTX 5070 12GB, RAM 64GB 4–6 tok/s about 110 tok/s (4K)
Radeon AI PRO R9700 ×1, RAM 251GB 21–25 tok/s 320–360 tok/s (8K)
Radeon AI PRO R9700 ×4 74–77 tok/s 400–450 tok/s (8K)
Ryzen AI Max+ 395 (128GB unified) 19–21 tok/s (code) 87 tok/s (4K)
  • “Faster” mode uses only 5 of the 6 experts per token (the default on GPUs with 16GB or less).
  • Even with the same prompt, answers can differ from run to run because the set of experts on the GPU keeps changing.
  • Supported hardware: NVIDIA RTX 20–50, AMD RX 7000/9000 and R9700 (HIP), Intel Arc (Linux), Apple Silicon, Strix Halo, DGX Spark.

4. Security and networking

  • No telemetry (no usage statistics, crash reports or accounts). The engine code (src/ etc.) contains no networking code.
  • Outbound traffic is limited to model downloads, external model services the user adds, and update checks (with signing-key verification). There is an --offline option.
  • The bundled coding agent (DeepSeek Harness, MIT) has its own telemetry switch.
  • If the bare server (serve/server.py) is exposed to the network without a key, it only prints a warning. When running it on a server shared by several people, you must set a key.

5. Why it matters

  • It shows that a large DeepSeek-V4.1-Flash-class MoE can run at single-digit tok/s on a PC with a 12GB GPU + 64GB RAM. It is not for training or bulk generation, but for a personal local coding agent or demos.
  • The core technique, “cache only the frequently used experts on the GPU and let the CPU compute the rest concurrently,” is a common idea in MoE offloaded serving (the same family as llama.cpp’s -ot option and ktransformers).

출처는 niko1221/strata repo의 README, docs/HOW_IT_WORKS.md, docs/MODELS.md, docs/SAFETY.md(v0.2.10, 2026-11-02 릴리스 기준)다. 숫자는 모두 repo 문서의 자체 측정이며 재현하지 않았다.

관련 레슨: /study/llm/inference/ · 관련 노트: Inference 최적화 읽기 목록

1. 한 줄 요약

수백 GB의 GPU 메모리가 필요한 MoE 모델(Qwen3.8-Flash-Next, DeepSeek-V4.1-Flash-1017 등)을 12–24GB 소비자 GPU + 큰 RAM + NVMe SSD로 나눠 돌리는 C++ 엔진이다(llama.cpp/ggml 일부 사용, MIT). 데스크톱 앱과 터미널 앱이 있고, localhost에 OpenAI·Anthropic 호환 API를 띄워 Claude Code·Codex·OpenCode 같은 코딩 agent를 붙일 수 있다. 2026-09-24에 만들어졌고 GitHub 별이 약 3.9만(11월 초 기준)이다.

2. 어떻게 맞추나

자리 올리는 것
GPU (VRAM) attention·DeltaNet mixer, router, shared expert, 출력 head, MTP draft 층, KV cache(64K부터는 자주 읽는 부분만). 남는 VRAM은 자주 쓰는 expert 캐시(대화 중 계속 바뀜)
RAM expert 전부(Qwen3.8-Flash-Next는 24,576개, 토큰당 10개 사용). GPU에 없는 expert는 CPU가 RAM에서 바로 계산(AVX-512/AVX2)하며, GPU와 동시에 돈다
SSD 28.8GB n-gram lookup table. 토큰당 몇 줄만 읽는다
  • VRAM이 1GB 늘면 expert 약 700개를 더 GPU에 둘 수 있다. 그래서 “빠른 GPU보다 큰 VRAM”이 중요하다.
  • 추측 디코딩(speculative decoding): 모델 자체의 MTP 층이 최대 3토큰을 draft하고, 한 번의 검증 pass에서 평균 2.4–3.2토큰을 받아 1.6–1.8배 빨라진다. 코드 수정처럼 앞 내용을 되풀이하는 답은 prompt lookup으로 최대 5토큰을 draft한다(코드 수정 6–11% 빨라짐).
  • 긴 입력은 8,192토큰 단위로 읽고, 다음 층의 expert를 PCIe로 미리 보낸다. 긴 문서의 prefill이 1,000 tok/s 이상이다. 대화 캐시를 유지해 후속 질문은 새 부분만 읽는다.

3. 모델별 메모리

모델 크기 필요한 것
Qwen3.8-Flash-Next (ISTA-DASLab 압축) Q2_0 37.6GB · IQ2_XS 39.2GB · IQ3_XXS 47.0GB · IQ3_S 54.8GB (RAM+VRAM) IQ3_S가 원본과 같은 점수라고 한다. Coder판은 RAM 약 32GB
Qwen3.6-35B-A3B RAM 32–52GB
DeepSeek-V4.1-Flash-1017 (ISTA-DAS) 1.75 / 2.00 / 2.25 bpw = 239 / 257 / 274GB 다운로드, Coder판(expert 절반 제거) 191GB GPU 12GB 이상, RAM 46GB 이상(64GB 권장), NVMe. RAM에 안 들어가는 부분은 SSD에서 읽는다. 문맥 8K

DeepSeek 2.00 bpw 속도(README, Strata 0.2.5 기준):

하드웨어 출력 입력 처리
RTX 3060 12GB, RAM 46GB 9–11 tok/s 약 155 tok/s (4K)
RTX 5070 12GB, RAM 64GB 4–6 tok/s 약 110 tok/s (4K)
Radeon AI PRO R9700 ×1, RAM 251GB 21–25 tok/s 320–360 tok/s (8K)
Radeon AI PRO R9700 ×4 74–77 tok/s 400–450 tok/s (8K)
Ryzen AI Max+ 395 (128GB 통합) 19–21 tok/s (코드) 87 tok/s (4K)
  • “Faster” 모드는 토큰당 expert 6개 중 5개만 쓴다(16GB 이하 GPU의 기본값).
  • 같은 프롬프트라도 GPU에 올라간 expert가 계속 바뀌어 답이 run마다 다를 수 있다.
  • 지원 하드웨어: NVIDIA RTX 20–50, AMD RX 7000/9000·R9700(HIP), Intel Arc(Linux), Apple Silicon, Strix Halo, DGX Spark.

4. 보안·네트워크

  • 텔레메트리가 없다(사용 통계·크래시 보고·계정 없음). 엔진 코드(src/ 등)에 네트워크 코드가 없다.
  • 밖으로 나가는 통신은 모델 다운로드, 사용자가 추가한 외부 모델 서비스, 업데이트 확인(서명 키 검증) 정도다. --offline 옵션이 있다.
  • 함께 들어오는 코딩 agent(DeepSeek Harness, MIT)는 따로 텔레메트리 스위치가 있다.
  • bare 서버(serve/server.py)를 키 없이 네트워크에 열면 경고만 한다. 여러 사람이 쓰는 서버에 띄울 때는 키를 반드시 걸어야 한다.

5. 의미

  • DeepSeek-V4.1-Flash급 대형 MoE를 GPU 12GB + RAM 64GB PC에서 한 자릿수 tok/s로 돌릴 수 있다는 사례다. 학습이나 대량 생성용은 아니고, 개인 로컬 코딩 agent나 데모용이다.
  • 핵심 기법인 “자주 쓰는 expert만 GPU에 캐시하고 나머지는 CPU가 동시에 계산”은 MoE 오프로딩 서빙의 일반적인 아이디어다(llama.cpp의 -ot 옵션, ktransformers와 같은 계열).