# Strata — full corpus # LLM Wiki An open-source template for building LLM-powered knowledge bases, following [Andrej Karpathy's "LLM Wiki" pattern](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f). You provide raw sources. The LLM reads them, writes structured wiki pages, cross-links everything, and maintains it over time. You never edit the wiki directly — you curate sources and ask questions. ## How It Works The system has three layers: ``` raw/ Sources you collect (articles, transcripts, notes, PDFs) wiki/ LLM-written & maintained pages (summaries, concepts, entities, syntheses) CLAUDE.md Schema that tells the LLM how to structure everything ``` Three operations drive the workflow: | Operation | Trigger | What happens | |-----------|---------|--------------| | **Ingest** | "ingest raw/my-source.txt" | LLM reads the source, creates a summary page, creates/updates concept and entity pages, adds cross-links, updates the index and log | | **Query** | Ask any question | LLM searches the wiki, synthesizes an answer with citations, optionally creates a synthesis page for novel insights | | **Lint** | "lint" or "health check" | LLM audits all pages for orphans, contradictions, missing links, incomplete sections, and low-confidence claims — fixes what it can, reports the rest | ## Quick Start 1. **Clone this repo** ```bash git clone https://github.com/YOUR_USERNAME/llm-wiki.git my-knowledge-base cd my-knowledge-base ``` 2. **Customize CLAUDE.md** for your domain - Update the Purpose section with your topic - Replace the placeholder tagging taxonomy with your own categories - Adjust confidence level descriptions if needed - Everything else (workflows, page formats, linking rules) works as-is 3. **Drop sources into `raw/`** - Text files, transcripts, articles, notes — any plain text - These are immutable once added; the LLM never modifies them 4. **Tell the LLM to ingest** ``` ingest raw/my-first-source.txt ``` The LLM will create summary pages, concept pages, entity pages, cross-links, and update the index. 5. **Ask questions** ``` What are the key differences between X and Y? ``` The LLM answers from the wiki, citing specific pages. 6. **Run health checks** ``` lint ``` The LLM audits the wiki and fixes issues. ## Directory Structure ``` . ├── CLAUDE.md # Schema — the LLM's instructions ├── raw/ # Your source documents (immutable) └── wiki/ ├── index.md # Master catalog of all pages ├── log.md # Append-only activity log ├── dashboard.md # Dataview dashboard (Obsidian) ├── analytics.md # Charts View analytics (Obsidian) ├── flashcards.md # Spaced repetition cards ├── summaries/ # One page per source document ├── concepts/ # Concept and framework pages ├── entities/ # People, tools, organizations, etc. ├── syntheses/ # Cross-cutting analyses and comparisons ├── journal/ # Research/session journal entries │ └── template.md # Journal entry template └── presentations/ # Marp slide decks ``` ## Enhancements This template includes several extras beyond the core wiki pattern: ### Dataview Dashboard (`wiki/dashboard.md`) Live queries that surface low-confidence pages, recent updates, concepts by tag, and pages with the most sources. Requires the [Dataview](https://github.com/blacksmithgu/obsidian-dataview) Obsidian plugin. ### Charts View Analytics (`wiki/analytics.md`) Visual analytics with pie charts, bar charts, and word clouds. Requires the [Charts View](https://github.com/caronchen/obsidian-chartsview-plugin) Obsidian plugin. ### Mermaid Diagrams Use Mermaid code blocks in any wiki page to create flowcharts, sequence diagrams, or concept maps. Native support in Obsidian and GitHub. ### Marp Slides (`wiki/presentations/`) Create slide decks from markdown using [Marp](https://marp.app/). Drop presentation files in this directory. ### Research Journal (`wiki/journal/`) Track your research sessions, experiments, or applied work with the included template. The LLM can reference journal entries when answering queries. ### Spaced Repetition (`wiki/flashcards.md`) Flashcards in the format used by the [Spaced Repetition](https://github.com/st3v3nmw/obsidian-spaced-repetition) Obsidian plugin. Ask the LLM to generate flashcards from any wiki page. ### MCP Server This repo works with Claude Code's MCP server capabilities. Point an MCP-compatible client at this repo and the LLM can read/write the wiki programmatically. ## Customizing for Your Domain The schema in `CLAUDE.md` is domain-agnostic. To adapt it: 1. **Purpose** — Describe your knowledge domain in one paragraph 2. **Tagging taxonomy** — Replace placeholder categories with your own (e.g., for a cooking KB: `cuisine`, `technique`, `ingredient`, `equipment`) 3. **Confidence levels** — Adjust the descriptions to match your domain's evidence standards 4. **Entity types** — Update the entity page description to match what entities mean in your domain (people, tools, companies, etc.) 5. **Journal template** — Customize `wiki/journal/template.md` for your workflow Everything else — page format, linking conventions, workflows, rules — is universal and works across domains. ## Example Domains This template works for any knowledge-intensive topic: - **Research notes** — papers, experiments, methodologies - **Book analysis** — themes, characters, author techniques - **Competitive analysis** — companies, products, market trends - **Course notes** — lectures, readings, key concepts - **Personal development** — frameworks, habits, book summaries - **Technical documentation** — APIs, architectures, design patterns - **Hobby deep-dives** — any subject you want to master ## License MIT --- title: "Strata KB — Master Index" type: index updated: 2026-11-24 strata_version: "0.2.21" sources: ["raw/github_doc-docs-readme-md.md", "raw/github_doc-readme-md.md"] --- # Strata KB — Master Index **Domain:** Strata (github.com/Niko1221/Strata, MIT): a local inference engine with a desktop app and a terminal app that runs Qwen3.8-Flash-Next and a few other models on consumer hardware and serves an OpenAI/Anthropic-compatible API on localhost. **Scope:** the public repository as its `main` branch stood when fetched on 2026-11-24 (the docs state they are for version 0.2.21; newest release v0.2.21 of 2026-11-24): the guides under `docs/`, the installers and Docker files, and the release notes. Not covered: the per-run community benchmark reports under `docs/bench-results/`, the internal working notes under `docs/history/`, translations, the engine and app source code, open issues and Discussions, and the upstream models' own documentation. **Pages:** 22 (17 concepts · 1 entity · 2 summaries · 2 syntheses), plus 26 pages in the XL edition **Sources fetched:** 2026-11-24 Start at [[entities/strata]] if you are new, then [[summaries/quickstart-walkthrough]]. Strata has three command interfaces whose flags are not interchangeable (the installed Terminal's `strata launch`, a source checkout, and raw engine commands); every page says which one a command belongs to. The app/Terminal version (0.2.x) and the engine version (0.1.x) are different numbers. ## Concepts ### Install and maintain - [[concepts/install-desktop-and-terminal]] — Installing the desktop app and the Terminal on Windows, Linux and Mac; what you need; first start. - [[concepts/source-install]] — Running from a source checkout: `setup.sh`, `START-HERE.bat`, `UPDATE.bat`. - [[concepts/docker]] — Docker images and the compose files per GPU vendor. - [[concepts/safety-and-privacy]] — What Strata downloads, network access, API keys, the security policy. - [[concepts/troubleshooting]] — Symptom, cause and fix tables from the troubleshooting guide. ### Models - [[concepts/choosing-a-model]] — Models, picking by memory, the model and hardware capability table, the release grid. - [[concepts/quants]] — Quantizations explained and the Unsloth Q4 and Q6 packs. - [[concepts/other-models]] — Qwen3.6-35B-A3B, Hy4-Flash, Inkling 2 Mini and the DeepSeek status. - [[concepts/image-input]] — Vision and image input, the image catalog, images over MCP. ### Run and configure - [[concepts/terminal-launch]] — `strata launch` and the Terminal quickstart. - [[concepts/settings]] — The settings reference. - [[concepts/memory-modes]] — Memory modes, VRAM elastic, sharing the GPU with other programs. - [[concepts/multi-gpu]] — More than one GPU and adding a second GPU. - [[concepts/how-the-engine-works]] — The engine's design in plain terms. ### Connect and integrate - [[concepts/connecting-coding-tools]] — `strata connect`, coding tools and clients, llama-swap. - [[concepts/api-reference]] — The localhost OpenAI/Anthropic-compatible API: endpoints, keys, request fields, logit bias. - [[concepts/mcp-server]] — Managing Strata from an AI assistant through its MCP server; tools from MCP servers. ## Entities - [[entities/strata]] — What the product is, who makes it, its components, platforms, version scheme and a feature map. ## Summaries - [[summaries/quickstart-walkthrough]] — The shortest path from nothing to a working chat and a connected coding tool. - [[summaries/release-digest-0-2]] — App and Terminal releases v0.2.0-beta to v0.2.21, newest first. ## Syntheses - [[syntheses/hardware-comparison]] — NVIDIA, AMD, Intel, Apple and others compared on support level, backend and limits. - [[syntheses/model-and-quant-comparison]] — Models and packs compared on size, memory, quality notes and availability. ## XL Edition (Pro) Full depth beyond this edition, in the gated XL layer (26 pages): per-vendor hardware guides for AMD Radeon (HIP), Strix Halo and integrated Radeon, Intel Arc, Apple Silicon, DGX Spark and older GPUs, plus split serving (7); engine tuning and serving references covering speed settings, batching, prompt caching, KVA, research switches and the alternative packs (6); the full Terminal command reference, telemetry, the desktop app, the management protocol, updating and packaging, and the agent and contributor rules (6); the benchmark protocol and community benchmark results by machine (2); casebooks of the 80 most-commented closed issues on performance, stability, tool calling and install (4); and the v0.1.0 to v0.1.45 release history (1). Agents without Pro access should treat those areas as "covered in the XL edition" rather than out of scope; [[syntheses/hardware-comparison]] and [[concepts/troubleshooting]] carry the summary level here. ## Statistics - **Total pages**: 22 (Standard); XL has 26 separately cataloged pages. - **Concepts**: 17 - **Entities**: 1 - **Summaries**: 2 - **Syntheses**: 2 - **Sources ingested**: 267 - **High confidence**: 0 - **Medium confidence**: 22 - **Low confidence**: 0 --- title: "API Reference (localhost OpenAI/Anthropic-compatible server)" type: concept tags: [api, endpoints, openai-compatible, anthropic-compatible, logit-bias, tool-calls, api-keys] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-details-md.md", "raw/github_doc-docs-ai-reference-md.md", "raw/github_doc-docs-test-requests-md.md", "raw/github_doc-docs-logit-bias-md.md", "raw/github_doc-docs-ai-setup-md.md"] --- # API Reference (localhost OpenAI/Anthropic-compatible server) ## Definition The Strata server listens on `http://127.0.0.1:8080` by default (`--port` in setup, or edit the run script; "the configured port and access settings can differ"). It serves OpenAI Chat Completions, Anthropic Messages and the OpenAI Responses API, plus model, health, metrics and slot endpoints. One server serves one model. This page lists the endpoints and the request fields the guides document; the full list of config keys is in [[concepts/settings]] and the upstream `docs/DETAILS.md` ("Using it" section) is the long form. ## How It Works ### Endpoints | API | Endpoint | | --- | --- | | OpenAI Chat Completions (stream and non-stream, tools) | `POST /v1/chat/completions` | | Anthropic Messages (stream and non-stream, tools) | `POST /v1/messages` | | OpenAI Responses (stream and non-stream, tools; stateless) | `POST /v1/responses` | | Model list and health | `GET /v1/models`, `GET /v1/models/{id}`, `GET /models`, `GET /health` | | Model properties | `GET /props` (also accepts `?model=`) | | What the model is doing now | `GET /status`, `GET /slots` (busy or idle, with `n_prompt_tokens`; one entry per slot with `--batch`) | | Save or restore the conversation to a file | `POST /slots/0?action=save` or `restore` | | Everything the Monitor tab shows | `GET /metrics` (JSON) | | Prometheus with vLLM's metric names | `GET /metrics` with `Accept: text/plain` or `?format=prometheus` | | Request totals in llama-server's metric names | `GET /metrics/prometheus` | | MCP servers, their state and tools | `GET /mcp` | | API request monitor | `GET /api-monitor`, `GET /api/requests` | Base URLs for clients: OpenAI Chat Completions and Responses use `http://127.0.0.1:8080/v1`; Anthropic Messages uses `http://127.0.0.1:8080` (the client adds `/v1/messages`). Use the real API key when authentication is on. ```python from openai import OpenAI client = OpenAI(base_url="http://127.0.0.1:8080/v1", api_key="none") r = client.chat.completions.create(model="strata", messages=[{"role": "user", "content": "Hello!"}]) print(r.choices[0].message.content) ``` ### Metadata and metrics - `/models` and `/v1/models` list only the loaded model: OpenAI fields (`id`, `object`, `created`, `owned_by`), the context limit (`max_model_len`, `context_length`, `max_context_length`, `meta.n_ctx`), the answer cap (`limit.output` and `meta.llamaswap.max_output_tokens`: the context less the engine's margin, lowered by a smaller `max_tokens` from the app's Chat settings) and input modalities. `/props` shows the chat template, context limit, generation defaults, model path and engine version; `n_predict: -1` means no fixed output cap. `/slots` uses llama.cpp's names (`n_ctx`, `n_prompt_tokens`); `total_slots` is the number of `--batch` slots (1 without). These endpoints need the API key when one is configured and never load, unload or restart models. - `chat_template_caps` (llama.cpp's field names) is checked by rendering small requests when the template loads; a rejected feature is `false`. `supports_tools`, `supports_tool_calls`, `supports_parallel_tool_calls`, `supports_system_role` and `supports_preserve_reasoning` are hints for clients, not a promise the model follows a request. - Prometheus: with `Accept: text/plain` the metrics use vLLM's names (for example `vllm:num_requests_running`, `vllm:kv_cache_usage_perc`, `vllm:prefix_cache_queries_total`); Strata's own facts are `strata:`-prefixed (for example `strata:live_tok_s`, `strata:gpu_util`). With an API key the scraper sends it as a bearer token. Ready-made `prometheus.yml`, `servicemonitor.yaml` and `grafana-strata.json` are in `docs/monitoring/`. ### Thinking levels The model thinks before answering (streamed as `reasoning_content`; Anthropic: `thinking` blocks). Choose per request: | API | How | | --- | --- | | OpenAI | `"reasoning_effort": "none" \| "low" \| "medium" \| "high"` (also `"reasoning": {"effort": ...}` or `"chat_template_kwargs": {"enable_thinking": false}`) | | Anthropic | `"output_config": {"effort": "low" \| "medium" \| "high"}`, `"thinking": {"type": "disabled"}`, or `"thinking": {"type": "enabled", "budget_tokens": N}` (under 2K = low, under 8K = medium, more = high; also the hard budget) | Without a setting the model uses its own default, **high** (Inkling-2-Mini: **low**). `none` answers at once. The levels are instructions the model was trained with, not a hard token limit. A request may also send `reasoning_budget_tokens` (or vLLM's `thinking_token_budget`, Qwen's `thinking_budget`, llama.cpp's `thinking_budget_tokens`); `reasoning_budget_tokens` wins. ### Streaming, tool calls and recovered output - With `"stream": true` thinking, answer and tool calls arrive as they are made; keep-alives are sent while a long prompt is read, and closing the connection stops the model. - A tool call counts only when it names a tool the request declared. Any other call (or any call in a request that declared no tools) comes back as text, with `strata_rejected_tool_calls` (up to five names, reason `undeclared`) beside it; `finish_reason` stays `stop` (`end_turn` on `/v1/messages`). The config key `undeclared_tool_calls` (`"text"` default, `"call"`) changes this. Names are never guessed (`bash` is not `shell`), but namespaced names written with `__`, `=` or `_` variants map back to a declared tool when unambiguous. - `tool_call_recovery` is on by default since 0.2.8 (off in 0.2.7 and before); it also reads a declared tool's call written in a few drifted formats. On 1,462 agent turns 98.3% read as intended with it and 92.9% without. `tool_markup_retry` (on) re-asks once in the same request when a reply ends in tool markup the server will not run; unread markup is reported as `strata_unread_tool_markup`. - Anthropic tool search on `/v1/messages`: a tool with `"defer_loading": true` is declared but not listed in the prompt, and a `tool_reference` block in a `tool_result` puts its definition in place. - JSON output: `response_format: {"type":"json_object"}` or `{"type":"json_schema", ...}` on `/v1/chat/completions`. The schema must accept only objects at its root; local `#` references work, remote ones are refused. It is schema prompting plus server validation, not grammar-constrained decoding. Malformed output returns **502** (`error.code: structured_output_failed`), an invalid schema **400**; JSON formats combined with tools or MCP are refused. `"repair_latex_escapes": true` (off by default) fixes backslashes such as `\alpha` after a strict parse fails. - Sampling: `stop`/`stop_sequences`, `temperature`, `top_p`, `top_k` (at most 64 candidates), `min_p` and `seed` are honored per request. Penalties (`presence_penalty`, `frequency_penalty`, `repetition_penalty`, `penalty_last_n`; llama.cpp's `repeat_penalty`/`repeat_last_n` too) make a request 1-11% slower because more drafts are rejected. Precedence: the request, the web page's shared Chat settings, the config's `sampling` block, then the model card. Without a block, thinking requests get temperature 1.0, top_p 0.95, top_k 20; non-thinking requests get 0.7, 0.8, 20 with presence_penalty 1.5. Greedy only when asked (`temperature: 0`). - `logprobs` (CUDA/HIP): `"logprobs": true` with `"top_logprobs": 0..20` on `/v1/chat/completions` adds `choices[0].logprobs.content[]`. On a `--parallel` server only a `max_tokens` 1 request gets them; longer replies there are a 400. ### Context and limits Context is chosen in setup (8K-262K); longer requests are refused, never cut silently. `max_tokens`, `max_completion_tokens` and `max_output_tokens` of `-1`, `0` or left out mean no cap. The config key `fit_max_tokens` (`true` by default) shortens a `max_tokens` that runs past the context; `false` returns 400. The `model` field is not matched against the loaded model; only `GET /v1/models` says what is loaded. One request at a time unless `"parallel": N` is set. Images only when set up with them ([[concepts/image-input]]). No video. ### The Responses API `POST /v1/responses` shares the chat path (thinking levels, budgets, conversation cache, key, Host and Origin checks) and is **stateless**: send the whole conversation in `input` each time. `previous_response_id`, `conversation`, `background` and the retrieve, delete and cancel endpoints are refused with an error that says so. It accepts `function`, `namespace` and `custom` tools; hosted tools (`web_search`, `file_search`, ...) are left out. `tool_choice: "none"` hides the tools, anything else lets the model choose. `max_output_tokens` includes thinking; running out ends the response `incomplete`. Thinking comes back as a `reasoning` output item with `reasoning_text` content. A `response.in_progress` event goes out every 15 s during a long prompt read. Codex setup is in [[concepts/connecting-coding-tools]]. ## Key Parameters ### Per-request logit bias (`POST /v1/chat/completions`) - Accepted on CUDA, HIP and Metal engines, also with continuous batching (each slot keeps its own bias). Nonempty biases return HTTP 400 on older engines and on the current SYCL engine rather than being ignored. - Forms: `"logit_bias": {"9419": -100}` or the llama.cpp-style pair list, a list of `[token_id, bias]` pairs (the guide's example is the pair `9419, false` inside an outer list); numeric pair values such as `42, 2.5` also work. Values must be finite numbers in `[-100, 100]`; negative discourages, positive encourages, **-100 excludes** (`false` as a pair value means the same). - Token IDs belong to the loaded model's tokenizer; leading spaces and letter case can change IDs. The guide's example (`Hello` is token 9419, `Hi` is 12675) was measured on ISTA IQ3_XXS with `temperature: 0` and `reasoning_effort: "none"`: without the bias the response was Hello, with `-100` on 9419 it was Hi. A reproduction script is `terminal/tools/logit_bias_english_example.py`. - The bias is added before repetition/frequency/presence penalties, temperature and candidate filtering; raw logits are not overwritten. Omitting the field, `null`, `{}` or `[]` clears it. It is not stored in a conversation cache. Banning a token does not ban a word: other token sequences may give the same text. - HTTP 400 for malformed entries, duplicate IDs in pair lists, IDs outside the vocabulary, out-of-range biases or banning the whole vocabulary. MTP target verification applies the bias but the draft model is not biased, so a restrictive list may reduce draft acceptance. Experimental coupled/rejection-sampling combinations and multi-GPU execution were not validated. There is no startup bias-file option. ### API keys and network access - Local only by default (`127.0.0.1`). For other devices, setup with `--host 0.0.0.0 --api-key some-long-secret` (source setup), or `"host"` and `"api_key"` in the config. A key is recommended, not required; without one the server warns that anyone who can reach the port can use the model and its tools. `--no-api-key` or `"api_key": "none"` says it is on purpose. IPv6: `--host ::` and bracketed URLs. - Several keys: `--api-key key1,key2`, `"api_key": "key1,key2"` or a list; `STRATA_API_KEY` sets one. Per-key limits: `"api_keys": {"key": {"name": "...", "max_concurrent": N, "reserved_capacity": R}}`. - CORS is off by default: `"cors_origins": ["https://chat.example.com"]` (`["*"]` only sensible with a key). It never opens `/settings`, `/unload` or the MCP tools. - Host check (DNS rebinding): without an API key only `localhost`, IP-address Hosts and the listening address (plus this PC's name when listening beyond it) are answered; others get **403**. Add names with `"allowed_hosts"` or `STRATA_ALLOWED_HOSTS` (comma-separated); setting `api_key` turns the check off. A `POST` to `/v1/*` carrying an `Origin` header is answered only for Strata's own page, localhost or allowed hosts, `trusted_origins`/`cors_origins`, browser extensions and desktop apps, and only with a JSON body; other pages and `Origin: null` get 403. - Session files (`--slot-save-path DIR`) and the API request monitor (`"api_monitor": true`, off by default, newest 100 requests kept in memory) are optional. Without the monitor the two endpoints answer 404. ## When To Use - Use `GET /health` and `GET /v1/models` to verify a launch; the AI setup guide queries both at the printed address after a launch. - Use `/props` and `chat_template_caps` when a client asks what the model supports. - Use `GET /metrics` or the Prometheus form for dashboards. ## Risks & Pitfalls - A tool call for an undeclared name is returned as text, not run. Clients that want to recover must read `strata_rejected_tool_calls`. - JSON output is validated after generation, not constrained; streaming buffers the answer until validated. - `/v1/responses` is stateless; do not rely on `previous_response_id`. - Logprobs on `--parallel` servers are limited to `max_tokens` 1. - A published speed or behavior on one GPU does not establish it on others; see [[concepts/choosing-a-model]] for the capability table. ### Test requests and hardware wanted The test-requests list (edited by maintainers; an item stays until a report answers it) asks for reports on: two NVIDIA cards of different sizes in both orders with `--layer-split auto`; three or four NVIDIA GPUs; Pascal (sm_61: Tesla P40, P100, GTX 10 series); a Linux host with 32 GB RAM or less; long soak runs on split or resident setups; AMD RX 7000 series (RDNA 3) on Linux or Windows (RX 7000 builds and their Docker image have not been run on a real card by the maintainers); Windows with an AMD card (app or Terminal, one model, one picture); and a Mac with Apple silicon on macOS 15 or newer (Mac builds have run on very few Macs; pictures on the Mac were run on one Mac mini M4 only; the signing script has not been run against Apple's real notary service, so a first-launch warning is expected). Reports follow the community benchmark guide and go in an issue or the related pull request. See the XL edition page "Standard Benchmark Protocol". ## Related Concepts - [[concepts/connecting-coding-tools]]: client configs for these endpoints - [[concepts/mcp-server]]: `GET /mcp` and the `strata_mcp` request option - [[concepts/settings]]: config keys referenced above - the XL edition page "Prompt and Conversation Caching": conversation cache and session files - [[concepts/image-input]]: pictures in requests - [[concepts/safety-and-privacy]]: keys and network exposure ## Sources - raw/github_doc-docs-details-md.md: "Using it" section (endpoints, thinking, tool calls, JSON output, sampling, network access, Responses API) - raw/github_doc-docs-ai-reference-md.md: base URLs per API, key use - raw/github_doc-docs-logit-bias-md.md: logit bias semantics, example, limits - raw/github_doc-docs-test-requests-md.md: hardware and test requests wanted - raw/github_doc-docs-ai-setup-md.md: `/health` and `/v1/models` verification --- title: "Choosing a Model" type: concept tags: [models, model-selection, memory, qwen3-8-flash-next, capabilities, release-grid] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-models-md.md", "raw/github_doc-docs-capabilities-md.md", "raw/github_doc-docs-release-grid-md.md", "raw/github_doc-tools-release-grid-models-lock-json.md", "raw/github_doc-readme-md.md", "raw/github_doc-docs-details-md.md", "raw/github_release-strata-0-2-13.md", "raw/github_doc-docs-source-install-md.md"] --- # Choosing a Model ## Definition Strata runs several model families. The models guide (`docs/MODELS.md`, documentation for version 0.2.21) covers Qwen3.8-Flash-Next and its variants, Qwen3.6-35B-A3B, Tencent Hy4-Flash and Inkling-2-Mini. Choosing a model means picking a family, a provider's pack and a size that your RAM plus VRAM can hold. This page gives the decision path for the default family, Qwen3.8-Flash-Next, the memory tables, the hardware table and the release test grid. The other pages own the details: [[concepts/quants]] (Unsloth files), the XL edition page "Alternative Packs: Gyro, NVFP4, Swift 1.5 and OrcaRouter" (Gyro, NVFP4, Swift, OrcaRouter), [[concepts/other-models]] (Qwen3.6, Hy4-Flash, Inkling 2 Mini, DeepSeek), and [[syntheses/model-and-quant-comparison]]. ## How It Works ### The shortest path (installed Terminal) 1. Find your memory in the pick-by-memory table below and take the first provider that fits. 2. Print the plan. Nothing is downloaded or changed: ```sh strata launch --plan --family qwen --model iq2_xs ``` 3. Start it with `strata launch` (guided), or run the same command without `--plan` and add `--yes --no-tui`. ### Provider order The guide's order is ISTA-DASLab, then Unsloth, then Gyro, then others, taking the first compatible pack that fits the model and your hardware. ISTA-DASLab is the default recommendation. The README says the same ("ISTA-DASLab first, then Unsloth and other providers"). Gyro saves memory and is slower. Swift 1.5, NVFP4 and OrcaRouter are other options. An explicit choice by the user always wins. The order applies within a model family (Qwen3.6 has Unsloth packs only) and, per the guide, says nothing about which provider wins a quality or speed comparison. Setup may preselect something else: a Swift or Gyro size at a low memory tier, or Unsloth on Strix Halo. Read the plan, and pass `--family` and `--model` for a particular provider. ### Pick by memory (Qwen3.8-Flash-Next, ISTA-DASLab original packs) Figures are the model's weights in RAM plus VRAM; leave room for the OS and other apps. Unified memory counts once. They are estimates, and a given context may still not fit. | Size | RAM + VRAM for the model | Speed | Quality | | --- | ---: | --- | --- | | Q2_0 | 37.6 GB | fastest | good | | IQ2_XS | 39.2 GB | fast | better | | IQ3_XXS | 47.0 GB | slower | great | | IQ3_S | 54.8 GB | slowest | best; matches the full model on the published tests | Other branches from the guide: - Less memory, coding only: the Coder (about 32 GB of RAM with a suitable GPU). - Less memory, general use: compare Unsloth, then Gyro (least memory, slower). - More memory: Unsloth's 4 to 8 bit files need 72 to 136 GB for all experts in RAM. - A smaller model: Qwen3.6-35B-A3B (32 to 52 GB of RAM) or Inkling-2-Mini (8 to 24 GB GPU / 16 to 32 GB RAM). - Large native MoE: Hy4-Flash (64 to 128 GB of RAM or unified memory, plus an Engram shard on the SSD). If RAM is short, setup can read experts from the SSD. The guide says that works and is much slower. ### Will it fit? (Qwen3.8-Flash-Next) Shard 1 loads at start: its experts go into RAM, the rest onto the graphics card. The second shard (a 29 GB lookup table) stays on the SSD. The model fits when RAM is at least the experts plus about 10 GB for the OS and other programs. | Size | Experts in shard 1 | Download (details guide) | | --- | ---: | ---: | | Q2_0 | 34 GB | 66 GB | | IQ2_XS | 35.5 GB | 68 GB | | IQ3_XXS | 43 GB | 76 GB | | IQ3_S | 50 GB | not listed there | | Coder | 23 GB | not listed there | With 64 GB of RAM every size fits (IQ3_S with little else open). With 48 GB, Q2_0 and IQ2_XS fit. The details guide adds: on 64 GB, close the browser for IQ3_XXS and keep its context at 128K or less; with 32 GB use the Coder. A bigger graphics card makes it faster and does not lower the RAM needed, except in low-RAM mode. The first start also fetches the MTP draft layer (about 6 GB, 1 GB more with pictures). **Big graphics card, little RAM.** When RAM cannot hold the experts beside the system, setup maps them from the model files and keeps in RAM only what the card does not hold. A 32 GB PC with a 24 GB GPU runs Q2_0, IQ2_XS and the Coder this way; a 32 GB PC with a 12 to 16 GB GPU runs the Coder. With a small card most experts come from the SSD and it is much slower. A source checkout can force the mode with `--low-ram on|off`; `strata launch` has no `--low-ram` flag. See [[concepts/memory-modes]]. ### The Coder ISTA-DASLab's coding version keeps 256 of each layer's 512 experts (10 still active per token), chosen on code, agent and vision data. Its authors report 91% of the full model's SWE-bench Verified score and 99% of LiveCodeBench. One size, IQ1_M (experts stored like IQ3_S); shard 1 is 29.6 GB. It is weaker outside code and in languages other than English, including Chinese and other CJK text. ```sh strata launch --family coder --model IQ1_M ``` From a source checkout the details guide gives `START-HERE.bat --setup --family coder`. ### Which model runs on which hardware The capability table (generated for app and Terminal 0.2.21, Control 0.1.68, engines 0.1.67) covers two models only. "Packaged" is the engine package names in the release; "Supported" is what the docs commit to; empty "Measured" means no published numbers, not failure. | Hardware | Packaged engine | Qwen3.8-Flash-Next | Qwen3.6-35B-A3B | | --- | --- | --- | --- | | NVIDIA on Windows | `cuda-cuda12`, `cuda-cuda13` | supported | supported | | NVIDIA on Linux | `cuda-cuda12`, `cuda-cuda13` | supported | supported | | NVIDIA DGX Spark | `cuda-cuda13` | supported: GB10 | package present, untested | | AMD on Windows | `hip-rdna2`, `hip-rdna3`, `hip-rx9070` | supported: RX 6000, 7000, 9000, Ryzen AI Max | supported | | AMD on Linux | `hip-halo`, `hip-rx6000`, `hip-rx7900`, `hip-rx9070` | supported (RX 6000 validated differently from newer cards) | supported | | Intel Arc on Linux | `sycl` | supported: Arc A-series and B-series; Linux only (Ubuntu 24.04 or newer); model prepared for the card first | does not run | | Apple silicon | `metal` | supported: M1 or newer, macOS 15 or newer | does not run | The table's header line says the DeepSeek engines on five named platforms "stay at 0.1.59"; see [[concepts/other-models]]. ### The release test grid `docs/RELEASE_GRID.md` describes how the project checks each release candidate. It exists because release 0.2.20 went out with a crash for everyone running an Unsloth or Q8_0 file on an NVIDIA card from the RTX 30 series up, plus several Inkling failures. A cell is one release, one machine, one model and the drafter on or off. Each cell installs the release as a user would (`install.sh` into a fresh test HOME, then `strata launch --yes --no-tui --model-path ...`) and checks: 1. First chat: six fixed questions at temperature 0; no empty reply, at least five right. 2. 4K and 32K prompts with a hidden sentence (32K skipped on slow boxes when over the 15-minute default step budget). 3. An agent session of about 10 turns with four tools; the prompt cache must be reused (median cached share of the previous prompt at least 50%). 4. Speed against the previous release: fail when more than 5% slower beyond the spread of the two runs. 5. A greedy fingerprint that must equal the previous release's unless the change was declared. Every Qwen and Inkling model runs with the drafter on and off (`--drafting off`); Hy4-Flash has one setting. The grid does not cover Windows machines (the runner is POSIX only), two-card cells, cards the lab does not have (Pascal, Volta, Turing, RDNA1), or the desktop app. Reading across the docs: a cell passing is evidence for that card class and model file, not a support promise; the capability table above is where support is stated. `tools/release_grid/models.lock.json` pins every grid model file by size and SHA-256 and the Hugging Face revisions (for example `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF` at `ed59f92082b1e93c0e96d60a8b11aab089b52f09`, `unsloth/Qwen3.8-Flash-Next-GGUF` at `38bb39ee97821de2c9009abb7e93950eec396e66`). It lists the Qwen packs Q2_0, IQ2_XS, IQ3_XXS, IQ3_S and UD-Q4_K_XL, the Hy4-Flash SQ-64 pack and the Inkling files. ## Key Parameters | Setting | Interface | Effect | | --- | --- | --- | | `--family qwen\|coder\|swift\|unsloth\|gyro\|nvfp4\|qwen36\|hy4-flash\|inkling-2-mini` | Terminal (`strata launch`) | Picks the provider or family. All appear in the guide's examples. | | `--model ` | Terminal | Picks the size, for example `iq2_xs`, `IQ1_M`, `UD-Q5_K_XL`, `SQ-64`. | | `--plan` | Terminal | Prints the plan only. | | `--yes --no-tui` | Terminal | Unattended start. | | `--tune quick` / `--tune thorough` | Terminal | Measures settings for the selected model; the app also offers tuning. | | `--preset`, `--restart` | Terminal | Saved preset; `--restart` when replacing a running launch. | | `strata models list`; `strata models import --plan` | Terminal | List installed models; preview what existing files would become. | | `SETUP.bat` or `./setup.sh --setup` | Source checkout only | Adds another model. The models guide names `SETUP.bat`; the source-install guide says that file went away with the 0.2.16 folder layout and `START-HERE.bat --setup` does what it did. | In the app, the Models page lists every model with its size and whether it fits; pick one and press install. The Terminal's Model step has the same list plus "Use model files I already have". Shared files are reused. Generated `run-` scripts belong to a source checkout. ## When To Use - 64 GB RAM or more, general use: IQ2_XS or IQ3_XXS, or IQ3_S if little else is open. - 48 GB: Q2_0 or IQ2_XS. - 32 GB of RAM, coding: the Coder, with a suitable GPU. - Plenty of RAM and quality first: Unsloth's larger files ([[concepts/quants]]). - Pictures: every Qwen3.8-Flash-Next version in setup's menu reads them ([[concepts/image-input]]). ## Risks & Pitfalls - RAM + VRAM figures are estimates; a larger context may not fit. - A model can show "fits" and still stream experts from disk (the Gyro section of the guide says so; the 0.2.13 release note defines the label as files without the lookup table against graphics memory plus RAM). - The speed tables in the guide are history. They compare sizes with each other, newer engines are faster on some cards, and the guide says they were not re-measured in full for the current release. Examples: on an RTX 5070 (12 GB), Ryzen 5 7600, 64 GB RAM, engine 0.1.26 (Q2_0 row: 0.1.36), short-chat decode was Q2_0 94, IQ2_XS 79, IQ3_XXS 62, IQ3_S 53, Coder 55 tokens/s; on an AMD RX 9070 XT (16 GB), Linux, engine before 0.1.40, Q2_0 was 60 tokens/s. A published result on one GPU does not establish speed on another. - Flags differ between interfaces. `--low-ram` exists only in a source checkout; `strata launch` has no such flag. - The Terminal examples use both `iq2_xs` and `IQ2_XS` casing; the guide shows both forms. ## Related Concepts - [[concepts/quants]], the XL edition page "Alternative Packs: Gyro, NVFP4, Swift 1.5 and OrcaRouter", [[concepts/other-models]] - [[concepts/memory-modes]] and the XL edition page "Speed Settings, CPU Workers and Measured Speeds" for RAM, VRAM and tuning - [[concepts/terminal-launch]] for `strata launch` - [[entities/strata]] and [[syntheses/hardware-comparison]] ## Sources - `raw/github_doc-docs-models-md.md`: the models guide: quick start, pick by memory, will-it-fit, Coder, history tables. - `raw/github_doc-docs-capabilities-md.md`: model-by-hardware capability table. - `raw/github_doc-docs-release-grid-md.md`: the release test grid. - `raw/github_doc-tools-release-grid-models-lock-json.md`: pinned model files and revisions. - `raw/github_doc-readme-md.md`: README model list and provider recommendation. - `raw/github_doc-docs-details-md.md`: "Which model?" section: downloads, RAM, 32/48/64 GB advice. - `raw/github_release-strata-0-2-13.md`: definition of the "fits" / "may run slower" label. - `raw/github_doc-docs-source-install-md.md` — which source-checkout wrappers still exist after the 0.2.16 layout --- title: "Connecting Coding Tools and Clients" type: concept tags: [strata-connect, coding-tools, claude-code, codex-cli, opencode, llama-swap, clients] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-terminal-launch-md.md", "raw/github_doc-docs-details-md.md", "raw/github_doc-docs-llama-swap-md.md", "raw/github_doc-docs-developer-integration-handoff-md.md", "raw/github_doc-docs-ai-reference-md.md", "raw/github_doc-docs-ai-setup-md.md"] --- # Connecting Coding Tools and Clients ## Definition Strata serves an OpenAI- and Anthropic-compatible API on localhost (default `http://127.0.0.1:8080`). Any client that speaks one of those APIs can use it. For the supported coding tools the installed Terminal has a helper, `strata connect`, that prints (or writes) the client's configuration with the server address, key, model name and context filled in, and can test it. This page covers that helper, the hand-written configs for Zed, Claude Code, OpenCode and Codex CLI, and running Strata behind llama-swap. Endpoint and request-field details are in [[concepts/api-reference]]. Interface note: `strata connect` belongs to the installed Terminal. The llama-swap setup needs a source checkout (`./setup.sh`), not the desktop installer. ## How It Works ### `strata connect` (installed Terminal) `strata connect` lists the adapters: OpenCode, Codex CLI, Claude Code, oh-my-pi (`omp`), pi, Hermes Agent, OpenClaw and the DeepSeek Harness (built into the app). The AI reference gives the identifier for each: | Tool | `strata connect` identifier | | --- | --- | | Claude Code | `claude-code` | | Codex CLI | `codex` | | OpenCode | `opencode` | | oh-my-pi | `omp` | | pi.dev | `pi` | | Hermes Agent | `hermes` | | OpenClaw | `openclaw` | | DeepSeek Harness (in the Strata app) | `deepseek-harness` | ```sh strata connect # list adapters strata connect opencode # print the file and environment, address/key/model/context filled in strata connect opencode --write # write it after asking; anything replaced is backed up strata connect opencode --check # send one prompt and one tool call the way that app does strata connect opencode --check --output json ``` With `--output json` the object holds the file and environment fields, `checks` (each with `name`, `ok`, `detail`, `seconds`) and `checked_server`. `ok` is true only when both checks passed. Exit code is 0 when both worked and 1 otherwise, and `error` then says which check failed or that the server could not be reached. In the `strata launch` monitor, view 7 (Connect) shows the address, the key (hidden until `k`) and the setup per app. There `c` copies a setup, `w` writes it after a backup, and `h` checks it by sending one prompt and one tool call the way that app sends them. Two columns are kept apart: **Vendor tested** (the app version its maker tested the setup with) and **This server** (Not checked, Passed or Failed for your server after `h`). ### Hand-written client settings - **Any "OpenAI-compatible" app:** base URL `http://127.0.0.1:8080/v1`, any API key (use the real key when the server has one). Anthropic-compatible clients use the server root, `http://127.0.0.1:8080`, and the client adds `/v1/messages`. - **Zed:** the llama.cpp provider reads `/props` and offers tools from `chat_template_caps`. Zed's generic OpenAI-compatible provider does not; add `"capabilities": {"tools": true, "chat_completions": true}` on that model in Zed's settings. - **Claude Code:** set `ANTHROPIC_BASE_URL=http://127.0.0.1:8080` and `ANTHROPIC_MODEL` to a Claude model name it knows (Strata ignores the name), plus any `ANTHROPIC_AUTH_TOKEN` (or your `api_key`). Claude Code's short helper calls need the config key `anthropic_thinking` set to `"on_request"`. Claude Code stamps its system prompt with a billing header that changes on every request; the server pins both stamps so the prompt (and the conversation cache) stays the same. - **OpenCode:** the details guide gives an `opencode.json` starting point (field names are OpenCode's; check its docs if your version differs). It defines a provider `strata` with `"baseURL": "http://127.0.0.1:8080/v1"`, a model entry with `limit.context`, `limit.input` and `limit.output`, reasoning capabilities, `"compatibility": {"reasoningField": "reasoning_content"}` and variants (`low`, `none`, `budget`) that send `reasoning_budget_tokens` or `reasoning_effort`. Set `limit.context` to the context chosen in setup and keep `limit.output` well under it. `strata connect opencode` writes the configuration for you. - **Codex CLI:** uses the Responses API (`POST /v1/responses`). In `~/.codex/config.toml` (Windows: `%USERPROFILE%\.codex\config.toml`): ```toml model = "strata" # any name; Strata answers with its model model_provider = "strata" model_context_window = 32768 # the context you chose in setup show_raw_agent_reasoning = true [model_providers.strata] name = "Strata (local)" base_url = "http://127.0.0.1:8080/v1" wire_api = "responses" stream_idle_timeout_ms = 600000 # a first, long prompt can take minutes to read # env_key = "STRATA_API_KEY" # only if the server has an api_key [model_providers.strata.capabilities] remote_compaction = "unsupported" # compact locally with ordinary requests ``` Run `codex` or `codex exec "..."`. Codex warns `Model metadata for ... not found` for a local model name; that is expected. On Windows, Codex's own sandbox rejected shell commands until it was started with `-c 'windows.sandbox="unelevated"'` (a Codex setting, not Strata's). The opt-in server settings `codex_thread_titles` and `codex_compaction_cache` (both off by default) keep the prompt cache usable across Codex's title and compaction requests; see the XL edition page "Prompt and Conversation Caching" and [[concepts/settings]]. ### Running Strata behind llama-swap (source checkout only) [llama-swap](https://github.com/mostlygeek/llama-swap) puts several model servers behind one address, starts the one a request names and stops the others to free the GPU. 1. `./setup.sh --no-start` writes `strata-.json` in the checkout. 2. Add an entry to llama-swap's config. The start script setup writes (`run-.sh`) fixes port 8080, so call the server with llama-swap's port instead: ```yaml healthCheckTimeout: 300 # model loading takes minutes models: strata: cmd: >- sh -c 'cd /path/to/Strata && exec terminal/.venv/bin/python terminal/serve/server.py --engine strata --config strata-.json --port ${PORT}' env: ["STRATA_ALLOWED_HOSTS=my-server"] checkEndpoint: /health ttl: 1800 ``` 3. If clients reach llama-swap by host name, keep `STRATA_ALLOWED_HOSTS` set to that name. `exec` makes the Python server the process llama-swap stops (on SIGTERM the server stops its engine and GPU memory is freed). `checkEndpoint: /health` works because Strata's `/health` answers only once the model is loaded. Strata needs the card's memory to itself: put other GPU models in a llama-swap group or let swapping unload them. llama-swap forwards `/upstream//...` unchanged, so `curl http://my-server:8040/upstream/strata/health` and `.../v1/status` reach Strata's own pages (and also load the model without a chat request). ## Key Parameters ### `strata connect` flags | Flag | What it does | | --- | --- | | `--url URL`, `--key KEY`, `--key-env NAME` | Server address and key. Default: the running launch, else `http://127.0.0.1:8080`. | | `--model NAME`, `--context SIZE` | Model name the server reports and the context it started with. Default: the running launch's, else 32k. | | `--preset NAME` | Take address, key and model from a saved preset. | | `--yes`, `--show-key` | Do not ask before `--write`; print the real key instead of a masked one. | | `--write`, `--check`, `--output json` | Write config (with backup); run the two checks; JSON output. | ### Known per-client limits (printed by `strata connect`) Each configuration was tested against a Strata server at 32K context. The guide gives these examples: Claude Code needs `CLAUDE_CODE_MAX_CONTEXT_TOKENS`; OpenCode needs `limit.input`; Hermes refuses windows under 64K unless set up as the config does; OpenClaw needs Node 24.16 or newer. ### Thinking effort from Anthropic-API clients Claude Code and the Claude Agent SDK send `"output_config": {"effort": "high"}` with every request unless told otherwise, so Strata thinks at its highest level. Set `CLAUDE_CODE_EFFORT_LEVEL=medium` (or `low`) in the client's environment to change it. In one real coding task on a Strata 0.1.39 setup (one run per level, not a general result; the guide does not name the GPU or model for this table) time to a correct result was 6.5 min at `medium`, 9.7 min at `high` and 10.1 min at `low` (more trial-and-fix steps). ### llama-swap host check A client that reaches the proxy by name gets `403 Host 'my-server:8040' is not allowed (DNS rebinding protection)`. Requests by IP address and to `localhost` always pass, so a local test can work while the same setup fails from another machine. Any one of these fixes it: `STRATA_ALLOWED_HOSTS=my-server` in the entry's `env` (comma-separated names; ports ignored); `"allowed_hosts": ["my-server"]` in `strata-.json`; or an `"api_key"` in the config, which turns the host check off (every client must then send the key). ## When To Use - Use `strata connect --check --output json` after any change to the server or the tool: it exercises a prompt and a tool call. The AI guides say printed configuration or an older vendor test is not a successful check of the current server. - Use the hand-written settings above for a client `strata connect` does not list (any app that speaks either API). - Use llama-swap only if you already run it and have a source checkout; the desktop installer does not support it. ## Risks & Pitfalls - Context mismatch: configs are written for the context the server started with (default 32k when no running launch is found). Set the client's context limit to the context you chose. - Two interfaces: `--gpu` and `--vision on|off|gpu|cpu` are `strata launch` flags; source setup spells them `--gpus` and `--vision yes|no`. Do not mix them (see [[concepts/terminal-launch]]). - For `strata connect`, `--yes` skips the question before `--write`. (Separately, `strata launch --yes` asks no questions and never restarts a running model.) - Without an API key, a server reachable beyond this computer warns that anyone who can reach the port can use the model and its tools; see [[concepts/safety-and-privacy]]. - Llama-swap measurements in the guide (model load 80 s, 105 s while another download used the disk; engine gone and V100 memory freed within 2 s after stop) are from Tesla V100, Coder IQ1_M, Strata 0.1.39, model files on a SATA SSD, and are historical. ### What this page leaves out: the integration handoff The developer integration handoff (dated 11 October 2026, before Strata 0.2.0) is marked a historical record and is not kept up to date. It is an execution brief for joining the engine, desktop UI, serving CLI, monitor TUI and coding harness, and proposes a command grammar (`strata profile ...`, `strata runtime ...`, `strata connection ...`, `strata ops ...`, `strata bench ...`) that it labels "target, not all implemented", with a list of what was implemented in a source run at that date. It describes six monitor views, whereas the current `strata launch` monitor has seven. For current behaviour use the guides; the wire contract it points to is described in the XL edition page "Management Protocol (Owner-Local Bridge, Version 1)". ## Related Concepts - [[concepts/api-reference]]: endpoints, keys and request fields the clients use - [[concepts/terminal-launch]]: `strata launch` flags, access modes and the monitor - [[concepts/mcp-server]]: the other direction, an assistant managing Strata - the XL edition page "The Desktop App (Host, Agent Bridge, Repository Layout)": the built-in DeepSeek Harness coding assistant - [[concepts/safety-and-privacy]]: API keys and network access ## Sources - raw/github_doc-docs-terminal-launch-md.md: `strata connect` flags, JSON output, per-client limits, monitor Connect view - raw/github_doc-docs-details-md.md: Connecting apps (Zed, Claude Code, OpenCode), Codex CLI config, Responses API - raw/github_doc-docs-llama-swap-md.md: llama-swap entry, host check, effort level, V100 measurements - raw/github_doc-docs-developer-integration-handoff-md.md: historical brief and its proposed grammar - raw/github_doc-docs-ai-reference-md.md: `strata connect` identifiers, base URLs - raw/github_doc-docs-ai-setup-md.md: advice to verify with `--check` --- title: "Strata in Docker" type: concept tags: [docker, compose, containers, nvidia, amd, intel, podman] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-docker-md.md", "raw/github_doc-tools-docker-dockerfile.md", "raw/github_doc-tools-docker-compose-docker-compose-nvidia-yml.md", "raw/github_doc-tools-docker-compose-docker-compose-amd-yml.md", "raw/github_doc-tools-docker-compose-docker-compose-intel-yml.md", "raw/github_doc-tools-docker-compose-env-example.md", "raw/github_doc-tools-docker-compose-mac-md.md"] --- # Strata in Docker ## Definition Strata can run in a container with a prebuilt engine. NVIDIA and AMD images can download and prepare a model on first start; Intel Arc needs prepared model files. Keep the data volume to reuse downloads and settings. Images are Linux x86-64 only. Everything inside the container uses the Terminal's `strata launch` interface, configured through environment variables. Other install routes: [[concepts/install-desktop-and-terminal]], [[concepts/source-install]]. Platform limits: - **Mac:** Docker runs Linux in a VM with no access to the Mac GPU (no Metal), and Strata has no CPU-only mode worth running. Use the Mac app or Terminal (the XL edition page "Apple Silicon Mac (Metal)"). - **Windows:** Docker Desktop (WSL 2) passes NVIDIA cards through, not Radeon or Arc cards. Use the native app for supported NVIDIA or AMD cards. Intel Arc has no native Windows engine; follow the Linux guide. ## How It Works ### Which image Images are on the GitHub Container Registry as `ghcr.io/niko1221/strata:-`, plus `ghcr.io/niko1221/strata:latest-` for the newest release of that flavor. Ready-made images are published from version 0.2.1 on. The guide's examples use version tag `0.2.20` (the guide itself is for docs version 0.2.21). Pin the version tag to update only when you decide. | Graphics card | Image tag | Needs on the computer | | --- | --- | --- | | NVIDIA RTX 20, 30, 40, 50 (and matching RTX A / Quadro) | `0.2.20-cuda13` | NVIDIA driver 580 or newer, NVIDIA Container Toolkit | | NVIDIA GTX 10 (Pascal), Tesla P100, V100 (Volta), or any NVIDIA card with driver 575 to 579 | `0.2.20-cuda12` | NVIDIA driver 575 or newer, same toolkit | | AMD RX 9000 and Radeon AI PRO R9700 (RDNA 4, gfx1200 / gfx1201) | `0.2.20-rocm-gfx120x` | `amdgpu` kernel driver (Linux 6.8+) | | AMD RX 7000 (RDNA 3, gfx1100 / gfx1101 / gfx1102) | `0.2.20-rocm-gfx110x` | `amdgpu` kernel driver | | AMD Ryzen AI Max (Strix Halo, Radeon 8060S, gfx1151) | `0.2.20-rocm-gfx1151` | `amdgpu` kernel driver | | AMD Ryzen AI 300 / 7040 / 8040 (Radeon 890M / 880M / 780M, gfx1150 / gfx1103) | `0.2.20-rocm-igpu` when published for a release, else build it | `amdgpu` kernel driver | | Intel Arc A-series and B-series (including Arc Pro B70) | `0.2.20-sycl` (build it if no image exists for a release) | `i915` or `xe` kernel driver; prepared model files | Unsure about NVIDIA: take `cuda13` when `nvidia-smi` shows driver 580 or newer and the card is an RTX; otherwise `cuda12`. A wrong pick does no harm: the container says the engine does not fit this card and stops. Sizes, measured on the 0.2.16 images (engine 0.1.62) pulled with Podman; current sizes may differ. On disk / download: `cuda13` 1.32 GB / 713 MB, `cuda12` 1.65 GB / 904 MB, `rocm-gfx120x` 2.73 GB / 778 MB, `rocm-gfx110x` 1.6 GB / 415 MB, `rocm-gfx1151` 1.48 GB / 408 MB, `sycl` 1.47 GB / 446 MB. The model comes on top at first start. Every `0.2.20` image bundles three engines (`strata`, `strata-hy4`, `strata-inkling`), so switching model families changes only `FAMILY` and `MODEL`. ### One command per card NVIDIA: ```sh docker run -d --name strata --gpus all -p 127.0.0.1:8080:8080 \ --ulimit memlock=-1:-1 --shm-size 2g --stop-timeout 120 \ -v strata-data:/data -e FAMILY=qwen -e MODEL=IQ3_XXS -e API_KEY=$(openssl rand -hex 24) \ ghcr.io/niko1221/strata:0.2.20-cuda13 ``` AMD replaces `--gpus all` with `--device /dev/kfd --device /dev/dri --group-add video --group-add $(getent group render | cut -d: -f3)` and uses an image such as `ghcr.io/niko1221/strata:0.2.20-rocm-gfx120x`. Intel Arc uses `--device /dev/dri --group-add $(getent group render | cut -d: -f3)`, `-e MODEL=IQ3_S -e MODEL_PATH=/models -v /srv/gguf/IQ3_S:/models:ro` and `ghcr.io/niko1221/strata:0.2.20-sycl`. Inkling-2-Mini: `-e FAMILY=inkling-2-mini -e MODEL=SQ-15` (also `SQ-10`, `SQ-20`, or an Unsloth GGUF size such as `UD-Q4_K_XL`). Hy4-Flash: `-e FAMILY=hy4-flash -e MODEL=SQ-64` (also `SQ-96`, `SQ-128`). Model details: [[concepts/other-models]]. The first start downloads the model; watch with `docker logs -f strata`. To use files you already have, add `-e MODEL_PATH=/models -v /your/folder:/models:ro`. What the run options do: `--ulimit memlock=-1:-1` lets the engine pin RAM; `--shm-size 2g` gives shared memory; `--stop-timeout 120` gives the model two minutes to unload (Docker's default 10 seconds is too short for a big model). Do not put a memory limit on the container: Strata plans from the whole computer's RAM and loads tens of GB. ### Docker Compose Files are in `tools/docker/compose/`: `docker-compose.nvidia.yml`, `docker-compose.amd.yml`, `docker-compose.intel.yml` and `.env.example`. ```sh cd tools/docker/compose cp .env.example .env # set FAMILY=qwen, MODEL=..., API_KEY=... docker compose -f docker-compose.nvidia.yml up -d docker compose -f docker-compose.nvidia.yml logs -f ``` The compose files default to images `ghcr.io/niko1221/strata:0.2.20-cuda13` (NVIDIA), `0.2.20-rocm-gfx120x` (AMD) and `0.2.20-sycl` (Intel), overridable with `STRATA_IMAGE` (the AMD file's comments name the gfx120X image for RX 9000 / R9700 and the gfx110X image for RX 7000). They set the GPU (NVIDIA: `deploy.resources.reservations.devices`; AMD: `/dev/kfd` and `/dev/dri` plus the `video` and `render` groups; Intel: `/dev/dri`), `ulimits.memlock`, `shm_size: 2gb`, `stop_grace_period: 2m`, the `strata-data` volume, and the port bound to `127.0.0.1`. Compose defaults: `CONTEXT` `32k`, `VISION` `off`, `TUNE` `skip`. `.env.example` variables (all optional): `STRATA_IMAGE`, `FAMILY`, `MODEL`, `MODEL_PATH`, `CONTEXT`, `PARALLEL`, `VISION`, `TUNE`, `API_KEY`, `STRATA_BIND`, `STRATA_PORT`, `RENDER_GID` (AMD / Intel only: `getent group render | cut -d: -f3`). To let other computers reach it set `STRATA_BIND=0.0.0.0` and keep a real `API_KEY`. The NVIDIA file notes `GPUS: "0,1"` for several cards, and the AMD file has a commented `security_opt: [seccomp:unconfined]` only for when the log says a ROCm call was blocked. ### Intel Arc in a container The downloader prepares NVIDIA and AMD cards only. For Arc the container uses prepared model files: the GGUF files in a mounted folder (`MODEL_PATH`), and the prepared pack and MTP layer in the data volume (`/data/Strata-data/packs/` and `/data/Strata-data/mtp/rt`, made by the Intel installer on this or another computer, see the XL edition page "Intel Arc GPUs (SYCL engine)"). Without them the container names the missing file and stops. Nothing is downloaded or prepared for Arc inside the container. Arc B-series (xe driver) stream experts from the GGUF files, so put them on a fast SSD. ### Image internals The Dockerfile builds the Terminal (bundled Python 3.12), verifies every engine package (every file's hash, and that every imported library is bundled or belongs to the OS/GPU driver), then adds a flavor-specific runtime (`cuda`, `hip` or `sycl`; the sycl flavor is Ubuntu 26.04 based). Container paths: `STRATA_COMPONENTS_DIR=/opt/strata/components`, `STRATA_INSTALL_DIR=/data/install`, `HOME=/data/home`, `PORT=8080`, `STRATA_IN_DOCKER=1`. The entrypoint uses `tini`; `docker stop` sends SIGTERM and the entrypoint runs `strata launch --stop`. The healthcheck has a 2 h start period, so "starting" is not "unhealthy" during a long first download. ## Key Parameters Settings are environment variables (`-e NAME=value` or in compose): | Variable | What it does | Default | | --- | --- | --- | | `MODEL` | model size (`IQ2_XS`, `IQ3_XXS`, `IQ3_S`, `Q2_0`, `UD-Q4_K_XL`, `SQ-10`/`SQ-15`/`SQ-20`, `SQ-64`/`SQ-96`/`SQ-128`, ...) | Strata picks for the card and says so in the log | | `FAMILY` | `qwen`, `qwen36`, `hy4-flash`, `inkling-2-mini`, `unsloth`, `gyro`, `coder`, `swift`, `nvfp4`; `qwen` = original ISTA-DASLab packs | installer recommendation; may differ by hardware | | `MODEL_PATH` | model files already on disk, as seen inside the container (a folder or one `.gguf`, `.strata`, or `.safetensors` file/folder) | download | | `ALLOW_DOWNLOAD` | `1`: download although old-layout files were left in `/data/models` | stop | | `CONTEXT` | `32k`, `64k`, `128k`, `256k` or a number | largest that fits (compose file: `32k`) | | `PARALLEL` | simultaneous requests, 1 to 8 | fitted to the card | | `VISION` | `off`, `on`, `gpu`, `cpu`; picture reader is about 0.9 GB | `off` | | `KV` | `int8`, `q4_0` (half the memory), `k8v4`, `fp16` | `int8` | | `DRAFTING` | `auto`, `mtp`, `dflash2`, `off` | `auto` | | `DRAFT_VOCAB` | `cjk`, `en`, `cyrillic`, `fr`, `latin`, `arabic` | picked from container languages, else `cjk` | | `GPU` / `GPUS` | card numbers `0` or `0,1`; empty or `all` = engine's choice | all that fit | | `GPU_ROLES` | e.g. `1=main,0=helper` (`main`, `helper`, `off`); not with `GPU`/`GPUS`; passed to `launch --gpu-roles` ([[concepts/multi-gpu]]) | none | | `TUNE` | `quick`, `thorough`, `skip`; done once and kept in the preset (`RETUNE=1` tunes again) | `skip` | | `TUNE_ALLOW_SMALL` | `1` passes `--tune-allow-small` | `0` | | `API_KEY` / `API_KEY_FILE` | key clients must send; file form for Docker secrets | made for you | | `PORT` | port inside the container | `8080` | | `PRESET` | preset name in `/data` | `docker` | | `STRATA_SET` | advanced engine settings, space separated, like `strata launch --set` | none | Route tail skip is off in the container as everywhere; `STRATA_SET="STRATA_ROUTE_TAIL_SKIP=7"` turns it on. Settings are saved as a preset in the volume. Start with no settings and the saved preset is used; start with settings and they replace the saved ones (tuning results are kept). To change one thing, recreate the container with the new variable. To preview a choice without starting: `docker run --rm IMAGE strata launch --plan --family qwen --model q2_0`; all options: `docker exec strata strata launch --help`. The volume `/data` holds `Strata-data/` (model files, prepared pack), `state/` (presets, tuning, the key), `install/` (run settings and logs), `home/`. The engine and Terminal are in the image, so updating the image never touches your files. To use a big disk, mount a folder: `-v /mnt/big/strata:/data` (writable by the container's user). ### Files you already have Mount read-only and name it, for example `-v /srv/gguf/IQ3_XXS:/models:ro -e MODEL_PATH=/models -e FAMILY=qwen -e MODEL=IQ3_XXS`. The folder holds one model's files directly (not a folder of folders); a `MODEL_PATH` that is not mounted or has no `.gguf`, `.strata` or `.safetensors` files stops the start at once and nothing downloads. Measured with the IQ3_XXS files, the prepared pack is 1.5 GB, the DFlash2 drafter 0.8 GB on disk (1.2 GB download, once), and with `VISION=on` the picture reader 0.9 GB: 3.1 GB for the volume; with `DRAFTING=mtp` the MTP layer is about 6 GB, fetched once. Links to files work if their targets are mounted and `MODEL` is set. ### The API key The server listens on every address inside the container, and Strata does not serve beyond this computer without a key, so a key is always on. Set it with `API_KEY` (16 characters or more; `openssl rand -hex 24`) or `API_KEY_FILE`; otherwise the first start makes one and keeps it in the volume. Show it: `docker exec strata strata launch --show-key --preset docker`. Publish `-p 127.0.0.1:8080:8080` to stay local; `-p 8080:8080` or `0.0.0.0` only when others should reach it, with a key you chose. Every request needs `Authorization: Bearer `; `GET /health` answers without one. Security background: [[concepts/safety-and-privacy]]. ### Connect, watch, stop, update - OpenAI-compatible apps: base URL `http://127.0.0.1:8080/v1`, your key, model name from `GET /v1/models`. Anthropic-compatible apps (Claude Code): base URL `http://127.0.0.1:8080`, same key. - `docker exec strata strata connect opencode` prints the file; add `--check` for one prompt and one tool call. It prints the address inside the container; use your published address. From a Terminal on the host: `strata connect opencode --url http://HOST:8080 --key ` ([[concepts/connecting-coding-tools]]). - `docker logs -f strata`; `docker exec -it strata strata monitor` (q leaves, server keeps running); `docker exec strata strata monitor --once`; `docker ps` shows "healthy" once loaded; `docker stop strata`; `docker start strata` (serving again in about a minute). - Update: `docker pull ghcr.io/niko1221/strata:0.2.20-cuda13` (or `:latest-cuda13`), `docker stop strata && docker rm strata`, rerun the same `docker run` with the new tag (compose: `docker compose pull && docker compose up -d`). Models, pack, preset and tuning stay. A new engine can make old tuning less useful: start once with `-e TUNE=quick -e RETUNE=1`. `strata update` inside the container is not the way to update: the engine is part of the image (the XL edition page "Updating and Packaging"). ## When To Use - Linux server or workstation where you want a repeatable setup, a persistent volume and an always-on API. - Not on a Mac (no Metal), and not for Radeon or Arc cards on Windows. - Build it yourself when there is no registry access, no published image for a flavor, or you changed Strata: `tools/docker/build.sh --flavor cuda --engine ~/components/engine/ --tag strata:0.2.20-cuda13` (flavors `cuda`, `hip`, `sycl`); from source `docker build -t strata:src --build-arg STRATA_COMMIT=$(git rev-parse HEAD) -f tools/docker/Dockerfile.src .` (compiles CUDA 13 engines; `.git` is not copied, so `STRATA_COMMIT` is required). For GTX 10, P100 or V100 a CUDA 12 build is described in the guide. ## Risks & Pitfalls - Wrong image or invisible card: "The engine in this image does not match this computer's graphics card", or the container stops at start (exit code 3 when no card reaches it). - NVIDIA `could not select device driver ""` (the error continues with the gpu capability) or `unknown or invalid runtime name: nvidia`: the toolkit is missing. Fix: `sudo apt install nvidia-container-toolkit`, `sudo nvidia-ctk runtime configure --runtime=docker`, `sudo systemctl restart docker`, then `docker run --rm --gpus all ubuntu nvidia-smi`. If Strata says the driver is too old, you picked `cuda13` with a driver below 580. - AMD `Permission denied` on `/dev/kfd`: add the two devices and the groups (use the render group's number, not the name); on SELinux add `--security-opt label=disable`. - Intel no device: pass `--device /dev/dri` and the render group number; the host needs `i915` or `xe`. - SELinux permission denied on a mount: add `:z` or `:Z` (named volume needs nothing). - Killed or swapping: do not set a container memory limit; pick a smaller `MODEL`. - `docker stop` slow or exit 137: use `--stop-timeout 120` (compose `stop_grace_period: 2m`). - Port in use: `-p 127.0.0.1:9000:8080`. - Older volumes: the 0.1.x image variables map to the new ones (`GGUF_DIR` to `MODEL_PATH`; `LOW_RAM`, `RESIDENT_BUDGET_GIB`, `KV_STREAMING`, `LAYER_SPLIT`, `CONFIG`, `REINSTALL` are ignored with a warning). If model files remain in `/data/models` and `MODEL_PATH` is unset, start stops to avoid a tens-of-GB re-download; name the folder or set `ALLOW_DOWNLOAD=1`. - Podman (rootless Ubuntu 24.04, Podman 4.9.3, Tesla P100, `0.2.16-cuda12`): CDI may be unreadable with a newer `nvidia-ctk` (`unresolvable CDI devices nvidia.com/gpu=all`); the guide gives a manual device/library mount. A load can be killed by `systemd-oomd` (exit 137, `OOMKilled` false). From 0.2.17 the container frees that memory itself; `STRATA_OOMD_ROOM=0` turns it off. `--cgroups=disabled` is not a way out. - Images run as root inside the container; do not mount folders you do not want it to read. - Limits: Linux x86-64 hosts only; Radeon 780M (gfx1103) is experimental with its own engine package, not in the gfx110x image. - A published result on one card does not establish support on others. The guide's history table records checks on specific cards (for example, 2026-11-23 `0.2.20-cuda13` on 2x RTX A4000 and `0.2.20-rocm-gfx120x` on Radeon AI PRO R9700 passed; `rocm-gfx110x` and `rocm-gfx1151` were not run on a card in the 2026-10-19 run). ## Related Concepts - [[concepts/install-desktop-and-terminal]] - non-container install - [[concepts/source-install]] - source builds - the XL edition page "Intel Arc GPUs (SYCL engine)" - Arc model preparation - [[concepts/multi-gpu]] - `GPUS` and `GPU_ROLES` - [[concepts/connecting-coding-tools]] - `strata connect` - [[concepts/safety-and-privacy]] - API key and network exposure ## Sources - raw/github_doc-docs-docker-md.md - image table, commands, variables, troubleshooting, build steps - raw/github_doc-tools-docker-dockerfile.md - image structure, paths, healthcheck, stop behavior - raw/github_doc-tools-docker-compose-docker-compose-nvidia-yml.md - NVIDIA compose defaults - raw/github_doc-tools-docker-compose-docker-compose-amd-yml.md - AMD compose defaults - raw/github_doc-tools-docker-compose-docker-compose-intel-yml.md - Intel compose defaults - raw/github_doc-tools-docker-compose-env-example.md - `.env` variables - raw/github_doc-tools-docker-compose-mac-md.md - why Docker does not work on Mac --- title: "How the Strata Engine Works" type: concept tags: [engine, architecture, expert-cache, speculative-decoding, memory-tiers, licenses] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-how-it-works-md.md", "raw/github_doc-docs-details-md.md"] --- # How the Strata Engine Works ## Definition Strata makes a model that normally runs on servers with hundreds of gigabytes of graphics memory run on a PC whose graphics card has 12-24 GB. The "How does Strata work?" guide describes the idea as sharing the work across the whole PC: the things used all the time stay on the GPU (the "counter"), the rest waits in RAM and on the SSD (the "pantry"). This page describes the design of the Qwen3.8-Flash-Next engine path as the docs state it. The how-it-works guide says this works the same on NVIDIA (CUDA) and AMD (HIP) cards: the same engine, compiled for each. The media kit adds that the illustrations show "the documented Flash-Next engine path, not proof that every model uses the same path" (see [[entities/strata]]). ## How It Works ### Who does what The model is a team of 24,576 small specialists ("experts"), and each generated token needs only 10 of them, so not all must be on the graphics card at once. | Tier | What it holds | Notes | | --- | --- | --- | | GPU (VRAM) | Attention and DeltaNet mixers, the gated-residual weights, routers, shared experts, output head, the MTP draft layer, the KV cache, and an **expert cache** | The expert cache fills the rest of VRAM with the most-used experts and adapts to the conversation while you chat. From 64K context only the most-read part of the KV cache stays on the GPU; the rest streams from RAM. | | RAM | All 24,576 experts, pinned | The CPU computes the experts that are not on the GPU in place, at the same time as the GPU works on the cached ones (AVX-512 and AVX2 kernels; ggml's kernels for the i-quants). | | SSD | The 28.8 GB n-gram table | A few rows per token. | - More VRAM matters more than a faster GPU: every extra GB holds about 700 more experts, and every expert on the GPU is one the CPU does not have to compute. - On a PC with little RAM and a big card, the low-RAM mode keeps in RAM only what the GPU does not hold. The options (`--mmap-experts`, `--resident-experts`, `--resident-budget-gib N`) are on [[concepts/memory-modes]]. - The DETAILS reference says the n-gram table is read unbuffered past the OS cache (`--ple-io direct`) and that the engine reads the table in the format the GGUF has it: IQ4_NL (the default table), Q4_0, Q5_0, Q5_1, Q8_0, FP8 (E4M3 with a scale) or BF16. Setup does not offer another table. The short how-it-works guide instead says the rows are read "through the OS cache". The two statements differ; the reference is the more specific one and is the one that names the flag. ### Guess, then check (speculative decoding) A small helper built into the model guesses the next few tokens, and the big model checks all the guesses in one pass, keeping the ones it agrees with and writing the next token itself. The how-it-works guide says the helper only guesses, the big model decides every token, so the answer quality is the same, 1.6-1.8x sooner. Technical form, as the sources give it: - The model's own MTP layer drafts up to 3 tokens; one pass over all 48 layers checks them, 2.4-3.2 tokens per pass on average. - When the reply repeats the context (code edits, quoted text), **prompt lookup** drafts up to 5 tokens from the earlier copy, but only where its measured acceptance and cost say it pays: code edits 6-11% faster, other text unchanged. The drafts are checked like the MTP's, so the output is the same. - Setup's default is `--spec 4 --spec-min-p 0.5` (draft depth and confidence), and `--mtp` uses the draft layer. These are engine/server flags (the `"args"` list of `strata-.json`); the draft-layer options are in the DETAILS reference "Draft layer" section. ### Reading long texts Prompts are read in chunks of up to 8,192 tokens (`--prefill auto`; 32,768 is opt-in), which is why a long document or code base is read at over 1,000 tokens per second. The experts of the next layer stream to the GPU over PCIe while the current layer's attention runs. The streamed ring is sized in bytes for the pack, and `--prefill auto` picks the largest chunk that keeps that ring full; `STRATA_RING_BYTES=0` restores the earlier ring, loan and chunk choice. After the first message Strata keeps the conversation and reads only what is new, so follow-ups start in seconds (cache mechanisms are on the XL edition page "Prompt and Conversation Caching"). ## Key Parameters | Item | Value in the sources | | --- | --- | | Experts in the model | 24,576; 10 used per token | | Layers checked per verify pass | 48 | | MTP draft length | up to 3 tokens (2.4-3.2 tokens per pass on average) | | Prompt-lookup draft length | up to 5 tokens, only where it pays | | Prompt chunk | up to 8,192 tokens with `--prefill auto`; 32,768 opt-in | | Experts per extra GB of VRAM | about 700 | | n-gram table on SSD | 28.8 GB | | Setup default draft settings | `--spec 4 --spec-min-p 0.5` | ## When To Use Read this page to explain why a given hardware change helps: more VRAM raises the number of cached experts, and RAM running below its rated speed slows the CPU half (see [[concepts/troubleshooting]]). For the settings that act on each tier see [[concepts/memory-modes]] (where experts live) and the XL edition page "Speed Settings, CPU Workers and Measured Speeds" (switches and CPU workers). ## Risks & Pitfalls - The design description is for the Flash-Next engine path. The media kit warns that the illustrations are not proof that every model uses the same path. - The 1.6-1.8x figure and the 2.4-3.2 tokens per pass are the guide's general statements; they are not tied to one machine in the how-it-works guide. For measured speeds with machine, model and version, see the XL edition page "Speed Settings, CPU Workers and Measured Speeds". - Output speed depends on the text: speculative decoding runs faster when more drafted tokens are accepted, so a different answer to the same prompt moves it by several percent (DETAILS). - The guide says the paper (`docs/paper/Strata-Paper.pdf`) has the whole story, bottlenecks and what comes next; this page does not reproduce it. ## Related Concepts - [[concepts/memory-modes]], the XL edition page "Speed Settings, CPU Workers and Measured Speeds", the XL edition page "Prompt and Conversation Caching", the XL edition page "Batching and Multi-User Serving", the XL edition page "Experimental Engine Internals and Research Switches" - [[entities/strata]] for the product, versions and platforms. ### Credits and licenses Strata itself is MIT. The model files are not part of the repository; each model's own license applies to its files. - Model: Qwen3.8-Flash-Next by the Qwen team; compressed versions by ISTA-DASLab (the Coder variant: Apache-2.0 per its card, supported in Strata through @pjgmobile's PR #54); Swift 1.5 by UkisAI; the experimental Unsloth UD-Q4_K_XL (its support follows eddoursul/Strata). - llama.cpp / ggml (MIT): the i-quant formats, GPU dot products and dequantizers transcribed in `engine/src/kernels/cuda/iq_kernels.cu`, the CPU backend linked for the i-quant experts, and `gguf-py` used by the tools; license at `engine/third_party/ggml/LICENSE`. - Ideas from Splash, ninfer and HyperQwen. - The DFlash2 drafter's Q4_0 selector (174 MiB less graphics memory, same drafts and same text) is nazeshinjite's idea (Apache-2.0); Strata converts the checked pack on your computer with `terminal/tools/dflash2_pack.py --convert-selector`. Strata's tuned DFlash2 drafter in `data/dflash2-tuned/` (Apache-2.0, modified by Strata) is a fine-tuned copy of incoai's Qwen3.8-Flash-Next-DFlash2 weights. - The web app's font Outfit (SIL Open Font License 1.1, `terminal/serve/web/fonts/OFL.txt`); KaTeX (MIT, vendored in `terminal/serve/web/vendor/katex`). - The experimental speed projection's vector (`data/experimental-speed-projection/`): Qwen Community License 1.0, made from the model's activations (see the XL edition page "Speed Settings, CPU Workers and Measured Speeds"). - The AMD (HIP) backend names its contributors and validation machines in the AMD HIP guide (the XL edition page "AMD Radeon on the HIP Backend"). The DETAILS credits section also lists many contributors for the chat page and Monitor tab; this page leaves that list out. ## Sources - raw/github_doc-docs-how-it-works-md.md: the plain-terms and technical description, speculation, long-text reading, credits and license summary. - raw/github_doc-docs-details-md.md: the "How it works" memory-tier list (n-gram table formats, prompt chunks, ring) and the "Credits and licenses" section. --- title: "Image Input (Vision), MCP Images and Image Generation" type: concept tags: [vision, images, mmproj, mcp, image-generation, qwen-image] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-details-md.md", "raw/github_doc-docs-models-md.md", "raw/github_doc-docs-images-md.md", "raw/github_doc-docs-mcp-images-md.md", "raw/github_doc-app-host-server-image-catalog-json.md", "raw/github_issue-unsloth-ud-q4-k-xl-no-vision.md", "raw/github_doc-docs-qwen36-md.md", "raw/github_doc-docs-quants-md.md", "raw/github_doc-tools-release-grid-models-lock-json.md", "raw/github_doc-docs-release-grid-md.md", "raw/github_doc-docs-source-install-md.md"] --- # Image Input (Vision), MCP Images and Image Generation ## Definition "Images" means three separate things in the docs, and the file named `docs/IMAGES.md` is not the one most users want. 1. **Image input (vision):** the model reads pictures you send in chat. On by default wherever a model can read them. This page's main subject. 2. **MCP image results:** pictures returned by tools from MCP servers, shown in the web chat (`docs/MCP_IMAGES.md`). 3. **Image generation:** an optional `POST /v1/images/generations` endpoint backed by Qwen-Image-2.1-Turbo (`docs/IMAGES.md`). Off unless you ask for it, source checkout only, and separate from reading pictures. Related pages: [[concepts/choosing-a-model]], [[concepts/mcp-server]] (tools from MCP servers), [[concepts/api-reference]], [[concepts/settings]]. ## How It Works ### Image input Qwen3.8-Flash-Next has a vision encoder, `mmproj-Qwen3.8-Flash-Next-BF16.gguf` (0.9 GB). Qwen3.6-35B-A3B has its own `mmproj-F16.gguf` (0.9 GB; [[concepts/other-models]]). Hy4-Flash uses `Hy4-Flash-Vision.strata` (0.93 GB) and Inkling-2-Mini `Inkling-2-Mini-Vision.strata` (0.64 GB; the pinned file is 636,526,592 bytes; the lock file also pins a 641,805,760-byte `mmproj-BF16.gguf` from Unsloth's Inkling repository). Every Qwen3.8-Flash-Next version in setup's menu reads pictures, including Unsloth, Gyro, NVFP4 and Swift (Swift has its own vision encoder). Setup downloads the encoder and puts a small helper, `strata-vision` (Strata's own picture reader), beside the engine. The reader choice follows one rule in the app, `strata launch` and setup: | Graphics memory | Default reader | Cost | | --- | --- | --- | | Under 24 GB (NVIDIA and AMD) | CPU reader | No VRAM, so the experts keep their room. About 3 s for a 300-token picture on 8 cores; more tokens take longer in proportion. | | 24 GB or more | The card's reader. On NVIDIA with one GPU it starts with the first picture and stops after 120 s without one | 0.1 to 0.5 s per picture (up to 1,024 image tokens) once running; 1.2 to 1.4 s more for the first picture after a stop. About 1.3 GB of VRAM only while pictures are read; with no room it falls back to the CPU. On AMD, Intel and Mac the reader stays on the card. | | Mac | The GPU (Metal) | Whatever its memory. | On an NVIDIA card under 24 GB the CPU encoder is the default because the GPU encoder takes about 850 expert slots of a 16 GB card's about 4,500 (about 5% of decode). The models guide gives the GPU-reader figure as about 1 to 1.4 GB of VRAM and the CPU case as a few seconds per picture; the details guide gives 1.3 GB. Treat these as approximate. A picture becomes up to 1,024 tokens of the context (a 640x480 photo: 300). The same picture sent again, as chat apps do on every turn, is encoded once. **Switches.** | Flag | Interface | Effect | | --- | --- | --- | | `--vision off` / `--vision on` | Terminal (`strata launch`) | no pictures / pictures (`on` is needed for an Intel Battlemage card) | | `--vision cpu` / `--vision gpu` | Terminal | choose the reader | | `--vision no`, `--vision yes\|no\|gpu\|cpu`, `--vision-tokens N` | source setup | same choices; the details guide's `--vision no` and the Qwen3.6 guide's `yes\|no` forms are the source-checkout spelling | | "No" in the app and in `strata launch` | app / Terminal | turns pictures off | **Per-platform notes (models guide).** AMD: `strata-vision-hip` is the card's reader; if it cannot start, the server uses the CPU reader and prints one line (the XL edition page "AMD Radeon on the HIP Backend"). Mac: pictures run on the GPU (the XL edition page "Apple Silicon Mac (Metal)"). Intel Arc: a card with 24 GB or more keeps the CPU reader unless you pass `--vision gpu`; a Battlemage card (B580, B70) has pictures off until you pass `--vision on` (the XL edition page "Intel Arc GPUs (SYCL engine)"). The details guide still says "the Intel Arc engine has none yet" for a picture reader; the models guide describes Arc readers, so treat the models guide as current. ### Vision settings (the `"vision"` section of `strata-.json`) | Setting | Effect | | --- | --- | | `--vision-tokens N` at setup, or `"max_tokens"` | Most tokens a picture becomes. More keeps detail (small text, charts), takes longer, CPU most of all. | | `"min_tokens": N` | Scales a small picture up to at least N tokens. Qwen-VL grounding tasks want at least 1,024; a larger minimum changes answers and costs encode time. | | `"mmproj"` | Points to another mmproj of this model, for example a Q8_0 one (590 MiB against 865 MiB, about 280 MiB less encoder RAM). Recommended for `--vision cpu`; embedding cosine against BF16 is 0.997 to 0.999. | | `"cuda_device": N` | Runs the encoder on a spare card (numbered like `nvidia-smi`); also lower `--vram-reserve-mib` in `"args"` to 700. Needs RTX 20/30/40/50. | | `"env": {"NAME": "value"}` | Environment variables for the encoder only. AMD gfx1030 with the encoder on an engine card: `{"GPU_MAX_HW_QUEUES": "1"}`. | | `"elastic": false` | Keeps the GPU encoder on the card from the start. `"elastic": true` asks for on-demand start on any card; `"elastic_idle_s"` default 120. With `"vram_elastic": true` the expert cache gives the room (`"elastic_mib"`), which turns `--kv-grow` off. | ### Sending a picture Terminal chat: type `/image `, press Enter, then your question. OpenAI API: an `image_url` part (a `data:` URL, an `http(s)://` URL or a local file path). Anthropic API: an `image` block with a `base64` (or `url`) source. JPEG, PNG, BMP, GIF, WebP, TIFF and AVIF work (the last ones are converted to PNG first). Chat apps with image upload work the same way. A minimal Python call with the OpenAI client uses `base_url="http://127.0.0.1:8080/v1"`, `api_key="none"`, `model="strata"` and a message whose content has an `image_url` part plus a `text` part. The encoder turns the picture into rows the width of the model's word embeddings; Strata places them at the prompt's `<|image_pad|>` tokens with 2-D positions (interleaved M-RoPE). The details guide says answers match llama.cpp's multimodal implementation token for token on its test images. ### MCP image results in the web chat On by default when the loaded model can read pictures, off when it cannot. Turn off with `"mcp": {"image_results": false}` in the run configuration (a JSON boolean; strings and numbers are rejected). When off, the model gets the tool's text only. - Images are cached by SHA-256 next to the run configuration in `.tool-media/`; the web chat gets small same-origin references. PNG, JPEG and WebP are supported; SVG and arbitrary file/resource URIs are not rendered. At most four images per call, each at most 24 million base64 characters (about 18 MB decoded). - `GET /tool-media/.` uses the server's API authentication and serves only cached raster files. Later browser turns send `strata-tool-media:` references. If cache files are removed, older references become an image-omitted text note. - With a vision encoder, tool images enter the normal picture path; without one, images stay visible to the user and the model gets text only. "This adds image transport, not a vision model." - Search and image generation come from your configured MCP servers; Strata bundles no paid search provider or ComfyUI. A global disk-retention policy "is not implemented yet". ### Image generation (separate feature) Source checkout and build tools required; not part of a normal app install. Model: Qwen-Image-2.1-Turbo (8 steps, CFG 1) in Unsloth's GGUF quants, run by stable-diffusion.cpp (`sd-cli`) which setup compiles. Under the Qwen Research License, not Apache 2.0. ```sh ./setup.sh --setup --images qwen-image # Linux (source checkout) START-HERE.bat --setup --images qwen-image # Windows (source checkout) ``` Setup downloads three files into `models/qwen-image-2.1-turbo/` (denoiser chosen by GPU memory: Q4_K_M up to 8 GB, Q6_K up to 12 GB, Q8_0 above, 4.2 / 6.3 / 7.6 GB; text encoder `Qwen3-VL-8B-Instruct-UD-Q4_K_XL.gguf` 5.1 GB; VAE 0.7 GB). Options: `--image-quant Q4_K_M|Q6_K|Q8_0`, `--image-backend cuda|hip|vulkan|cpu`, `--image-gpu-policy auto|keep|shrink|unload`, `--images no`. Request fields: `prompt` (required), `size` (`WIDTHxHEIGHT`, multiples of 32 from 256 to 2048, default `1024x1024`), `n` (1 to 4), `response_format` (`b64_json` default or `url`), `seed`, `steps` (8), `background` (`auto`, `opaque`, `transparent`). One job runs at a time: a chat request waits for an image and the reverse; `images.gpu_policy` decides what the text model does (`auto` default). The app host's `image-catalog.json` (repo `unsloth/Qwen-Image-2.1-Turbo-GGUF`, revision `5d1f9f759ea877ae556cda88dbec958b62ad3809`, checked 2026-10-12) lists four variants with sizes and SHA-256: Q4 (`Q4_K_M`, 4,199,565,120 bytes), Q5 (`Q5_K_M`, 5,390,223,168), Q6 (`Q6_K`, 6,271,551,296) and Q8 (`Q8_0`, 7,640,860,480). The setup guide mentions only Q4_K_M, Q6_K and Q8_0; the catalog also has Q5_K_M. Measured (Q8_0, 8 steps, one `sd-cli` process per image with loading; Strata version not recorded): RTX A4000 16 GB CUDA 27 s at 1024x1024 and 8.8 s at 512x512; Radeon 780M iGPU HIP 131 s and 29 s; Vulkan 179 s and 43 s. Vulkan is setup's default on the 780M. ## Key Parameters - Defaults: pictures on; CPU reader under 24 GB of graphics memory; GPU reader from 24 GB; max 1,024 image tokens (CPU default 300); `elastic_idle_s` 120. - Health check from the issue thread (era 0.1.x): `GET /health` shows `"images": true`; the window prints `loading the vision encoder ...`. - MCP: `"mcp": {"image_results": false}`; cache folder `.tool-media/`. - Image generation: `images.gpu_policy` (`auto`, `keep`, `shrink`, `unload`); `"reload": "eager"` or default `lazy` for `unload`. ## When To Use - To send pictures to a chat model: do nothing special; check `--vision` only if pictures are off (Intel Battlemage) or you want the CPU or GPU reader. - To save VRAM for experts on a 12 or 16 GB card: leave the default CPU reader; use `"mmproj"` Q8_0 to cut encoder RAM. - For a spare GPU encoder: `"cuda_device"`. - Generated images: only if you run from a source checkout and accept the Qwen Research License terms. ## Risks & Pitfalls - **Historical issue 967** ("Unsloth ud-q4_k_xl - no vision?", closed as completed on 2026-10-07): a reporter found no vision option in setup for UD-Q4_K_XL (RTX 4090 24 GB, about 47 tps output) and added a `"vision"` block by hand (`exe`, `mmproj`, `model`, `gpu`, `max_tokens`). A reply said the model is text-only without the mmproj and `strata-vision`, that the GGUFs are text-only on their own, and that UD-Q4_K_XL was "marked experimental" and not wired. A later comment said the plan was to allow `--vision` for it with a warning that it is untested, after one smoke test; it ends "0.1.41." The thread, as far as it was reviewed (the opening post and first six comments, of 10 comments in all), does not show the final resolution. The reporter's and commenters' statements are theirs. The current guides say pictures are on by default and every setup-menu version reads them, so read this thread as 0.1.x history. - Statement drift: the quants page says setup turns pictures on for Unsloth files on NVIDIA of 16 GB or more and on Linux AMD (CPU encoder); the models guide says wherever a model can read them. The guide is current. - GPU encoder reservation: a start with no room is read on the CPU; the encoder takes expert slots on small cards. - AMD gfx1030 with the encoder on an engine card: without `GPU_MAX_HW_QUEUES=1` in the encoder's env the kernel logs `Runlist is getting oversubscribed`. - MCP images need the same vision encoder; without it the model never sees them. The MCP image tests in the docs "do not establish visual understanding or generation quality". - The release grid's vision case needs a server started with `--vision on` and is skipped without a picture reader. ## Related Concepts - [[concepts/choosing-a-model]], [[concepts/other-models]], [[concepts/quants]] - [[concepts/mcp-server]], [[concepts/api-reference]] - the XL edition page "AMD Radeon on the HIP Backend", the XL edition page "Intel Arc GPUs (SYCL engine)", the XL edition page "Apple Silicon Mac (Metal)" - [[concepts/memory-modes]] (VRAM elastic) ## Sources - `raw/github_doc-docs-details-md.md`: "Images (vision)" section: reader rule, vision settings, sending a picture. - `raw/github_doc-docs-models-md.md`: Pictures section, per-platform notes, model file names. - `raw/github_doc-docs-images-md.md`: image generation guide (Qwen-Image-2.1-Turbo). - `raw/github_doc-docs-mcp-images-md.md`: MCP raster images in the web chat. - `raw/github_doc-app-host-server-image-catalog-json.md`: image generation catalog variants. - `raw/github_issue-unsloth-ud-q4-k-xl-no-vision.md`: issue 967 thread. - `raw/github_doc-docs-qwen36-md.md`: Qwen3.6 `mmproj-F16.gguf`, `--vision` forms. - `raw/github_doc-docs-quants-md.md`: Unsloth files and pictures statement. - `raw/github_doc-tools-release-grid-models-lock-json.md`: pinned Inkling vision file sizes. - `raw/github_doc-docs-release-grid-md.md`: the grid's vision case needs `--vision on`. - `raw/github_doc-docs-source-install-md.md`: `--vision yes|no` is the source-checkout spelling. --- title: "Installing the Desktop App and the Terminal" type: concept tags: [install, desktop-app, terminal, windows, linux, mac, installer] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-install-md.md", "raw/github_doc-readme-md.md", "raw/github_doc-tools-packaging-install-sh.md", "raw/github_doc-tools-packaging-install-ps1.md", "raw/github_doc-docs-ai-setup-md.md", "raw/github_doc-docs-details-md.md"] --- # Installing the Desktop App and the Terminal ## Definition Strata (docs version 0.2.21) has two released install routes. Neither needs a source checkout or a startup `.bat` file. - **Desktop app**: one installer per operating system, with a graphical chat window. - **Terminal**: a one-line installer that puts a `strata` command on the computer. You then run `strata launch`. The Terminal includes its own Python and downloads the engine for the computer's graphics card. Building from a checkout is a separate workflow: see [[concepts/source-install]]. Containers: see [[concepts/docker]]. Product overview: [[entities/strata]]. ## How It Works ### What you need (INSTALL.md hardware table) | Computer | Route | | --- | --- | | Windows 10/11 or Linux x86-64 with an NVIDIA RTX GPU | App or Terminal; the engine for the card is downloaded. Older NVIDIA cards use the CUDA 12 engine (the XL edition page "Older and Experimental GPUs (Pascal, Volta, Maxwell, sm_80, Older AMD)"). | | Windows or Linux x86-64 with a supported AMD Radeon | See the XL edition page "AMD Radeon on the HIP Backend". | | Linux x86-64 with Intel Arc | See the XL edition page "Intel Arc GPUs (SYCL engine)"; install the driver and compute runtime; model preparation has requirements. | | Apple Silicon Mac, macOS 15 or newer | See the XL edition page "Apple Silicon Mac (Metal)". Intel Macs are not supported by the Mac package. | | AMD Ryzen AI Max / Strix Halo | See the XL edition page "Strix Halo and Integrated Radeon (Ryzen AI Max, Radeon 780M)". | | NVIDIA DGX Spark (Linux ARM64) | See the XL edition page "NVIDIA DGX Spark (GB10) on Linux". Use the Terminal: there is no desktop app for ARM64 Linux. | Memory and disk needs depend on the model, quantization, context and enabled features; download size is not RAM use, and unified memory counts once ([[concepts/choosing-a-model]]). Use an SSD. The Terminal's `--plan` prints what is missing. CUDA 13 packages need NVIDIA driver 580 or newer; older NVIDIA cards use CUDA 12. Packaged GPU runtimes do not replace hardware drivers. Models and updates need an internet connection to download. ### Desktop app 1. Open the latest release on GitHub (`github.com/Niko1221/Strata/releases/latest`). 2. Download the single installer for your system (one per system, not per graphics card): - Windows: `Strata-0.2.21-windows-x64-setup.exe`. Installs for your user, no administrator rights needed. - Linux: `Strata-0.2.21-linux-x86_64.AppImage`. Make it executable, then open it. If FUSE is unavailable, run the file with `--appimage-extract-and-run`. - Mac: `Strata-0.2.21-macos-arm64.dmg`. Drag Strata into Applications, then open it. 3. Windows and Linux installers contain no engine. On first start the app shows the engine for your graphics card, its size and one **Download** button (progress, resume). If you already have the engine file, choose **I already have the file** and it installs without internet. The Mac file keeps its small Metal engine inside. 4. Choose a model and its storage folder, let it download, then chat. The `strata-engine-...` and `strata-control-...` archives on the release page are components, not installers. The same installer is used for first install and update. There is no Intel desktop installer; Intel Arc runs on Linux only, through the Terminal. The first launch can take time to prepare large model files; there is no fixed startup time. Closing the desktop app stops its managed engine. ### Terminal Linux / Mac: ```sh curl -fsSL --connect-timeout 15 --max-time 120 https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh ``` Windows PowerShell: ```powershell irm -TimeoutSec 120 https://github.com/Niko1221/Strata/releases/latest/download/install.ps1 | iex ``` On Windows open a new terminal afterwards. On Linux and Mac, if `strata` is not found, use the full path the installer printed (normally `~/.local/bin/strata`) or add that folder to PATH. Then run `strata launch` (the Terminal interface) and follow the screens to choose model, context, storage folder and access settings. The default local endpoint is `http://127.0.0.1:8080`. A browser opens only with `--open`. Full launch options: [[concepts/terminal-launch]]. For scripts and agents, plan first, then run in the background: ```sh strata launch --family qwen --model q2_0 --plan strata launch --family qwen --model q2_0 --yes --no-tui strata launch --status strata connect strata launch --stop ``` `--no-tui` leaves the server running in the background. With a model already running on different settings, add `--restart`; `--yes` alone does not restart it, and a restart interrupts current answers. Connecting tools: [[concepts/connecting-coding-tools]]. ### What the one-line installers do Both scripts do the same five steps and nothing else: 1. Identify the computer (system and processor, which pick the archive; the graphics card is named for you to read and does not decide anything). 2. Download the Terminal archive named in the release folder's `install-manifest.txt` and check its SHA-256. 3. Unpack it with no administrator rights: `${XDG_DATA_HOME:-~/.local/share}/strata/terminal/` (Linux/Mac, via `install.sh`) or `%LOCALAPPDATA%\Strata\terminal\` (Windows, via `install.ps1`). 4. Run `strata update --check --no-engine --feed ` with the just-unpacked Terminal; if that signed-feed check fails, remove what was unpacked and stop. 5. Link `strata`: `~/.local/bin/strata` on Linux/Mac; on Windows add `%LOCALAPPDATA%\Strata\terminal\current\bin` to the user PATH. Print "Installed. Run: strata launch". The engine and model are not part of the installer; `strata launch` fetches the engine for your card the first time you choose a model. Platform detail from the scripts: - `install.sh` supports Linux x86_64, Linux ARM64 and macOS Apple silicon. An Intel Mac is refused. On ARM Linux it prints a note that the engine is built and tested on the NVIDIA DGX Spark (GB10) only; the Terminal installs elsewhere but `strata launch` may find no engine. It needs `curl` or `wget`, `sha256sum` or `shasum`, and `tar`. - `install.ps1` needs PowerShell 5.1 or newer and a Windows x64 (AMD64) PC; Windows on ARM is refused. It unpacks with Windows `tar.exe` when present, otherwise `Expand-Archive`. - Network rule: a server that does not answer is given up after 15 s plus one more try; a download stops only when no data arrives for 60 s. ## Key Parameters Installer environment variables (all optional): | Variable | Used by | Meaning | | --- | --- | --- | | `STRATA_FEED` | both | Release-folder URL to use instead of the GitHub "latest" release | | `STRATA_DATA_DIR` | both | Install root. Default `~/.local/share/strata` (`install.sh`) or `%LOCALAPPDATA%\Strata` (`install.ps1`) | | `STRATA_BIN_DIR` | `install.sh` | Where the `strata` link goes; default `~/.local/bin` | | `STRATA_NO_PATH=1` | `install.ps1` | Do not change the user PATH | | `STRATA_INSTALL_TEST_TRUST=1` | both | Test feed: trust only its `test-trust.json` for the step 4 check | Default storage locations: | Item | Location | | --- | --- | | Desktop chats and host state | `~/.strata` (or `STRATA_HOME`) | | Engine components, Windows | `%LOCALAPPDATA%\Strata\components` | | Engine components, Linux / Mac | `$XDG_DATA_HOME/strata/components`, normally `~/.local/share/strata/components` | | Terminal files | `terminal` folder beside `components` (the installer prints the path) | | Models | The folder chosen in the app or launch screens; an existing library is reused | The app normally proposes `Documents/Strata/Models` for a new library. `--data-dir` (Terminal) changes where new downloads go; it does not move existing models unless `--move-data` is added. Terminal options an agent needs (installed Terminal interface; run `strata launch --help` for the full list): `--model-path PATH`, `--data-dir PATH`, `--vision on|off|gpu|cpu`, `--gpu 0,1`, `--parallel N` (1-8), `--save-preset NAME`, `--preset NAME`, `--open`, `--restart`, `--stop`, `--status`, `--context 32k`, `--output json`. Do not use the source-checkout spelling `--gpus` here. Model selection examples from the agent guide: `--family qwen --model q2_0` (ISTA-DASLab Flash-Next); `--family coder --model IQ1_M`; `--family unsloth --model UD-Q4_K_XL`; `--family gyro --model Gyro-S`; `--family qwen36 --model UD-Q4_K_XL`. The documented provider preference is ISTA-DASLab, then Unsloth, then Gyro, then others, where a compatible pack fits; the guides say executable defaults can differ, so choose explicitly when it matters. ## When To Use - Want a chat window: use the desktop app. - Want `strata launch`, coding tools, scripts or an AI agent doing the setup: use the Terminal. The agent guide (AI_SETUP) says an agent with a shell should use the Terminal and `strata launch`, not a source checkout. - Verify an install (Terminal interface): ```sh strata launch --status strata doctor --live curl -fsS http://127.0.0.1:8080/health curl -fsS http://127.0.0.1:8080/v1/models ``` On Windows PowerShell use `Invoke-RestMethod` on the same URLs. Use the configured API key for protected endpoints. Exit code 0 alone is not enough: launch can finish after downloading a model without starting it when no usable engine is available; report that as downloaded, not installed and verified. Updating from either route is summarized in the XL edition page "Updating and Packaging". ### Windows and Linux notes from the engine reference - The engine reference (DETAILS) says that on Windows a released app is installed by its installer and opened from the Start menu, the Terminal uses `strata launch`, and `START-HERE.bat` belongs to a source checkout. - Starting a server from Windows Task Scheduler: Windows throttles such contexts and the expert load crawls. On an RTX 5070 Ti, Ryzen 7 9800X3D, NVMe, ~40 GB expert load, the load ran at 0.05 GiB/s (821-841 s) under default Task Scheduler settings versus 1.42 GiB/s (about 35 s) with **Priority level: Normal** (Options tab) and **Run with highest privileges** (General tab). Both were changed at once, so each alone is not measured. - Windows large pages need "Lock pages in memory" granted to the account (`secpol.msc`), which takes effect at the next logon. `terminal\tools\windows\enable_large_pages.ps1`, run as Administrator, grants it to the current account. - Linux normal installs use the Terminal or AppImage; the `./setup.sh` notes in the engine reference are for source setup. WSL works (Ubuntu 24.04 tested) with a limit: the NVIDIA driver pins only about 1 GB there, so KV streaming (`--kv-resident`) is off and prompts are slower than on native Linux. - Quick check from the engine reference: `curl http://127.0.0.1:8080/health`; point apps at `http://127.0.0.1:8080/v1` with any API key, or run `strata connect`. ## Risks & Pitfalls - Passing source-checkout flags to the Terminal (or the reverse): `START-HERE.bat`, `SETUP.bat`, `UPDATE.bat`, `setup.sh` and generated `run-` scripts belong to the source workflow. Do not look for `START-HERE.bat` in an installed app or Terminal. - Intel Macs and Windows on ARM are refused by the installers. ARM Linux is supported only for the DGX Spark (GB10). - Piping a script to a shell runs whatever the server sends; the trust model is in [[concepts/safety-and-privacy]]. To read the script first, run only the `curl ... -o install.sh` part of the line above (leave off `&& sh install.sh`), read the file, then run `sh install.sh`. - A drive that cannot hold a junction (not NTFS): `install.ps1` falls back to a small launcher and says so. If it reports a path too long, set `$env:STRATA_DATA_DIR` to a short folder such as `C:\Strata`. - If `install.ps1` reports a program is using the same version, close it with `strata launch --stop` and rerun. - Do not install drivers or build tools as an unannounced side effect; keep the default local-only access unless the user asks to share. - Stop active models before `strata update`; very old Terminals require rerunning the installer. ## Related Concepts - [[concepts/terminal-launch]] - launch flags and `strata connect` - [[concepts/source-install]] - building from a checkout - [[concepts/docker]] - container route - the XL edition page "Updating and Packaging" - how updates and release assets work - [[concepts/safety-and-privacy]] - what installers and downloads touch - [[concepts/troubleshooting]] - AppImage/FUSE, missing components and logs - [[summaries/quickstart-walkthrough]] - shortest path to a working chat ## Sources - raw/github_doc-docs-install-md.md - hardware table, app/Terminal steps, storage paths, updating - raw/github_doc-readme-md.md - release file names, install commands, supported hardware list - raw/github_doc-tools-packaging-install-sh.md - Linux/Mac installer steps, platforms, variables - raw/github_doc-tools-packaging-install-ps1.md - Windows installer steps, variables, fallbacks - raw/github_doc-docs-ai-setup-md.md - agent procedure, launch options, verification - raw/github_doc-docs-details-md.md - Quick start, Windows (Task Scheduler, large pages) and Linux (WSL) notes --- title: "MCP: Managing Strata from an Assistant, and Tools from MCP Servers" type: concept tags: [mcp, strata-mcp, assistant-setup, mcp-tools, source-checkout, claude-code] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-mcp-server-md.md", "raw/github_doc-docs-details-md.md", "raw/github_doc-agents-md.md"] --- # MCP: Managing Strata from an Assistant, and Tools from MCP Servers ## Definition Two different MCP features exist and run in opposite directions. Do not mix them up (both source pages say so). 1. **Strata's MCP server** (`terminal/tools/strata_mcp.py`): your AI assistant (Claude Code, Claude Desktop, Cursor, VS Code, Codex and others) calls tools that install, start, stop and check Strata. 2. **Tools from MCP servers** (`terminal/serve/mcp.py`): the Strata model, in its chat page, calls tools from MCP servers you list in its config. The first is an optional **source-checkout tool**. It is not required to install the released app or Terminal; for normal agent-assisted installation use the Terminal route in the XL edition page "Agent and Contributor Rules (AGENTS.md, AI_SETUP.md, CONTRIBUTING)". The AGENTS guide notes that Strata's MCP server offers the same steps as tools. Pictures sent over MCP are covered in [[concepts/image-input]]. ## How It Works ### Strata's MCP server (assistant manages Strata) It is one Python file using only the standard library, so it works before setup has created `.venv`. It needs Python 3.10 or newer (64-bit on Windows). Transport is stdio; it speaks MCP revision 2025-06-18 and also 2025-03-26 and 2024-11-05. You need a copy of Strata (the GitHub zip or `git clone https://github.com/Niko1221/Strata`). Examples below use `C:\Users\you\Strata` (Windows) and `/home/you/Strata` (Linux; use `python3`; on Windows use `py` if `python` is not on PATH). | Client | Add it | | --- | --- | | Claude Code | `claude mcp add strata -- python C:\Users\you\Strata\terminal\tools\strata_mcp.py` (Linux: `python3 /home/you/Strata/terminal/tools/strata_mcp.py`); add `--scope user` for every project; `/mcp` shows it is connected | | Claude Desktop | Settings > Developer > Edit Config (`claude_desktop_config.json`): `{"mcpServers": {"strata": {"command": "python", "args": ["C:\\Users\\you\\Strata\\terminal\\tools\\strata_mcp.py"]}}}`; restart Claude Desktop | | Cursor | `~/.cursor/mcp.json` (every project) or `.cursor/mcp.json`; same format as Claude Desktop | | VS Code (GitHub Copilot agent mode) | `.vscode/mcp.json` or "MCP: Open User Configuration"; key is `servers`, entry has `"type": "stdio"` | | Codex CLI | `~/.codex/config.toml`: `[mcp_servers.strata]` with `command`, `args` and `tool_timeout_sec = 180` (`strata_stop` and `strata_benchmark` can take longer than 60 s) | | Any other client | command `python /tools/strata_mcp.py`, stdio | `--root ` manages a Strata folder other than the one the file is in, for example `python D:\tools\strata_mcp.py --root D:\Strata`. Every tool result is JSON with a one-line `summary`, sent as text and as MCP structured content. ## Key Parameters ### The tools (all arguments optional unless stated) | Tool | What it does | Arguments | | --- | --- | --- | | `strata_status` | Whether a model is running (model, engine version, context, busy/idle, VRAM and RAM); what is installed; install progress; this PC's hardware; the recommended model and context | `port`, `hardware` | | `strata_models` | Every family and size setup offers (qwen, swift, coder, unsloth, gyro, nvfp4, Qwen3.6-35B-A3B) with download size, RAM needed, fit and installed state | none | | `strata_remove` | Deletes an installed model's own files and nothing another installed model still uses; without `confirm: true` returns only the plan; stop the model first | `model` (required), `confirm` | | `strata_install` | Runs setup without questions in the background; without `confirm: true` returns only the plan; a second call shows progress; `cancel: true` stops it | `family`, `model`, `context` (1024 ... 2097152; usual sizes 8192 ... 524288), `vision` (no, yes, gpu, cpu), `kv` (int8, q4_0, k8v4), `gpu` or `gpus` ("0,2", "all"), `backend` (auto, cuda, hip), `low_ram` (auto, on, off, resident, mmap), `port`, `data_dir`, `gguf_dir`, `confirm`, `cancel` | | `strata_start` | Starts an installed model in the background and waits until it answers; returns "loading" if not ready after `wait_seconds` (default 50) | `model` (for example `q2_0`, `coder-iq1_m`, `swift-iq3_xxs`; default the most recently used), `port`, `gpu`, `wait_seconds` (0-600) | | `strata_stop` | Unloads the model through the server's API, then ends the server it started | `port`, `force` | | `strata_logs` | Last lines of the server, engine or setup log | `source` (server, engine, setup), `model`, `lines` (1-500) | | `strata_benchmark` | A short fixed request (greedy, thinking off); reports output and prompt tokens/s | `port`, `max_tokens` (16-512) | | `strata_connect_info` | OpenAI and Anthropic base URLs, model id, whether a key is needed, and settings for Claude Code, Codex, the OpenAI SDK, curl, Cursor, Continue and Open WebUI | `port` | Interface note: these argument spellings (`gpus`, `vision` yes/no) follow source setup, not `strata launch`. ### Behaviour per tool - **Install.** It imports `setup.py`'s `MODELS`, `FAMILIES`, `CONTEXTS` and RAM checks. The size it would pick: IQ3_XXS from 60 GB of RAM, Q2_0 from about 44 GB, the Coder from about 28 GB, and the Coder in the low-RAM mode below that when the GPU makes up for the RAM. The first call returns the plan (download size, free disk, RAM check, exact setup command); the assistant should show it and call again with `confirm: true`. It then creates `.venv` if missing and runs `setup.py --yes --no-start --family ... --model ... --context ... --vision ...` as a background process, logging to `.strata-mcp/setup.log`. Finished steps are skipped on rerun and downloads resume. The install is refused while a model this server started is running. - **Start.** Runs `serve/server.py --engine strata --config strata-.json --port N` with the venv's Python, no `--open`, no console window; output goes to `.strata-mcp/server.log`. It polls `GET /health`; loading takes 1-3 minutes. Refused if a model is already running or another program uses the port. The model keeps running after the AI app closes until `strata_stop` (unless the AI app runs its tools inside a Windows job that does not allow processes to leave it, in which case the model ends with the app). - **Stop.** Sends `POST /unload`; the engine frees VRAM and pinned RAM; then the server ends (Linux: SIGTERM; Windows: the process ends and its job object ends the vision encoder and MCP servers it started). While a request is running it refuses unless `force: true`. - **Status.** Reads `GET /health`, `/v1/status`, `/status` and `/metrics` on 127.0.0.1, sending the config's `api_key` if set and never showing it. ### Safety rules of Strata's MCP server - No shell: every argument is checked against a fixed schema and setup's own choices; commands are argument lists. - The only path argument is `data_dir`: the current data folder, a folder inside the Strata folder, or a new absolute folder whose name starts with `Strata` (for example `D:\Strata-data`) whose parent exists and which is not a system folder. `..`, relative and UNC paths are refused. - It ends only processes it started itself (it records process id and start time in `.strata-mcp/*.json`). A Strata started another way is only asked over its API to unload. - Big downloads need `confirm: true`; the install is refused if the disk is too small. - Local only: it never changes network settings (no `--host 0.0.0.0`, no API key) and leaves experimental options off (speed projection, rope scaling past 262K, `--build`). ### Tools from MCP servers (the Strata model calls them) List servers in `strata-.json` under `"mcp_servers"` (same shape as Claude Desktop's `mcpServers`; the key `"mcpServers"` pasted as is also works) and tune with `"mcp"`: ```json { "mcp_servers": { "files": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "C:\\Users\\me\\Documents\\notes"]}, "search": {"url": "http://127.0.0.1:3000/mcp", "headers": {"Authorization": "Bearer ..."}} }, "mcp": {"timeout_s": 60, "max_result_chars": 20000, "max_rounds": 8} } ``` Or keep them in their own file and start the server with `--mcp-config path\to\claude_desktop_config.json`. Restart Strata after a change. - A program entry (`command`, `args`, optional `env` and `cwd`) is started by Strata over stdin/stdout; Node.js is needed for `npx` servers. An address entry (`url`, optional `headers`) uses MCP's Streamable HTTP transport; the older SSE-only transport is not supported. `"disabled": true` leaves an entry out. - Servers start with Strata. The server window says what each offers or why it did not start; the Monitor tab lists them; Chat settings has **Use tools from MCP servers** (on by default). A server that stops later is restarted at its next call. `GET /mcp` lists servers, state and tools. - In chat each call shows as a block; the model goes on for up to `max_rounds` rounds (the example uses 8); at the limit it gets one final reply with no tools. A failing tool or one slower than `timeout_s` gives the model an `error: ...` result; results longer than `max_result_chars` are cut with a note. Stop stops a running tool too. - Only the chat page uses them. API clients see the API as before and keep their own tools; a `/v1/chat/completions` request opts in with `"strata_mcp": true`. - **A server that needs a key.** Settings -> Tools -> Add tool server sends no extra headers for a web address. For a header key (MCP Proxy and most hosted servers), add the server to the model instead: Models -> your model -> Expert settings -> Add tool server, then put the header under Credentials & environment, for example `{"proxy": {"url": "http://127.0.0.1:8096/mcp", "headers": {"Authorization": "Bearer "}}}`. The key stays in that model's settings on this computer and is shown masked after saving. ## When To Use - Use Strata's MCP server when a user works from a source checkout and wants their assistant to install, start, stop, log-read or benchmark Strata, or to print client settings (`strata_connect_info`). - Use tools from MCP servers when you want the local model to read files, search or use other tools in the Strata chat page. - For a released Terminal install, follow the XL edition page "Agent and Contributor Rules (AGENTS.md, AI_SETUP.md, CONTRIBUTING)" and [[concepts/terminal-launch]] instead. ## Risks & Pitfalls - **Security of tools from MCP servers.** They run on your PC with your user's rights, and the model decides when to call them, also because of what it reads (a web page or file can contain instructions). Give a filesystem server only the folders it needs, prefer read-only tools, add only servers you trust, and set an API key if Strata is reachable from other devices. - The assistant does not see the tools: run the command by hand; it should print `[strata-mcp] ready (Strata folder ...)` to stderr and wait. `not a Strata folder` means a wrong path or `--root` is needed; Python older than 3.10 is refused. - Install failed: read the setup log (`strata_logs` with `source: setup`, or `.strata-mcp/setup.log`); setup's `[X]` line says what to fix; rerunning skips finished steps. - Model does not start: use `strata_logs` for the server log and `source: engine` for the engine log. - Windows job objects can end the model with the AI app (see Start above). - Wording differs inside the source: one section gives the file as `terminal/tools/strata_mcp.py` and the generic-client line writes `/tools/strata_mcp.py`. Use the `terminal/tools/` path that the `claude mcp add` example shows. - Tests: `python -m unittest terminal/tools/test_strata_mcp.py` (fake setup and server; no downloads, no GPU). ## Related Concepts - the XL edition page "Agent and Contributor Rules (AGENTS.md, AI_SETUP.md, CONTRIBUTING)": Terminal-first agent installation route - [[concepts/connecting-coding-tools]]: `strata connect` and client settings - [[concepts/api-reference]]: `GET /mcp` and the `strata_mcp` request field - [[concepts/image-input]]: images over MCP - [[concepts/source-install]]: the source checkout this server manages ## Sources - raw/github_doc-docs-mcp-server-md.md: tools, client setup, install/start/stop behaviour, safety, troubleshooting - raw/github_doc-docs-details-md.md: "Tools from MCP servers" and "Manage Strata from your AI assistant (MCP server)" sections - raw/github_doc-agents-md.md: pointer that the MCP server offers the same install steps as tools --- title: "Memory Modes, VRAM Elastic and Sharing the GPU" type: concept tags: [memory, vram, kv-cache, low-ram, expert-cache, vram-elastic, gpu-sharing] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-details-md.md", "raw/github_doc-docs-vram-elastic-md.md"] --- # Memory Modes, VRAM Elastic and Sharing the GPU ## Definition Normally all of a model's experts are copied into RAM (23-50 GB, pinned) and the GPU holds a copy of the most-used ones (see [[concepts/how-the-engine-works]]). This page covers the settings that change where that data lives: the KV cache options, the low-RAM modes setup picks when RAM is short, the Linux file tier, the expert cache budget, and the optional ways of giving VRAM back to other programs (idle unload, `POST /v1/vram`). Flag placement (DETAILS): engine and server flags go in the `"args"` list of `strata-.json` (source setup writes it) or on the `terminal/serve/server.py` command line. `strata launch` has its own flags. `START-HERE.bat`, `SETUP.bat`, `./setup.sh` and `run-` exist only in a source checkout ([[concepts/source-install]]). ## How It Works ### KV cache options | Option | What it does | | --- | --- | | `--kv int8` (default) | 8-bit KV cache. | | `--kv q4_0` | Half the KV memory with a Hadamard rotation before 4-bit rounding. About 4% faster at 128K, measurably less precise on long documents (perplexity +8-12%; needle tests still pass). Setup asks above 8K context. | | `--kv k8v4` | Keys at 8 bits, values as rotated 4-bit: 23% less KV memory than 8-bit, so more experts fit in VRAM. More precise than `q4_0` on long documents. Prompts are 2-5% slower. | | `--kv-streaming on\|off\|auto` | Keeps the context's KV cache in RAM and only the part attention reads in VRAM (`--kv-resident 32768`). Costs about 13.7 KB of RAM per context token (1.7 GB at 128K). Setup turns it on from 64K when the RAM has room; `on` overrides the RAM test with a note. Never under WSL. | | `--kv-grow` (or `STRATA_KV_GROW=1`; `--no-kv-grow` turns it off) | The KV takes VRAM only for the cells the requests reach; the expert cache holds the rest and gives slots back as the context grows. Needs one GPU, an expert profile, the whole KV in VRAM and every expert in RAM; otherwise the engine says so and stays off. On HIP it uses virtual memory management (`STRATA_HIP_VMM=0` turns that off). It pays on cards of about 24 GB or less with contexts of 128K and more. | `STRATA_KV_HOST_REGISTER=1` forces the KV host copy to be pinned with `cudaHostRegister` (the order WSL2 uses automatically); `0` forces `cudaHostAlloc` first. `--vram-elastic` turns `--kv-grow` off (the engine says so at start). ### Low-RAM modes (chosen by setup) When the RAM cannot hold the experts beside the system (the experts plus about 10 GB), setup picks one of these: | Mode | Flag | What it does | | --- | --- | --- | | Mapped | `--mmap-experts` | Maps the experts from one file in the model's folder (the pack's `experts.bin`, +23-50 GB of disk), or from the GGUF files for native packs with no `experts.bin`. The OS file cache holds what the GPU does not. With a small GPU most experts come from the SSD and it is much slower; setup says so. | | Resident | `--resident-experts` | When the experts the GPU does not hold fit the RAM, the engine copies exactly those into RAM at start. Nothing is read from the SSD while it answers. | | RAM budget | `--resident-budget-gib N` | The N GiB of experts the GPU does not hold that the profile ranks hottest are copied into RAM; the rest are read from the files. Implies `--mmap-experts` and leaves 4 GiB of headroom. On Windows the available commit limit also caps N. This is what runs Unsloth's UD-Q4_K_XL on a 64 GB PC. | - Source checkout only: `START-HERE.bat --setup --low-ram on|off` overrides the choice; `--low-ram resident|mmap` forces one variant. - The resident variant keeps 4 GB of free RAM (`STRATA_RESIDENT_HEADROOM_GIB`). When even the missing experts do not fit, it says so and runs the mapped mode. The server log shows per request how many expert reads went to the file (`resident RAM: ... blob reads from the file`, 0 in steady use). - The adaptive tier (`--adapt-every`) keeps following the conversation in the resident mode. `--adapt-async 1` (opt-in, `--serve`) moves swaps to a helper thread; it is not bit-exact from run to run. `STRATA_RAM_ADAPT=` (opt-in, `--serve`, one GPU, needs `--adapt-every`) lets the RAM copy follow the conversation too. - Several GPUs: setup recommends one GPU in the low-RAM mode and asks; `--gpus 0,1` (source setup) shares the model across both cards ([[concepts/multi-gpu]]). `--yes` keeps one GPU. - With a page-locked copy the GPU also takes its share of the misses over PCIe (`--pcie-frac`). `--pcie-frac 0` (or `STRATA_RESIDENT_PIN=0`) gives the mapped mode's exact tokens. - Linux, opt-in: `STRATA_ARENA_MMAP=1` maps a native pack's expert arena read-only from `experts.bin` instead of reading it into locked RAM (for example 2x 16 GB GPUs with 32 GB of RAM); run it with `--pcie-frac 0`. - Windows, opt-in: `STRATA_FILE_RELEASE=1` trims file-backed pages after GPU uploads (a working-set hint; it does not reduce committed memory or SSD reads). `STRATA_PIN_BY_NEED=1` registers non-GPU-resident experts by rank up to `STRATA_ARENA_PIN_GIB` (29 by default on Windows). - Windows CUDA keeps 640 MiB then 160 MiB of page-lockable memory free while the arena pins (`STRATA_PIN_RESERVE_MIB=N`; `0` turns it off). If a buffer is still refused, the error ends with `[pinned-memory-exhausted]` and names the `STRATA_ARENA_PIN_GIB` to start with. - `STRATA_EXCHANGE_ROTATE=1` (opt-in): an adaptive swap hands buffer ownership over instead of copying, about 1.4 GiB more page-locked RAM. ### Linux file tier When experts are read from GGUF files in place, Linux runs three things by default (off switches in brackets): | Part | Variable | What it does | | --- | --- | --- | | Zero-copy | `STRATA_COLD_OVERLAP=4` (`0` = off) | An expert whose pages are all in the page cache is computed straight from the mapping, with no staging copy. | | io prefetch | `STRATA_IO_PREFETCH=1` (`0` = off) | I/O threads read the layer's uncached experts and the router-predicted ones of the next layers into the page cache. | | Decode gate | `STRATA_IO_PF_GATE=1` (`0` = off) | Every 16 decode windows the read-ahead is judged; it runs only while the page cache has room for the experts (off below 0.55, on above 0.65) and while it pays. | For an `experts.bin` pack, io prefetch and the gate switch on when the page cache has room for at least 55% of the experts; below that the log says so and `STRATA_IO_PREFETCH=1` forces it. Windows and macOS are unchanged. On a Radeon 780M iGPU, prefetch together with the adaptive tier under memory pressure reset the GPU in most runs; with `--adapt-every 100000` there were none, and the cause is not found. `STRATA_READ_AHEAD=0` turns off the start-up read-ahead of weights and MTP draft files. Opt-in on Linux, `STRATA_EXPERTS_SEQ_READAHEAD=1` marks the mapped expert files `MADV_SEQUENTIAL`. Measured on one PC (RX 6900 XT 16 GB, Ryzen 9 9950X, 32 GB RAM, Gyro-M with a 29.9 GiB `experts.bin` on two NVMe SSDs in RAID0, Linux 7.2, `--adapt-swaps 0`, cold page cache): five follow-up turns took 65.2 / 76.2 s without it and 23.5 to 28.4 s with it. Not measured: a PC whose file cache holds the experts, or a slower drive. The prompt chunk also follows the host's memory on Linux (`STRATA_PREFILL_HOST_PLAN=0` turns that off; `--prefill N` and `STRATA_PREFILL_RING` always win). To see the tiers: `--stats` prints `expert tiers`; `GET /metrics` lists `ram_blobs`, `file_blobs`, `file_mb`, `drafts_offered` and `drafts_accepted` per recent request. `hit_rate` is the VRAM share of looked-up experts; experts the GPU reads over PCIe (`--pcie-frac`) are not in it. ### The expert cache size is a budget `--expert-cache N` (`"expert_cache": N`) is N times the largest expert blob and is compared only with the free VRAM read before the slots are written. `--expert-cache auto` (the default) checks again after the slots are written and shrinks if they do not fit. Under Windows an over-sized fixed cache does not fail: the driver pages the excess to system memory and only the speed collapses. - The tell is the startup line `... MiB of VRAM free with everything loaded`. Below about 256 MiB it adds `LOW: requests may stall; add --vram-reserve-mib N`. - Fixes: keep `auto`, or keep an explicit size and raise `--vram-reserve-mib`; a larger `--vram-reserve-mib`, a smaller `--max-context` or `--batch`; or, on NVIDIA, set `CUDA - Sysmem Fallback Policy` to `Prefer No Sysmem Fallback` for the engine's executable. - Performance Monitor's `GPU Process Memory` counters did not separate fast from slow runs; use the free line in the log. - A stall named "request" (stage `request: parking the previous conversation`) can be the OS paging the engine's memory. The cure is memory: a smaller `--resident-budget-gib`, a smaller `--conversation-cache-mib`, or the pagefile on an SSD. ### Sharing the GPU with other programs (optional) By default the model stays loaded until you close Strata. Three server options, all off by default and also keys in `strata-.json`: | Option | Config key | What it does | | --- | --- | --- | | `--idle-unload 600` | `"idle_unload_s": 600` | Unload the model after 600 s without requests; the next request loads it again. | | `--min-free-vram-mib 11000` | `"min_free_vram_mib": 11000` | Load an unloaded model only when that much VRAM is free (waits up to 15 s). Otherwise answer 503 "the GPU is in use by another program". With several GPUs it checks the first one. | | `--before-load "cmd"` | `"before_load": "cmd"` or `["cmd", "arg"]` | A command run before the model is loaded again. `"before_load_timeout_s": 120` bounds it; `"before_load_strict": true` always refuses on failure, `"before_load_ignore_failure": true` always loads. | `POST /unload` unloads now (409 while a request is running; `?wait=1` waits up to 300 s, or `?wait=`); `POST /load` loads ahead of a request. Both need `Content-Type: application/json`. `terminal/serve/server.py --engine strata --config strata-.json --lazy` (or `"lazy_load": true`) starts the HTTP API without the engine; the first generation request or `POST /load` loads it. `POST /v1/load` and `/v1/unload` are JSON control aliases that need the API key. Unloading ends the engine process and the image encoder; model files stay in the OS file cache, so loading again takes seconds while that RAM is free. Opt-in: `"expert_profile_save": "expert-profile-learned.bin"` saves what the expert cache learned on a clean exit and every 10 minutes (`"expert_profile_save_every": 5`, `0` for exit only). A profile learned from one kind of text speeds that kind up and can slow others. ### VRAM elastic: `POST /v1/vram` (opt-in, NVIDIA) Applies to NVIDIA only (not HIP). The VRAM elastic guide says it works with one device or across a layer split with a segmented cache per card; the DETAILS reference says "Not with a layer split", and the engine's refusal message says "one NVIDIA GPU, --serve". The guide is the more detailed document, but if in doubt use one GPU. With `"vram_elastic": true` in the config (engine flag `--vram-elastic`; segment size `"vram_segment_mib"`, default 512, at least 64) the expert cache is allocated in segments. `POST /v1/vram` keeps a number of MiB of VRAM free by unmapping the last segments, or maps them again. Nothing resizes on its own. Only the expert cache moves; dense weights, K/V, MTP head, CUDA context and prompt buffers stay. Request (`Content-Type: application/json`, otherwise 415; the server's API key applies; a foreign `Origin` is refused with 403 unless listed in `trusted_origins`): ``` {"reserve_mib": 8000} {"reserve_mib": 4096, "device": 1} {"reserve_mib": null} ``` `reserve_mib` is the free VRAM you want left after the call (any program counts); below 0, a string, a boolean or a fraction gives 400. `null` keeps the `--vram-reserve-mib` the engine started with, `0` keeps nothing free on purpose (both grow the cache back). `device` is an optional CUDA index and needs an explicit `reserve_mib`; absent means every card. | Case | Status | | --- | --- | | Done | 200, `"status": "ok"` plus `expert_slots`, `expert_cache_mib`, `expert_cache_full_mib`, `vram_free_mib` and a `per_device` map | | Model unloaded | 200, `"status": "not loaded"`, reserve applied when the model loads | | Bad `reserve_mib`, or engine refuses | 400 `invalid_request_error`; the engine stays up | | Request running or queued (waits up to 300 s) | 409 `model_busy` | | Engine ended or no answer in 120 s | 503 `server_error` | Partial success is a 200: compare `vram_free_mib` with your `reserve_mib`. The engine never shrinks below its floor of 128 slots plus the smallest prompt-path loan (a 256-token chunk). Measured on an RTX 5070, Q2_0: decode 44 to 33 tok/s with 4.3 GiB given back; the call took 78 ms. The engine refuses (400) with messages such as `VRAM needs an engine started with --vram-elastic (one NVIDIA GPU, --serve)`, `VRAM: not with the resident low-RAM mode`, `VRAM: not with --peer-device`, `VRAM: not while batch slots are decoding`. The server remembers the last `reserve_mib` in memory and re-sends it after the engine restarts; a server restart forgets it. `GET /v1/status` has a `vram` object and `elastic`. The image encoder is on demand by default on an NVIDIA card with one GPU (since 0.2.9, as the VRAM elastic guide says): the first picture starts it (1.2-1.4 s on an RTX A6000, 1,342 MiB of VRAM) and `"elastic_idle_s"` (default 120) without a picture stops it. Its room comes from the reserve (`--vram-reserve-mib`). `"elastic": false` in the config's `"vision"` section keeps it on the card; AMD works the same way but is off by default. See [[concepts/image-input]]. ## Key Parameters | Parameter | Value | | --- | --- | | `--kv` | `int8` (default), `q4_0`, `k8v4` | | `--kv-resident` | 32768 with KV streaming | | `--expert-cache` | `auto` (default) or N | | `--vram-reserve-mib` | deducted before the cache is sized | | `"vram_segment_mib"` | default 512, minimum 64 | | `"elastic_idle_s"` | default 120 | | `STRATA_RESIDENT_HEADROOM_GIB` | 4 | ## When To Use - RAM too small for all experts: the low-RAM modes (setup chooses them). - A long context on a card of about 24 GB or less: `--kv-streaming`, `--kv k8v4`, `--kv-grow`. - Another GPU program needs VRAM sometimes: `--idle-unload`, `--min-free-vram-mib`, or `POST /v1/vram` if you are on one NVIDIA GPU and opted in. - Slow output after a large `--context`: check the free-VRAM startup line and the expert cache budget. ## Risks & Pitfalls - `--kv q4_0` loses precision on long documents (perplexity +8-12%). - An over-sized fixed `--expert-cache N` collapses speed under Windows without failing (symptom entries are on [[concepts/troubleshooting]]). - VRAM elastic is not available with helper caches on other GPUs, `--peer-device`, the resident low-RAM mode or HIP (DETAILS also says "Not with a layer split"; the VRAM elastic guide describes a per-card layer split as supported). In the VRAM elastic guide's own words, a failure inside a resize (driver refuses to release a segment, or refilling fails) leaves the cache table untrusted; the safe response is `POST /v1/unload` then `POST /v1/load`. The author did not run a fault-injection test of those paths. - Mapped mode with a small GPU reads most experts from the SSD and is much slower. - Measurements above are single-machine figures; do not generalise them. ## Related Concepts [[concepts/how-the-engine-works]], the XL edition page "Speed Settings, CPU Workers and Measured Speeds", [[concepts/settings]], [[concepts/multi-gpu]], [[concepts/choosing-a-model]], [[concepts/troubleshooting]] ## Sources - raw/github_doc-docs-details-md.md: "Memory modes" and "Sharing the GPU with other programs (optional)" sections (KV options, low-RAM modes, Linux file tier, expert cache budget, idle unload). - raw/github_doc-docs-vram-elastic-md.md: `POST /v1/vram` behaviour, statuses, failure paths, image encoder on demand. --- title: "Multiple GPUs: layer split and second-GPU caches" type: concept tags: [multi-gpu, layer-split, pipeline-windows, helper-cache, peer-device, cuda] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-multi-gpu-md.md", "raw/github_doc-docs-second-gpu-md.md"] --- # Multiple GPUs: layer split and second-GPU caches ## Definition A layer split puts one model on two or more graphics cards of the same make in one PC. The multi-GPU guide describes NVIDIA; AMD limits are in the XL edition page "AMD Radeon on the HIP Backend". A split can add capacity without adding speed, so choose a model that fits the combined memory. A separate, experimental feature (helper caches and the peer tier, from the second-GPU guide) lets extra cards hold extra experts for hand tuners. A different opt-in, reading prompts on one card and answering on another, is the XL edition page "Split serving and the all-cards split engine". ## How It Works Layers are cut into contiguous ranges, one per card. The first card runs layers 0 to K-1, the next K onward, and the last card also runs the output head and the draft (MTP) layer. Each card keeps an expert cache for its own layers only, so two cards hold about twice the experts one card holds. This is pipeline parallelism: a token crosses between cards once per verify window (a few hundred KB through pinned RAM). No NVLink or peer-to-peer access is needed, and x4 or x1 slots work. Each card holds: a copy of the dense weights, its own session state (KV of the full context), its verify window, prompt-path buffers, and an expert cache for its layers. The last card also holds the head and draft layer (about 0.8 GB). Host RAM holds the expert arena once, shared; the CPU pool computes whatever no card holds. Prompts flow through cards in chunks (while a later card reads chunk c, the first reads c+1). By default each card loads only its own layers' dense weights (`STRATA_STAGE_TRIM=0` or `--no-trim-stage-weights` restores full copies; output can differ slightly). ### Using it (three interfaces, not interchangeable) | Interface | How | | --- | --- | | Desktop app | choose Main, Helper or Off per card | | Installed Terminal | `strata launch` Cards step, or `strata launch --gpu 0,1`, or `strata launch --gpu-roles 1=main,0=helper` (unnamed cards are Off) | | Source checkout (`START-HERE.bat`, `./setup.sh`) | `--gpus 0,2` (numbered as `nvidia-smi`; remembered), `--gpus all`, `--gpu 0` (one card), `--layer-split auto` (default) or the first layer of each later card (`18`, `16,32`), `--gpu-roles 1=main,0=helper` (saved) | | Run config (`strata-*.json`), merge fields | `{"gpu": [0, 2], "layer_split": "auto"}` | | Docker | `GPU_ROLES=1=main,0=helper` is passed as `--gpu-roles` ([[concepts/docker]]) | ### Main, Helper, Off - **Main:** runs the last stage (output head, draft layer, check of guesses); a prompt chunk waits on it. Exactly one. It is the last card in the engine's order. - **Helper:** holds a share of layers and expert cache so more of the model sits on GPUs. The speed effect depends on cards and workload. - **Off:** Strata does not touch the card. Recommendation (same rule in app, `strata launch` and setup; `terminal/strata_control/gpu_roles.py`): the faster card (multiprocessors x max clock; within 5% counts as equal, then more memory, then lower number; of two identical cards the highest number is Main) is Main. A card with clearly more memory beats a faster one at least half as fast. Everything else starts Helper, except a card with 8 GB or less beside a bigger card (Off), built-in graphics beside a card with its own memory (Off), and a card the engine cannot run (Off). Terminal keys: M, H, O; R restores the recommendation. Run-config form: ```json {"gpu_roles": {"1": "main", "0": "helper", "2": "off"}, "gpu": [0, 1], "gpu_order": "as_given"} ``` `gpu` lists Helpers (slowest first), then Main; if hand-edited and mismatched, `gpu` wins. Cards listed need at least 4 GB; each extra card costs an estimated 2 GB of its own buffers. All cards Off is allowed; CUDA, HIP and SYCL engines cannot start without a card, while the Mac engine says "Performance is degraded on CPU only." and goes on. ### `layer_split` and `auto` `"layer_split"` is `"auto"` (by free VRAM) or the first layer of each later card, one rising number per card after the first: with four cards and 48 layers, `"24,36,42"` is layers 0-23, 24-35, 36-41, 42-47. `auto` tries every placement for two to four cards (proportional to free VRAM beyond) and keeps the one whose caches hold the most of the expert profile, hottest pairs weighted most; ties go to the fullest card's spare room. Example startup lines: ``` strata generate: layer split auto: K=19 - the caches hold 11767 of 12288 profiled pairs (fullest device 100%) strata serve: layer split: layers 0-18 (CUDA0), 19-47 (CUDA1), one hand-off per window ``` With `auto` the faster card goes last (cards within 5% keep your order; `"gpu_order": "as_given"` keeps it always). For unequal cards `auto` asks for at least 3 layers per card; prefill flat from 4K to 16K tokens signals an idle card, so sweep `"layer_split"` once. ## Key Parameters Put flags in the config's `"args"` and variables in `"env"`, then restart. All off unless stated. | Setting | Effect | | --- | --- | | `--split-skip-if-fits` (`"split_skip_if_fits": true`) | run on the first card alone when it holds every profiled expert plus KV, draft layer and reserve; needs `--layer-split auto` | | `--pipeline-windows 2` | first card starts the next verify window while the last verifies this one (a guess that this window is accepted whole). Default on for AMD RDNA4 (gfx1200 / gfx1201) with `--serve`, the draft layer, and a split of two or more stages when the drafter can sit on the first card (otherwise three or more); `--pipeline-windows 0` or `STRATA_PIPELINE_AUTO=0` turns it off; NVIDIA builds keep it opt-in. On exactly two Arc B-series cards it is on with `--spec 2` or more (the XL edition page "Intel Arc GPUs (SYCL engine)"). Cost: a second verify window per card, 160 MiB less expert cache per card, extra recurrent state. Config: `"args": [..., "--pipeline-windows", "2"]` with `"layer_split": "20"` | | `STRATA_SPLIT_OWN=1` or `auto` | own prompt buffers per card (`auto` where buffers are at most 12% of VRAM); output differs from default | | `STRATA_PREFILL_HELP=1` (`STRATA_PREFILL_HELP_FRAC=f`) | idle card computes a share of streamed experts for one-chunk prompts; helps up to about 3.3K tokens on slow links; not bit-identical | | `STRATA_SPLIT_MTP_BATCH=1` | last card fills the draft layer's prompt K/V in batches; needs a `--native` pack and paged or ring draft K/V | | `--vram-reserve-later-mib N` | separate reserve for later cards, e.g. `--vram-reserve-mib 300 --vram-reserve-later-mib 1800` when the display is on the last card | | `--prefill-pipe R` (`STRATA_PREFILL_PIPE=R`) | chunk count with least pipeline time for b/a = R; `./setup.sh --calibrate` measures it | | `STRATA_SPLIT_RING=N` | prompt-path streamed ring slots (0: pinned-share rule; 96 when at least 75% of pairs are cached) | | `STRATA_SPLIT_CHUNK16K=1` | keep the 16384-token auto chunk on AMD gfx12 splits (default 8192) | | `STRATA_SPLIT_LINK_MIN=r` | link-gap threshold for scaling slow-link cost in `auto` (default 4) | | `STRATA_SPLIT_UNIFORM=1` | with `"gpu_order": "as_given"`, price every link the same | | `STRATA_SPLIT_OVERLAP=1` | overlapped stage hand-off; helps AMD, no gain on NVIDIA; wait bound `STRATA_SPLIT_WAIT_MS` (default 30000, 0 = none); off beside `--pipeline-windows` | | `--split-device D1[,D2..]` | later stages' devices; `--layer-split K --split-device 0` runs both stages on one card (bit-exact check, not a speed mode) | | `STRATA_SPLIT_FEWER_PCT` | threshold for the `FEWER CARDS` hint (default 20%; 0 disables the line) | | `--vram-reserve-mib`, `--resident-experts`, `--resident-budget-gib` | `--resident-experts` works on a split (experts any card caches are left out of the RAM copy) | | `STRATA_ARENA_PIN_GIB=N` | pin at most N GiB of the arena (0: whole arena); under WDDM (Windows, WSL2) only 8 GiB is pinned on multi-GPU, Linux pins all | ### Second-GPU helper caches and the peer tier (experimental) These are engine flags for the run config `"args"`, not `strata launch` flags. CUDA0 keeps dense layers, KV and state, the draft layer and its own cache; up to three independent caches fill CUDA1, CUDA2, CUDA3 in order (enable CUDA1 first). Each expert has one owner (CUDA0, one helper, or the CPU pool). Prompt prefill still uses CUDA0; helpers serve decode including draft verification. No peer-to-peer needed. Each helper keeps at least 512 MiB free. | Flag | Meaning | | --- | --- | | `--expert-cache-device1 N\|auto`, `--expert-cache-device2`, `--expert-cache-device3` | fill that card with N experts or as many as fit | | `--expert-cache-remote-placement stripe\|layer` | `stripe` (default) spreads the ranked list; `layer` gives each layer to one helper | | `--remote-expert-opt` | serve mode only; optimises helper caches; setup adds it for two or more GPUs with a helper cache (`--no-remote-expert-opt` or `"remote_expert_opt": false` to leave out); changes floating-point summation order; switches `--pipeline-windows` off; only two-card CUDA was measured | | `--peer-device N` (N >= 1) | second adaptive expert cache on CUDA device N over NVLink or another peer path; alternative to helper caches | | `--peer-reserve-mib M` (600), `--peer-slots N` (0 = as many as fit), `--peer-adapt-swaps N` (-1), `--peer-prefill-rows N` (-1) | peer tuning | | `STRATA_PEER_NO_P2P=1` | force the host route for peer traffic | | `STRATA_PRIMARY_DEVICE=N` | Windows HIP: choose another visible ordinal as primary; a layer split is refused when set; NVIDIA uses `CUDA_VISIBLE_DEVICES` with `CUDA_DEVICE_ORDER=PCI_BUS_ID` | Example engine arguments: `--expert-cache auto --expert-cache-device1 auto --remote-expert-opt`. Through the server, list both cards in `"gpu"` and add `--peer-device 1` to `"args"` (the number is the position in that list). `--peer-device` requires `--expert-profile` and an enabled expert cache and refuses `--layer-split` and `--expert-cache-device1..3`. On Windows, `auto` sizing reads the WDDM budget and cannot see the desktop or other apps; use explicit counts on a card that drives the display. ## When To Use - The model's routed experts do not fit one card, or CPU-pool work is the bottleneck. On 2x RTX 2080 Ti 22 GB over a dual-socket Xeon E5-2696 v4, engine 0.1.49, six 300-token coding prompts: decode 35.2 to 51.0 tok/s (+45%) and an 11.6K prompt 672 to 908 tok/s. Where the CPU is fast, the gain is small: on RTX 5080 + RTX 3090 (Ryzen 9 9950X3D, Coder, 32K, engine 0.1.20-era) decode was 84 against 83-87 tok/s alone, prompts faster (2,039 against 1,726-2,017 at 16K). - Two models, one per card: in the app turn on **Run multiple models** on the Models page. Measured on two of four Radeon AI PRO R9700 (Linux, AMD): both models answered at about 60 tokens/s each. Two NVIDIA cards were not run; two makes at once is unsupported. - Reading across the docs: a mixed pair of unequal cards needs a `"layer_split"` sweep rather than trusting `auto` on a 4K-only benchmark. ## Risks & Pitfalls - **Unsupported:** cards older than the RTX 20 series (compute capability below 7.5) unless you name them (`--gpus`, `--gpu`, `--cuda 12`) and run the experimental CUDA 12 engine (the XL edition page "Older and Experimental GPUs (Pascal, Volta, Maxwell, sm_80, Older AMD)"); a card under 8 GB with others (each holds a copy of dense weights; naming it with `--gpus` prompts, `--yes` proceeds); Intel GPUs in this split guide's list of unsupported combinations; mixed NVIDIA and AMD (an engine drives one make). Contradiction to note: the multi-GPU guide lists "Intel GPUs in a split" as unsupported, while the Intel guides document `--layer-split` on two Arc cards (the XL edition page "Intel Arc GPUs (SYCL engine)"); the docs do not reconcile the two, and the Intel guide is the more specific one for Arc. - An extra slow card costs its own round per window and can make a good pair slower: a third card (RTX 2080 Ti) made the 5080 + 3090 pair slower (decode 68 / 90 tok/s). With `auto`, a `FEWER CARDS` line appears when the model predicts at least 20% shorter decode windows without the first cards; nothing is removed for you, and prompt reading is not predicted, so measure. - A weak helper cache card can slow decode (its per-layer round trip costs more than the CPU pool would). `--remote-expert-opt` is inert on a plain layer split. `--pipeline-windows` is off with `--batch` slots, `--peer-device`, helper caches, a split onto one GPU, and no draft layer. `--mmap-experts` needs a canonical pack (`experts.bin`). - Each card's prompt path takes 1.5 GB at the default 2048-token chunk (`--prefill 1024` halves it). - Small cards: a split steps down in order (trim, KV window of 20480 then 8192 then 4096 cells, drop the drafter, smaller prompt buffers, head to pinned host memory about 3x slower logits, fewer cards) and prints `short of GPU memory: ...` for each; context and request count are never changed, only speed. `STRATA_SPILL_OFF=1` disables the steps. A later stage also keeps 256 MiB free (`STRATA_DEFAULTS=026` keeps the 0.2.6 reserve). If a start still fails on memory, `strata launch` and the server retry once without a drafter. - The CUDA0 expert-cache GPU hit path gives outputs that diverge from cache-off runs; treat helper-cache performance as experimental until tokens are validated. - Pipeline windows: tokens equal the serial loop's, up to CPU rounding. ### Selected measurements (each row one machine) | Machine and setup | Result | | --- | --- | | 2x RTX A4000 made unequal, IQ3_XXS, 14.5K prompt, `auto` unequal-pair rule | prompt 945 to 1,441 tok/s (+52%), decode 50.2 to 65.9 (+31%) | | 2x RTX 3090, x16 + x4 | K=31: 114-119 tok/s decode; K=27: 130-136 | | 2x RX 7900 XTX, Swift 1.5 IQ3_XXS, 128K, `STRATA_SPLIT_OVERLAP=1` | code decode 53 to 70.1 tok/s; prose 45 to 55.9 | | RTX 4060 Ti + RTX 5080, i9-14900KF, Swift 1.5 IQ3_XXS, 160K, `--pipeline-windows` | mean decode 72.4 to 84.0 tok/s (+16%) | | 4x RX 7900 XT, Flash-Next GSQ-RCO IQ3_S, 262K, `--layer-split 12,24,36` | 4K 59.4 to 67.6; 32K 51.8 to 65.6 | | 2x MI50 16 GB, Coder, `STRATA_STAGE_TRIM=1` | decode 39.2 to 41.7 tok/s | | 2x RX 6900 XT, HIP gfx1030, IQ3_S, `--prefill-pipe 3072` | 8K prompt 1,150-1,160 to 1,341-1,353 tok/s; 4K, 16K, 32K not re-chunked | | dual RTX 4090 (PR author), `--remote-expert-opt` | decode +63% mixed, +132% code over the plain helper path | | RTX 5090 + RTX 4090 (PR author), `--remote-expert-opt` | decode +28% mixed, +63% code | Two Tesla P40 (community, IQ2_XS, experimental): decode 19.6 tok/s on one card, 34.8 on both. Left out: the remaining history tables (prefill-pipe chunk sweeps, resident-RAM-mode split numbers, per-rig setting arms). Upstream: `docs/MULTI_GPU.md`, `docs/SECOND_GPU.md`. ## Related Concepts - the XL edition page "Split serving and the all-cards split engine": prompt on one card, answer on another, plus the all-cards split engine. - the XL edition page "Intel Arc GPUs (SYCL engine)", the XL edition page "AMD Radeon on the HIP Backend": vendor-specific split behaviour. - the XL edition page "Batching and Multi-User Serving": `--batch N --batch-groups G --trim-stage-weights` pipelines several conversations through the cards. - [[concepts/memory-modes]]: resident-experts and RAM budgets. - [[syntheses/hardware-comparison]]: which vendors and cards are supported, and at what level. - [[concepts/choosing-a-model]]: picking a model and size for the memory you have. - the XL edition page "Older and Experimental GPUs (Pascal, Volta, Maxwell, sm_80, Older AMD)": Pascal and Volta in a split. ## Sources - raw/github_doc-docs-multi-gpu-md.md: layer split, roles, tuning, pipeline windows, limits, measurements - raw/github_doc-docs-second-gpu-md.md: helper caches, peer tier, primary device, helper measurements --- title: "Other Models: Qwen3.6, Hy4-Flash, Inkling 2 Mini and DeepSeek Status" type: concept tags: [models, qwen3-6, hy4-flash, inkling-2-mini, deepseek, shape-engines] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-qwen36-md.md", "raw/github_doc-docs-deepseek41-md.md", "raw/github_doc-docs-deepseek-mac-md.md", "raw/github_doc-docs-models-md.md", "raw/github_doc-readme-md.md", "raw/github_issue-gui-deepseek-models-marked-no-longer-supported-after-0-2-14-.md", "raw/github_release-strata-0-2-18.md", "raw/github_release-strata-0-2-19.md", "raw/github_release-strata-0-2-14.md", "raw/github_release-strata-0-2-21.md", "raw/github_release-strata-0-2-13.md", "raw/github_doc-docs-capabilities-md.md", "raw/github_doc-docs-release-notes-0-2-4-md.md", "raw/github_release-strata-0-2-7-1-nvidia-dgx-spark-and-deepseek-on-the-mac.md", "raw/github_release-strata-0-2-10.md", "raw/github_release-strata-0-2-20.md"] --- # Other Models: Qwen3.6, Hy4-Flash, Inkling 2 Mini and DeepSeek Status ## Definition Beyond Qwen3.8-Flash-Next ([[concepts/choosing-a-model]]), the models guide documents three more families that Strata runs, and two guides record that DeepSeek V4.1-Flash is no longer run. Qwen3.6-35B-A3B runs on Strata's own Qwen3.6 engine path. Tencent Hy4-Flash and Inkling-2-Mini each run on a dedicated "shape engine" package (`strata-hy4` and `strata-inkling`) that the update feed fetches on demand. Quant details for Qwen3.8 are in [[concepts/quants]] and the XL edition page "Alternative Packs: Gyro, NVFP4, Swift 1.5 and OrcaRouter"; the full side-by-side is in [[syntheses/model-and-quant-comparison]]. ## How It Works ### Qwen3.6-35B-A3B A smaller model from the same maker (35B parameters, 3B active per token, 256 experts, top-8, Apache 2.0). Strata runs Unsloth's GGUFs with the MTP layer (`unsloth/Qwen3.6-35B-A3B-MTP-GGUF`) on its own engine path, chosen by the file. It runs on NVIDIA and AMD cards; the Intel Arc engine and the Mac engine do not run it. On the DGX Spark the capability table lists the package as present and untested. It reads pictures and serves several requests at once. ```sh strata launch --family qwen36 --model UD-Q4_K_XL strata launch --family qwen36 --model ud-q4_k_xl --vision on --parallel 2 ``` | Size | File | RAM setup plans for | | --- | ---: | ---: | | UD-Q4_K_XL | 22.9 GB | 32 GB | | UD-Q6_K_XL | 32.6 GB | 44 GB | | Q8_0 | 37.8 GB | 52 GB | The picture reader file (`mmproj-F16.gguf`, 0.9 GB) is extra. The engine keeps every expert it can on the graphics card and computes the rest on the CPU. The RAM column is a planning size, not a promise: on a card that cannot hold most experts (for example 12 GB or 16 GB of graphics memory) a large host expert arena stays in system RAM, and if free RAM does not cover it, start can fail after the process opens with `no host memory for the experts`. Measured, UD-Q4_K_XL, decode only: Radeon AI PRO R9700 (32 GB) 117.8 tokens/s; RTX 3060 (12 GB) with most experts on the CPU 59.7 tokens/s (models guide). The Qwen3.6 guide's table for the R9700 (HIP gfx1201, Strata 0.1.45, 5 interleaved pairs) gives decode 117.8 tok/s against 81.9 to 82.1 for llama.cpp on the same file and a 4,096-token prompt at 6,220 tok/s with chunk 4096. **Several requests at once.** `--parallel N` (Terminal; 1 to 8) or `"parallel": N` in the model's config (`strata-qwen36-.json`) keeps N conversations open and decodes them together. Source setup has the same option. Each slot keeps its own cache in VRAM: 1.5 GB at a 32K context plus 0.07 GB of recurrent state, so on 12 and 16 GB cards slots take room from cached experts. Setup offers up to 3 to 4 slots where every expert fits (3 on a 32 GB card at 32K); in hybrid mode 12 GB offers 4 slots at 8K and none at 32K, 16 GB offers 2 at 32K. MTP drafts apply to a request that has the engine to itself; with several requests, `--batch-mtp` in the config's `args` is opt-in. **Limits.** Eight slots at most; `logit_bias` is not available on this path (the server refuses a request that has it); Intel Arc (SYCL) and Mac do not run the family. `--prefill 512` (or `STRATA_Q36_CHUNK=512`) gives the 512 chunk size and the base engine's text; it is an engine flag in the config's `args`, not a `strata launch` option. ### Tencent Hy4-Flash Runs on `strata-hy4` using Strata's native `.strata` quantizations (`strata-engine/Hy4-Flash-Strata`), with the built-in DFly2 drafter, picture reading (`Hy4-Flash-Vision.strata`, 0.93 GB) and a 67.6 GB Engram lookup shard (`Hy4-Flash-Engram-Q8.strata`) streamed from the SSD. The 0.2.18 release note introduces it as "Native Tencent Hy4-Flash support (`strata-hy4` 0.1.64)": a 220B-parameter model (12B active, 64B Engram lookup, up to 1M context, text + vision). ```sh strata launch --family hy4-flash --model SQ-64 ``` | Build | Model file | Planning memory (models guide) | README: RAM / graphics card | | --- | ---: | --- | --- | | SQ-64 | 62.0 GB | 64 GB RAM + 8+ GB GPU; also supports 4-tier SSD cold-expert streaming on smaller RAM | 64 GiB / 8, 12 or 16 GiB | | SQ-96 | 89.6 GB | 96 GB RAM or 128 GB unified | 96 GiB / 8 or 12 GiB | | SQ-128 | 113.7 GB | 128 GB RAM or 128 GB unified | 128 GiB / 8 or 12 GiB | Each build also needs the 67.6 GB Engram shard on the SSD. The README: "The number in the name is the RAM the pack is made for." The 0.2.18 release note gives disk totals including `Engram-Q8` (SQ-64 129.61 GB, SQ-96 157.16 GB, SQ-128 181.23 GB) and lists 15 `strata-hy4` packages (Windows `cuda-cuda13`, `cuda-cuda12`, `hip-strix`, `hip-rx9070`, `hip-rdna3`, `hip-rdna2`; Linux `cuda-cuda13`, `cuda-cuda12`, `hip-halo`, `hip-rx9070`, `hip-rx7900`, `hip-rx6000`, `sycl`; macOS `metal`; Linux aarch64 `cuda-cuda13`). Its speed bullets are release-note claims without a pack or context stated per figure: up to 240 tok/s decode on an RTX PRO 6000, 90 to 111 tok/s on an RTX 5090, 69 to 110 tok/s on an M5 Max 128 GB, 43.9 tok/s on a DGX Spark GB10. ### Inkling-2-Mini (Thinking Machines) Runs on `strata-inkling`. The 0.2.19 release note introduces it ("`strata-inkling` 0.1.65"): a 26.4B-parameter looped mixture-of-experts model, 3.4B active per token, up to 1M context, text and image inputs, tool calling. Both Strata's `.strata` v1.1 builds and Unsloth's Dynamic GGUFs are supported, with built-in DSpark speculative drafting and picture reading (`Inkling-2-Mini-Vision.strata`, 0.64 GB). ```sh strata launch --family inkling-2-mini --model SQ-15 ``` | Strata build | File | Typical hardware (models guide) | README | | --- | ---: | --- | --- | | SQ-10 | 10.5 GB | 12 GB GPU, 16 GB Mac, or 4-8 GB hybrid | made for a 12 GiB card | | SQ-15 | 14.3 GB | 16 GB GPU, 24 GB Mac, or 12 GB hybrid | 16 GiB | | SQ-20 | 19.3 GB | 24 GB GPU or 32+ GB unified | 24 GiB | The README says a 4 GiB card is enough to start. The Unsloth Dynamic GGUF builds (`unsloth/Inkling-2-Mini-GGUF`, plus a 0.40 to 0.64 GB DSpark drafter companion): UD-IQ1_S / UD-IQ1_M / UD-IQ2_XXS / UD-Q2_K_XL are 7.8 to 9.1 GB (4-12 GB GPUs and 16 GB RAM); UD-IQ3_XXS / UD-Q3_K_XL / UD-IQ4_XS / UD-Q4_K_M / UD-Q4_K_XL are 11.7 to 17.6 GB (8-24 GB GPUs or hybrid RAM); UD-Q8_K_XL is 22.9 GB (24+ GB GPUs or 32+ GB RAM). **DSpark drafter.** Decided by a measurement: at the first start of a placement Strata times the model with and without it and keeps it on only where it is at least 10 percent faster on a mix of code and chat. `strata launch ... --drafting dspark` always turns it on and `--drafting off` always off. Measured on RTX 3090 / A6000 / 5090 class cards with the whole model in VRAM: code, code edits, JSON, tool calls and repeated text 1.2x to 2.4x faster; chat and prose 3 to 17 percent slower; long-document summaries about even. On cards that keep experts in RAM and decode at about 8 tokens per second or less it is 1.5x to 4x faster on everything. It needs a few hundred MB of VRAM on a full card, and answers can differ from plain decoding after a few dozen tokens. **Thinking levels.** The model is trained with a number; Strata sends it. Requests with `"none"`, `"off"`, `0`, `"chat_template_kwargs": {"enable_thinking": false}` or Anthropic `"thinking": {"type": "disabled"}` write level `0`; `"minimal"` 0.1; `"low"` 0.2 (the default when a request names none; config `reasoning_effort` or `STRATA_INKLING_EFFORT` changes it); `"medium"` 0.7; `"high"` 0.9; `"xhigh"` and `"max"` 0.99; a number from 0 to 0.99 is passed as is. Default thinking budgets: 1,024 tokens at none and minimal, 2,048 low, 4,096 medium, 8,192 high, 16,384 xhigh and max; `STRATA_INKLING_THINKING_BUDGET=` (config `inkling_thinking_budget`) sets one number for every level, `0` none, and a request's `reasoning_budget_tokens: 0` turns the default off for that request. A quarter of `max_tokens` (at least 512 tokens, never more than half) stays for the answer. ### DeepSeek V4.1-Flash: status **Current guidance.** `docs/DEEPSEEK41.md` and `docs/DEEPSEEK_MAC.md` both say: "Strata no longer runs DeepSeek V4.1-Flash. Version 0.2.13 was the last one that set it up and started it" (the Mac guide adds "on a Mac"). Downloaded model files stay where they are; when you try to start one, Strata names the folder and its size so you can delete it. To run a model now, choose one of the Qwen models. Reading across the docs: "0.2.13" fits the app/Terminal numbering, since engines are 0.1.x. **History.** DeepSeek V4.1-Flash arrived in the Terminal in 0.2.4 (the 0.2.4 notes say the app would get it in a later update; three ISTA-DASLab sizes in Setup), came to the Mac in 0.2.7.1 (that release's title is "NVIDIA DGX Spark and DeepSeek on the Mac"; the 0.2.4 notes say it was not on the Mac yet) and gained an ISTA-DAS Coder (DeepSeek-V4.1-Flash with 192 of 384 experts per layer) in 0.2.10. Engines for it were 0.1.59 in release 0.2.13. **The report.** Issue 6048 (closed, `state_reason` not_planned, closed 2026-11-19) reports that after updating the Windows GUI to engine 0.1.60 (Strata 0.2.14, from 0.2.13) two downloaded models (DeepSeek-V4.1-Flash ISTA-DAS 2.00 bpw, 138 GB, and 2.25 bpw, 155 GB) vanished from Storage and the Models page said "DeepSeek - no longer supported." Rolling back to engine 0.1.59 did not restore them; the reporter says the changelog does not mention it. Other commenters report the same on Linux (including an AppImage 0.2.14 on Linux Mint). The thread, as far as it was reviewed (the opening post and first six comments), does not show a resolution or an explanation. **Residue in later release notes.** The 0.2.14 note lists the DeepSeek engines as staying at 0.1.59 and fetched from the 0.2.13 release; 0.2.18 and 0.2.19 say "Your existing ... DeepSeek models, chats, and settings stay untouched"; 0.2.19, 0.2.20 and 0.2.21 call the DeepSeek 0.1.59 engines "frozen" and still published on the 0.2.13 release. The capability table's header line lists five DeepSeek engine packages that "stay at 0.1.59". Reading across: the engine packages remain published, but the guides are explicit that Strata no longer sets up or starts the model; use the guides, not the release-note wording, for current behaviour. ## Key Parameters | Flag or variable | Interface | Meaning | | --- | --- | --- | | `--family qwen36\|hy4-flash\|inkling-2-mini` | Terminal | Family | | `--vision on\|off\|gpu\|cpu` | Terminal | Pictures and reader (Qwen3.6 guide) | | `--vision yes\|no\|gpu\|cpu`, `--vision-tokens N` | source checkout setup | Same, for setup | | `--parallel N` | Terminal and source setup | 1 to 8 simultaneous Qwen3.6 requests | | `--drafting dspark\|off` | Terminal | Inkling DSpark drafter forced on or off | | `STRATA_INKLING_EFFORT`, `STRATA_INKLING_THINKING_BUDGET` | env | Inkling default level and budget | | `STRATA_Q36_CHUNK=512`, `STRATA_Q36_READ_WINDOWS=4` | env | Qwen3.6 prompt chunk, decode windows during a prompt read | ## When To Use - Memory-limited PC: Qwen3.6 (32 to 52 GB of RAM planning) or Inkling-2-Mini (8 to 24 GB GPU / 16 to 32 GB RAM). - 64 to 128 GB of RAM or unified memory: Hy4-Flash, with the Engram shard on a fast SSD. - Intel Arc or Mac: Qwen3.6 does not run there; Inkling and Hy4-Flash ship `sycl` and `metal` packages. - DeepSeek: do not plan on it; see the status above. ## Risks & Pitfalls - Planning RAM figures are not promises; Qwen3.6 can fail with `no host memory for the experts` on 12 to 16 GB cards. - Qwen3.6 speed tables are decode-only on named machines (R9700 32 GB, RTX 3060 12 GB), not start-up time and not a 16 GB card sharing RAM with other large processes. - Hy4-Flash and Inkling release-note speed claims come from varied hardware; do not carry one machine's number to another. - A DeepSeek "no longer supported" label on the Models page matches the guides' statement that Strata no longer runs the model. The issue thread, as far as it was reviewed (the opening post and first six comments), does not say how to restore the models. ## Related Concepts - [[concepts/choosing-a-model]], [[concepts/image-input]] (each family's picture reader) - the XL edition page "Batching and Multi-User Serving" for `--parallel` and batching - the XL edition page "NVIDIA DGX Spark (GB10) on Linux", the XL edition page "Intel Arc GPUs (SYCL engine)", the XL edition page "Apple Silicon Mac (Metal)" - the XL edition page "Closed Issues: Install, App, Hardware Requests and Feature Requests" - [[entities/strata]] ## Sources - `raw/github_doc-docs-qwen36-md.md`: Qwen3.6 pictures, parallel requests, limits, measurements. - `raw/github_doc-docs-models-md.md`: Qwen3.6, Hy4-Flash and Inkling tables, DSpark and thinking levels. - `raw/github_doc-readme-md.md`: README tables for Hy4-Flash, Qwen3.6 and Inkling. - `raw/github_doc-docs-deepseek41-md.md`, `raw/github_doc-docs-deepseek-mac-md.md`: DeepSeek no longer run, 0.2.13 last. - `raw/github_issue-gui-deepseek-models-marked-no-longer-supported-after-0-2-14-.md`: issue 6048. - `raw/github_release-strata-0-2-18.md`: Hy4-Flash introduction and packages. - `raw/github_release-strata-0-2-19.md`: Inkling 2 Mini introduction and packages. - `raw/github_release-strata-0-2-14.md`, `raw/github_release-strata-0-2-13.md`, `raw/github_release-strata-0-2-20.md`, `raw/github_release-strata-0-2-21.md`: DeepSeek engines 0.1.59, "frozen". - `raw/github_release-strata-0-2-7-1-nvidia-dgx-spark-and-deepseek-on-the-mac.md`: release title for DeepSeek on the Mac. - `raw/github_release-strata-0-2-10.md`: the ISTA-DAS Coder for DeepSeek. - `raw/github_doc-docs-capabilities-md.md`: Qwen3.6 hardware support; DeepSeek packages staying at 0.1.59. - `raw/github_doc-docs-release-notes-0-2-4-md.md`: DeepSeek V4.1-Flash in the Terminal in 0.2.4. --- title: "Quants and the Unsloth Q4/Q6 Packs" type: concept tags: [quantization, unsloth, ud-q4-k-xl, ud-q6-k-xl, ram-budget, quality] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-quants-md.md", "raw/github_doc-docs-unsloth-q4-md.md", "raw/github_doc-docs-unsloth-q6-md.md", "raw/github_doc-docs-models-md.md", "raw/github_doc-docs-source-install-md.md"] --- # Quants and the Unsloth Q4/Q6 Packs ## Definition A quant, in these docs, is one file of the same model stored at a different number of bits. For Qwen3.8-Flash-Next the routed experts (512 per layer, 10 used per token) are where files differ. This page covers Unsloth's five files of the model (`unsloth/Qwen3.8-Flash-Next-GGUF`, revision `38bb39e`): UD-IQ4_XS, UD-Q4_K_XL, UD-Q5_K_XL, UD-Q6_K_XL and Q8_0, plus plain Q4_0 files. They keep experts at more bits than the ISTA-DASLab sizes ([[concepts/choosing-a-model]]), so they need more RAM. Other providers' packs are in the XL edition page "Alternative Packs: Gyro, NVFP4, Swift 1.5 and OrcaRouter"; a side-by-side is in [[syntheses/model-and-quant-comparison]]. ## How It Works ### What each file stores | File | Download | Routed gate / up | Routed down | Routed experts | | --- | ---: | --- | --- | ---: | | UD-IQ4_XS | 93.7 GB | IQ3_S (IQ4_XS in layer 2) | IQ4_NL (Q8_0 in layers 2, 4, 30, 46, 47) | 55.4 GiB | | UD-Q4_K_XL | 111.3 GB | Q4_K (Q5_K in layer 2) | Q5_1 (Q8_0 in layers 2, 4, 30, 46, 47) | 71.7 GiB | | UD-Q5_K_XL | 158.3 GB | Q5_K (Q6_K in layer 2) | Q8_0 | 91.6 GiB | | UD-Q6_K_XL | 169.2 GB | Q6_K (Q8_0 in layer 2) | Q8_0 | 101.7 GiB | | Q8_0 | 188.2 GB | Q8_0 | Q8_0 | 119.5 GiB | Everything else is the same in all five: attention, SSM, hyper-connection and shared-expert projections, the PLE key/value and the token embedding are Q8_0; the output head is Q8_0 (Q6_K in UD-IQ4_XS). The PLE table is IQ4_NL (26.8 GiB) in UD-IQ4_XS and UD-Q4_K_XL and Q8_0 (50.7 GiB) in the other three. UD-Q5_K_XL, UD-Q6_K_XL and Q8_0 share shards 2 (output head) and 3 (PLE table) byte for byte, so a PC with one of them can link those shards instead of downloading again. ### Setup for UD-Q4_K_XL (and UD-IQ4_XS) Start it from the installed Terminal: ```sh strata launch --family unsloth --model UD-Q4_K_XL ``` (`strata launch` also lists it as "Qwen3.8-Flash-Next (Unsloth)".) What setup does: - **Where the experts live.** Every expert goes into RAM when the 72 GiB plus 16 GiB more fit (about 88 GB of RAM). With less RAM, or on a unified-memory APU, setup keeps a RAM budget: the hottest experts in RAM, the rest read from the GGUF on the SSD. The menu says "fits" when the files (without the n-gram table) are no bigger than graphics memory and RAM together; otherwise "may run slower", and setup asks (default no). `--model UD-Q4_K_XL --yes` installs it anyway. - **The RAM budget** is RAM less 17 GB (`--resident-budget-gib 47` on 64 GB), at most all 71 GiB of experts. Earlier rule (0.2.16 and earlier): less 24 GB, 40 on 64 GB. From a 64K context up, where the KV cache moves to RAM, its size comes out of the budget. `--resident-budget-gib N` at setup sets another number. - **Two modes, two numbers (0.2.17).** The Terminal (`strata launch`, `strata serve`, Docker) and the app's "Full performance" use RAM less 17 GB. The app's "Leave 20% for my work" uses the earlier rule, RAM less 24 GB (40 on 64 GB; 24 on 48 GB, 8 on 32 GB), which setup writes as `"ui_budget_work_gib"`. A budget you set yourself is used in both modes. - **Download.** Four shards, 111,334,654,784 bytes, from the pinned revision, resumable; setup checks each size and SHA-256 and deletes a file with a wrong hash. - **Packing.** `--compat-bf16`, and never an `experts.bin` (`--low-ram` does not apply). - **Defaults written to the run config's `env`.** `STRATA_ROUTE_TAIL_SKIP=0` (tail skip off) in every mode since 0.2.17. `STRATA_MMQ_KQ` stays opt-in for UD-Q4_K_XL. Setup no longer writes `STRATA_HC_Q8`. - **Context and GPUs.** It recommends 8K on a GPU under 14 GB, because every GB of KV cache is a GB less of cached experts. NVIDIA or AMD; one GPU is the default in budget mode; setup asks, and `--gpus 0,1` takes the split in a source checkout (the installed Terminal uses `strata launch --gpu 0,1`). - **Pictures.** CPU reader below 24 GB of VRAM, GPU reader from 24 GB ([[concepts/image-input]]). UD-IQ4_XS uses the same rules (RAM less 17 GB, at most all 55 GiB of its experts, so about 72 GB of RAM or more holds them) and is the Unsloth family's first size in setup: ```sh strata launch --family unsloth --model UD-IQ4_XS ``` ### UD-Q5_K_XL, UD-Q6_K_XL and Q8_0 ```sh strata launch --family unsloth --model UD-Q6_K_XL ``` Setup keeps every expert in RAM from about 118 GB of RAM (UD-Q6_K_XL); below that it asks and keeps a RAM budget as for UD-Q4_K_XL. For UD-Q5_K_XL and UD-Q6_K_XL it writes `STRATA_MMQ_KQ=1` into the run config. UD-Q6_K_XL is six shards, 169,165,382,688 bytes (shard 1 metadata only, shard 2 the output head, shard 3 the 54.4 GB PLE table). Its Q6_K experts cost 210 bytes per 256 elements against Q4_K's 144, so decode is slower than UD-Q4_K_XL on the same hardware. Memory for all experts: UD-Q4_K_XL about 88 GB, UD-Q5_K_XL about 108 GB, UD-Q6_K_XL about 118 GB, Q8_0 about 136 GB (models guide). ### Kernels per backend (summary) The engine has CUDA, CPU-pool and HIP (AMD) kernels for Q4_K, Q5_K, Q6_K, Q5_1 and Q8_0 experts. On Intel (SYCL) the decode kernels for these formats are listed as "kernels built, not run with these files", and the prompt takes the FP16 path. The "FP16 path" dequantizes the prompt's experts to FP16 and uses the BLAS library, reading each expert as about 10 MB of FP16. `STRATA_MMQ_KQ=1` selects the MMQ prompt kernels; it is opt-in because it rounds products differently from the FP16 path. ## Key Parameters | Item | Value | Interface | | --- | --- | --- | | `--family unsloth --model ` | sizes UD-IQ4_XS, UD-Q4_K_XL, UD-Q5_K_XL, UD-Q6_K_XL, Q8_0 | Terminal | | `--resident-budget-gib N` | RAM budget in GiB; setup writes RAM less 17 | setup / run config `args` | | `STRATA_MMQ_KQ=1` | K-quant MMQ prompt kernels (opt-in) | run config `env` | | `STRATA_ROUTE_TAIL_SKIP=7` / `=0` | `7` turns the route tail skip on; `0` is the default | run config `env` | | `STRATA_HC_Q8=0` | restores the BF16 read of hyper-connection projections on NVIDIA | env | | `STRATA_RESIDENT_PIN=0` | pageable memory for the RAM budget; CPU computes every miss | env | | `STRATA_PROMPT_DIRECT=1` | Linux, opt-in: unbuffered reads of the prompt path's experts | env | | `--kv int8` | halves the KV cache's VRAM | engine arg | | `--compat-bf16` | required when packing these files by hand | `iq_pack.py` | ### Quality yardstick Measured on the AMD box (EPYC 7452, Radeon AI PRO R9700, HIP, engine at `0601072d`; 4,995 positions of code, docs, English, German/French/Japanese/Chinese and an agent transcript, teacher-forced, experts on the CPU), against Q8_0 (perplexity 4.052): | Quant | Same top token as Q8_0 | Mean KL | Perplexity | | --- | ---: | ---: | ---: | | UD-Q6_K_XL | 94.61% | 0.033 | 4.020 | | UD-Q5_K_XL | 94.55% | 0.038 | 4.024 | | UD-Q4_K_XL | 93.09% | 0.056 | 4.068 | | UD-IQ4_XS | 88.91% | 0.101 | 4.120 | | IQ3_S | 87.69% | 0.144 | 4.097 | | IQ3_XXS | 84.46% | 0.202 | 4.119 | | Q2_0 | 80.60% | 0.315 | 4.475 | The same file on another backend gives different answers: UD-Q4_K_XL on an RTX A4000 (CUDA, RAM-budget mode of a 62 GB PC) against the R9700 agrees on 94.5% of top tokens (KL 0.038), mostly near-ties. Against llama.cpp on the same UD-Q4_K_XL file (Strata 0.1.32-era engine, hardware not recorded on that page), argmax agreement was 99.0% on a code answer (400 positions) and 90.2 to 91.2% after a 16K prompt. ### Speed on the AMD box Measured on one R9700 (32 GB, capped at 225 W), EPYC 7452, every expert in RAM, `--expert-cache auto`, 40K context, 8-bit K/V, MTP drafts; prompt speed varies up to 2x between runs: | File | Short story | Code | Prompt 32K | | --- | ---: | ---: | ---: | | IQ3_S (comparison) | 75 | 95 | 1,555 | | UD-Q4_K_XL | 63-64 | 85-88 | 1,110-1,320 | | UD-Q5_K_XL | 57-60 | 81-83 | 810-1,260 | | UD-Q6_K_XL | 54 | 76 | 1,020 | | Q8_0 | 53-57 | 66-74 | 1,230-1,300 | (tokens/s.) The quants page measures decode at about 35-40% of the bandwidth bound for every file, IQ3_S included, and attributes the rest to the per-window latency of the small kernels and the draft. On NVIDIA with the RAM budget (RTX A4000 16 GB, Xeon E5-2643 v3, 62 GB, UD-Q4_K_XL, 39 GiB of experts in RAM, rest from NVMe at 2.1 GB/s): 14-20 tokens/s decode, 134-144 tokens/s on a 4K prompt, bound by the SSD. ### The RAM budget on a 64 GiB limit Measured with UD-Q4_K_XL on an RTX PRO 4500 Blackwell (8,171-slot expert cache) under a real 64 GiB memory limit: | Setup rule | N | SSD read, 65K prompt | Decode (mean of 5 kinds) | Free of 64 GiB | | --- | ---: | ---: | ---: | ---: | | RAM less 24 (0.2.16) | 40 | 97.7 GB | 57.7 tok/s | 16.6 GiB | | RAM less 17 | 47 | 37.0 GB | 84.2 tok/s | 9.3 GiB | | RAM less 12 | 52 | 0.9 GB | 83.4 to 88.6 tok/s | 6.6 GiB | A program that took 8 GiB after the engine started: N 47 and 40 ran on, N 52 was killed by the kernel. The engine reads free RAM at start and lowers an N that does not fit then, not later. On Windows it uses the smaller of available RAM and available commit; headroom is 4 GiB and margin 256 MiB. ## When To Use - 72 to 136 GB of RAM and quality first: UD-Q4_K_XL for the smallest Unsloth size, up to UD-Q6_K_XL or Q8_0 (the reference). - Less RAM: expect the RAM-budget mode and SSD reads; an NVMe SSD matters. - Plain Q4_0: a `llama-quantize` Q4_0 file runs after packing shard 1 with `--compat-bf16`. Tested: bartowski's `Qwen3.8-Flash-Next-Q4_0` (3 shards, 100.6 GB). Measured on one RTX 3060 12 GB, Xeon E5-2696 v4, 121 GiB RAM, Linux, CUDA 12.4 (Strata version not recorded): decode 24.0 to 28.0 tokens/s across four prompts (63 to 67,934 tokens) and prompt reading of 787 and 737 tokens/s on the 24K and 68K prompts. ## Risks & Pitfalls - Pack by hand from a source checkout: `terminal/.venv/bin/python terminal/tools/iq_pack.py --gguf --out packs/ud-q4_k_xl --compat-bf16`. Without `--compat-bf16` the packer refuses. Do not add `--experts-bin` (a 77 GB copy this mode does not need). Keep all shards in one folder under their names. - `--compat-bf16` rounds the file's 195 small Q8_0 projections to BF16. The UD-IQ4_XS section says this applies to every `--compat-bf16` pack: on a Strix Halo it put perplexity 6 to 9% above llama.cpp's on the same file (teacher-forced, short context; an AMD measurement). On NVIDIA the engine reads the file's Q8_0 values by default. - UD-IQ4_XS was run on a Strix Halo (AMD gfx1151, 128 GB unified): prompts about 820 tokens/s at 8K and 64K. It "has not been measured on NVIDIA". - Not validated for UD-Q4_K_XL: sampled decoding and long conversations. Other quantizations may lack kernels; the engine refuses an unsupported layer by name. - Route tail skip costs these files more than 2-3-bit packs (UD-Q4_K_XL KL 0.056 to 0.086 with it on, R9700); it is off by default since 0.2.17. - The doc's example config uses `--resident-budget-gib 40`, the older rule's number for 64 GB. - Setup statements on pictures differ in age: the quants page says setup turns pictures on for these files on an NVIDIA card of 16 GB or more and on Linux AMD (CPU encoder) where every expert stays in RAM; the models guide says pictures are on wherever a model can read them. Treat the guide as current ([[concepts/image-input]]). ## Related Concepts - [[concepts/choosing-a-model]], the XL edition page "Alternative Packs: Gyro, NVFP4, Swift 1.5 and OrcaRouter" - [[concepts/memory-modes]] for RAM budgets and elastic VRAM - the XL edition page "Speed Settings, CPU Workers and Measured Speeds" for opt-in switches - [[entities/strata]] ## Sources - `raw/github_doc-docs-quants-md.md`: file formats, kernel table, quality yardstick, speed and RAM-budget measurements. - `raw/github_doc-docs-unsloth-q4-md.md`: UD-Q4_K_XL and UD-IQ4_XS setup, shards, RAM budget rules, Q4_0 files. - `raw/github_doc-docs-unsloth-q6-md.md`: UD-Q6_K_XL (and Q5/Q8_0) setup, shards, kernels. - `raw/github_doc-docs-models-md.md`: Unsloth size table and RAM figures. - `raw/github_doc-docs-source-install-md.md`: `--gpus` (source checkout) against `strata launch --gpu`. --- title: "Safety and Privacy" type: concept tags: [safety, privacy, security, api-key, network, downloads, agent-modes] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-safety-md.md", "raw/github_doc-github-security-md.md"] --- # Safety and Privacy ## Definition The safety guide says what Strata (docs version 0.2.21) downloads, when it uses the internet, what stays on the PC and how downloads are checked. It says its statements come from reading the code of this version and names the files. The security policy covers reporting vulnerabilities and what the server exposes. Strata has not had an outside security audit yet (both documents say so). ## How It Works ### At a glance - Chats, prompts, files, pictures and models stay on the PC. They leave only if you add an outside model service, open the server to other devices or the internet, or the agent searches the web or opens a page. - There is no telemetry: no usage data, crash reports or analytics, and no account to sign in to. - Starting and running a model never downloads anything. Downloads and updates are steps you start. - The server listens on this PC only (`127.0.0.1`). Reaching it from another device needs an API key. - Once a model is downloaded, starting, loading, serving and chatting need no connection. - Updates come from a signed feed; model files have a fixed SHA-256 and size. - In its default mode the coding agent asks before it changes anything. Hardware readings (Monitor, `/metrics`, `/v1/telemetry`) are served from your own PC and need your API key when you set one. Crash logs are written to your disk (on Windows `%LOCALAPPDATA%\Strata\logs`); nothing sends them. **Save logs** (Settings, Engine, Diagnostics) writes a text file to Downloads. The coding agent is a separate component (the DeepSeek Harness, MIT) with its own telemetry switch, which Strata starts off. ### When Strata uses the internet | What | Goes to | When | | --- | --- | --- | | Model files, picture reader, MTP speed-up layer | huggingface.co, or the mirror in `HF_ENDPOINT` | When you install a model | | Same files from ModelScope | modelscope.cn | Only with `--source modelscope`; never switched to by itself | | Engine, Terminal and Control updates | Signed feed on GitHub Releases of Niko1221/Strata | Installing an engine, **Update engine**, **Check for updates**, or `strata update`. Opening **Settings, Engine** does not connect | | App updates | `latest.json` on the same releases (Tauri updater) | **Check for updates** or **Update Strata** | | llama.cpp source (fixed commit) | github.com/ggml-org/llama.cpp | During a model install if not present; only its model-preparation scripts are used | | Web search and pages | DuckDuckGo (Bing second), or Exa, Perplexity or DeepSeek with a saved key; any opened page goes to its site | When the agent uses the tool; Manual mode asks once per chat | | Outside model services | The service you add (OpenAI, Anthropic, OpenRouter, a server on your network, others) | Only for chats with that model after you add its key | | Cloudflare tunnel | Cloudflare via `cloudflared` | Only while the tunnel is on; Strata makes an API key unless you pass `--no-api-key` (then it warns anyone with the address can use your model) | | Tailscale, local network | Not Strata's traffic; it only reads Tailscale's status | Only if chosen in `strata launch` | | Image link in an API request | The link's address | Only when a client sends an `http(s)` image link; `--offline` refuses it | | Remote MCP tool servers | Address in the run config | Only when you add one | | Website in the preview pane | That site | Only when typed into **Open a website** | | Share to X or Reddit | Browser opens x.com or reddit.com | Only on click; the screenshot is saved to disk, not uploaded | Details from the guide: - An engine is never updated by itself. The Terminal fetches an engine by itself only when none is installed (and `strata launch` asks first when the installed one is older than the model needs). `strata launch`, setup and model downloads never fetch, replace or remove an installed engine. One quiet exception, the launch monitor only: once a day it reads the signed feed (a few KB, no engine, 5 second limit) so it can say a new engine is available; `STRATA_UPDATE_CHECK=0` turns it off. - `strata serve` and the app's load button fetch nothing: the app sets `STRATA_PACKAGED=1` and `STRATA_NO_ACQUIRE=1` and the downloaders refuse to run under them. - The engine itself has no network code, and the app's pages load no fonts, scripts or trackers from the internet. - Building from source reaches more places (python.org or winget, PyPI, NVIDIA CUDA libraries and apt packages, AMD ROCm wheels, LunarG Vulkan SDK, llama.cpp and stable-diffusion.cpp source on GitHub), only while setup runs ([[concepts/source-install]]). ### What stays on the PC - Chats and files are handled by the engine on your PC; the app keeps chats on your disk. - API keys you save for outside services are kept in a file only your user account can open; they are not encrypted. - The app fixes the bind address with `STRATA_BIND=127.0.0.1`; the engine server's default is the same (`--host`). - Sharing needs a key. "Share with other devices" and the Cloudflare tunnel will not start without one, and the shared port answers only `/v1/models`, `/v1/chat/completions` and `/v1/messages`. `strata launch` makes a key when you pick anything wider than this computer. The bare engine server only prints a warning if opened to your network without a key. - With an outside model, the conversation (and the instructions of skills you switched on) go to that service. Programs you connect (Claude Code, Codex and so on) have their own network behavior ([[concepts/connecting-coding-tools]]). ### How downloads are checked 1. **Engine, Terminal, Control updates:** `strata-feed.json` and `strata-feed.json.sig` (Ed25519). Your PC checks the signature, expiry and that the feed is not older than the last accepted. Each engine package is checked against its SHA-256 and signed manifest, then every file's hash, then fit; the new engine is test-started before switching; on failure you keep the old engine. Details: the XL edition page "Updating and Packaging". 2. **The app:** signed with a separate minisign key (Tauri); the updater refuses a non-matching signature. `strata update --app` checks the same signature. 3. **Model files:** every file `setup.py` downloads has a fixed SHA-256 and size in the code (covering the main Qwen3.8-Flash-Next files Q2_0, IQ2_XS, IQ3_XXS and IQ3_S, Swift 1.5, the Coder, Unsloth sizes, Gyro, Qwen3.6, NVFP4, the picture reader, image models and the MTP layer). A mismatching file is deleted and the install stops; a wrong server-side size stops it before download. If the pinned version of a file is gone from Hugging Face, the install stops and says to update Strata. A tester can set `STRATA_ALLOW_UNPINNED=1` to take the current file without the check (off by default). Starting a model does not check its files; rerunning setup does not rehash a model you have. ModelScope files are checked against the same SHA-256 (ModelScope serves a repository's current files, so a changed file fails the check); a file without a pin is checked against the hash ModelScope publishes, and setup warns when it publishes none. 4. **Source route engine:** `setup.py` checks the engine zip against the SHA-256 GitHub's API publishes; if GitHub cannot say, setup warns and installs anyway. `STRATA_SKIP_SHA256=1` switches the check off (never default). 5. **One-line install:** checks the Terminal archive's SHA-256 and the signed feed with the Terminal it just unpacked ([[concepts/install-desktop-and-terminal]]). 6. **Code signing:** the Windows installer is not code-signed yet, so Windows shows "Windows protected your PC". Mac builds are signed and notarised on the maintainer's Mac; an un-notarised Mac build shows macOS's "damaged" warning. What the checks do not cover: they catch a damaged or swapped download and a feed not signed with the release key. They cannot protect you if someone who can publish a release or holds the signing key publishes something harmful. ### The coding agent's modes The app's chats run through an agent that can read files, run commands, edit files, search the web and use tools you connect. | Mode | Behavior | | --- | --- | | **Manual** (default) | Anything that changes something asks first with an **Approve** / **Deny** card | | **Plan** | Nothing can change; change requests are refused with no card; connected tools are refused | | **Bypass** | Full access, no questions | In Manual: writing or editing files, any command not on a short look-only list, and every connected tool ask. Reading files, listing and searching folders, and look-only commands such as `ls`, `cat`, `git status` do not ask; options such as `sort -o FILE`, `rg --pre PROGRAM`, `tail -f`, `date -s`, `git grep -O`, redirects, chains (`;`, `&&`) and variables ask. Web search and opening pages ask once per chat; **Approve** covers the rest of that chat, and Plan and Bypass do not ask. The chat folder is only where the agent starts: approved actions can touch anything your user account can. The agent's shell does not get environment variables whose names contain KEY, TOKEN, SECRET, PASSWORD, CREDENTIAL or AUTH. Scheduled tasks run in Plan mode by default and an approval request is answered "no". **Stop** ends a run; closing a tab does not. The agent runs on a loopback address with a random token. ### What the server exposes (SECURITY.md) - Listens on `127.0.0.1` by default; `--host 0.0.0.0` (or `"host"` in `strata-.json`) opens it to your network and the server warns when no API key is set. - `"api_key"` in the run config (or `STRATA_API_KEY`) is required on `/v1/*` and on `/status`, `/metrics`, `/metrics/prometheus`, `/settings`, `/mcp`, `/props`, `/slots`, `/api/requests`, `/config` and every `POST`; compared in constant time. - Host check (labelled 0.1.38 in SECURITY.md, which does not say which component's number that is): without a key only requests whose `Host` is a known name are answered; others get 403; `"allowed_hosts"` adds names. Origin check (also labelled 0.1.38): without a key, a browser `POST` to `/v1/*` from another site gets 403 unless the origin is Strata's own page, `localhost`, an allowed host, or in `"trusted_origins"` / `"cors_origins"`. CORS is off unless `"cors_origins"` lists origins, and then only for `/v1/*`. - MCP tools are opt-in and run with your user's rights; the model decides when to call them ([[concepts/mcp-server]]). - The request monitor (`/api-monitor`) is off unless `"api_monitor": true`. Regardless, the server keeps its last few prompts and answers in process memory to encode the next turn faster; no endpoint shows them and they vanish on stop. - Desktop host: listens on `127.0.0.1` (port 8791 unless changed); a browser `Origin` from another site to `/api/` gets 403. The app and Terminal share an owner channel: a private Unix socket on macOS and Linux; on Windows a loopback TCP listener that answers only requests with a 256-bit token, which the policy calls a weaker guarantee than a socket other users cannot open. ## Key Parameters | Setting | Effect | | --- | --- | | `--host 0.0.0.0` / `"host"` | Opens the engine server to the network (set a key first) | | `STRATA_API_KEY` / `"api_key"` | Key required on `/v1/*` and state endpoints | | `--no-api-key` | Tunnel without a key; Strata warns | | `"allowed_hosts"`, `"trusted_origins"`, `"cors_origins"` | Host/origin allowances | | `"api_monitor": true` | Enables request monitor | | `--offline` | Refuses `http(s)` image links in requests | | `--source modelscope` | Downloads from ModelScope | | `HF_ENDPOINT` | Hugging Face mirror | | `STRATA_UPDATE_CHECK=0` | Turns off the monitor's daily feed read | | `STRATA_ALLOW_UNPINNED=1`, `STRATA_SKIP_SHA256=1` | Disable download checks (tester/off by default) | ## When To Use - Answering "does Strata phone home / is it safe to share on my network". - Before exposing the server: set an API key, keep `127.0.0.1` unless asked. Docker uses an always-on key ([[concepts/docker]]). For key use in requests see [[concepts/api-reference]]. - To report a vulnerability: use GitHub private vulnerability reporting (the repository's **Security** tab, **Report a vulnerability**), saying what you found, how to reproduce it (request, config keys, Strata version) and what an attacker gains. Ordinary hardening ideas can be an issue (#544 collects audit findings) or a pull request. Supported: the latest release; fixes go into the next release. ## Risks & Pitfalls - **Trusting `curl | sh` and `irm | iex`:** the script fetches the archive named in `install-manifest.txt`, checks its SHA-256, unpacks into your home folder, checks the signed feed with the Terminal it just unpacked (removing it if that fails) and puts `strata` on PATH. The checksum comes from the same release as the archive and the public key arrives inside it, so for the first install all trust rests on HTTPS and the `Niko1221/Strata` release itself. The checks do not protect you if the release has been replaced by someone who controls it. Later updates are checked against the key already on your PC. To lower risk, save and read the script (`curl -fsSLO --connect-timeout 15 --max-time 120 https://github.com/Niko1221/Strata/releases/latest/download/install.sh`) and run it from the file, or install the desktop app or build from source. - Sharing beyond localhost without a strong key exposes the model; Bypass mode and approved Manual actions run with your account's rights. - Saved outside-service API keys are not encrypted. Redact credentials from shared logs. - Each connection shows the other side your IP address and the file you asked for. - Windows may warn about the unsigned installer; a non-notarised Mac build shows a "damaged" warning (the XL edition page "Apple Silicon Mac (Metal)"). - The safety guide describes the code of this version only; it does not describe older releases. ## Related Concepts - [[concepts/install-desktop-and-terminal]] - what the installers do - the XL edition page "Updating and Packaging" - signed feed details - [[concepts/docker]] - API key rules in containers - [[concepts/api-reference]] - keys and endpoints - [[concepts/mcp-server]] - MCP tools - the XL edition page "The Desktop App (Host, Agent Bridge, Repository Layout)" - the agent and its modes ## Sources - raw/github_doc-docs-safety-md.md - internet use table, local data, download checks, agent modes - raw/github_doc-github-security-md.md - reporting policy, server exposure, owner channel, trust in one-line installs --- title: "Engine Settings Reference" type: concept tags: [settings, environment-variables, strata-env, engine, opt-in, reference] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-settings-md.md", "raw/github_doc-docs-terminal-launch-md.md"] --- # Engine Settings Reference ## Definition The engine reads its settings from environment variables whose names start with `STRATA_`. The Terminal and the app choose what your hardware needs, so most people never set one. The upstream settings page (`docs/SETTINGS.md`, generated from `terminal/data/settings-register.json` by `tools/settings_register.py --docs`) lists the ones meant for people. Settings meant only for measuring and debugging are kept in the register file and are not on that page. The page has two lists: - **Switches you can turn on (338 entries):** "Off unless you set them." - **Switches that go back to earlier behaviour (123 entries):** behaviours that are "on by default"; setting the switch returns the earlier behaviour. The register's notes say which version made each one the default. Interface: these are engine environment variables. The installed Terminal accepts them through `strata launch --set NAME=value`, which puts the setting in the model's run configuration. Docker, source checkouts and raw engine commands use the environment itself ([[concepts/docker]], [[concepts/source-install]]). ## How It Works Set a setting like any environment variable, for example `STRATA_KVA=1`. In the Terminal use `strata launch --set STRATA_PIN_BY_NEED=1 --preset Office --no-tui`, or the Advanced screen of `strata launch`, which shows each engine setting with its default, tuned value and your value and warns (does not refuse) on names it does not know. Layer precedence for launch values is explained in [[concepts/terminal-launch]]. Per-setting defaults: the page states defaults only at the table level (first table off, second table on). It gives no individual numeric default for any entry, and a "Value" of `number` or `text` says only the kind of value. Look in the "Described in" document for meaning and valid values. Server-level settings (sampling, idle unload and similar) are a different set: the keys of the web page's Settings view, which `run-defaults.json` can pre-set, listed in [[concepts/terminal-launch]]. They are not `STRATA_*` engine variables. ## Key Parameters The tables below are a selection, listed as the upstream page states them. "Applies to" is the page's wording. The two tables together have 461 entries (338 + 123); this page leaves out the remainder. ### Switches you can turn on (off unless set) | Setting | Value | Applies to | Described in | | --- | --- | --- | --- | | `STRATA_KVA` | on / off | NVIDIA and AMD | KVA.md, release-notes-0.2.7.md | | `STRATA_KVA_ANY_MODEL`, `STRATA_KVA_CAPTURE`, `STRATA_KVA_CAPTURE_FP32`, `STRATA_KVA_MODE`, `STRATA_KVA_ONLY`, `STRATA_KVA_ORACLE`, `STRATA_KVA_SKIP` | on / off | NVIDIA and AMD | KVA.md | | `STRATA_KVA_GDN_NORM`, `STRATA_KVA_MIN_PROMPT`, `STRATA_KVA_SUFFIX` | number | NVIDIA and AMD | KVA.md | | `STRATA_PIN_BY_NEED` | on / off | NVIDIA and AMD | DETAILS.md, DOCKER.md, TERMINAL_LAUNCH.md | | `STRATA_PIN_GUARD` | number | NVIDIA and AMD | TROUBLESHOOTING.md | | `STRATA_PIN_RESERVE_GIB` | number | NVIDIA and AMD | TROUBLESHOOTING.md | | `STRATA_RESIDENT_HEADROOM_GIB` | number | NVIDIA and AMD, Intel Arc | AMD_HIP.md, DETAILS.md, TROUBLESHOOTING.md | | `STRATA_NO_ARENA_THP` | on / off | NVIDIA and AMD, Intel Arc | TROUBLESHOOTING.md, a gfx1103 community result | | `STRATA_UNBUFFERED_LOAD` | on / off | NVIDIA and AMD, Intel Arc | QUANTS.md, TROUBLESHOOTING.md, a community RTX 5090 result | | `STRATA_POOL_CORES` | on / off | NVIDIA and AMD, Intel Arc | DETAILS.md, release-notes-0.2.2.md | | `STRATA_CACHE_MESSAGE_BOUNDARY` | number | NVIDIA and AMD, Intel Arc | MESSAGE_BOUNDARY_CACHE.md, PROMPT_CACHE_TAIL.md | | `STRATA_CKPT_REREAD` | on / off | NVIDIA and AMD, Intel Arc | KVA.md, PROMPT_CACHE_TAIL.md | | `STRATA_KV_GROW` | on / off | NVIDIA and AMD, Intel Arc | DETAILS.md | | `STRATA_KV_PREFETCH` | number | NVIDIA and AMD, Intel Arc | KV_PREFETCH.md | | `STRATA_KV_ROT` | on / off | NVIDIA and AMD, Intel Arc | DETAILS.md, SPLIT_SERVE.md | | `STRATA_STATE_HASH` | on / off | NVIDIA and AMD, Intel Arc | SPLIT_SERVE.md | | `STRATA_PRIMARY_DEVICE` | number | NVIDIA and AMD | SECOND_GPU.md | | `STRATA_PEER_NO_P2P` | number | NVIDIA and AMD | SECOND_GPU.md | | `STRATA_PREFILL_HELP`, `STRATA_PREFILL_HELP_FRAC` | number | NVIDIA and AMD, Intel Arc | MULTI_GPU.md (and BATCHING.md, GYRO.md for the first) | | `STRATA_PIPELINE_AUTO` | text | NVIDIA and AMD, Intel Arc | MULTI_GPU.md | | `STRATA_PIPELINE_DEBUG` | on / off | NVIDIA and AMD, Intel Arc | MULTI_GPU.md | | `STRATA_SPLIT_UNIFORM` | on / off | NVIDIA and AMD | MULTI_GPU.md | | `STRATA_SPLIT_WAIT_MS` | number | NVIDIA and AMD | MULTI_GPU.md | | `STRATA_SPLIT_OVERLAP` | number | NVIDIA and AMD | MULTI_GPU.md | | `STRATA_BATCH_MTP` | on / off | NVIDIA and AMD, Intel Arc | BATCHING.md | | `STRATA_BATCH_DECODE_SHARE` | number | NVIDIA and AMD, Intel Arc | BATCHING.md | | `STRATA_PARTIAL_PIN`, `STRATA_PARTIAL_PIN_GIB` | number | NVIDIA and AMD, Intel Arc | UNSLOTH_Q4.md | | `STRATA_FETCH_THREADS` | number | NVIDIA and AMD, Intel Arc | UNSLOTH_Q4.md | | `STRATA_RAM_KEEP_GIB` | number | NVIDIA and AMD | DETAILS.md, UNSLOTH_Q4.md | | `STRATA_UMA_HEADROOM_GIB` | number | NVIDIA and AMD, Intel Arc | INTEL.md, INTEL_ARC.md, STRIX_HALO.md | | `STRATA_PREFILL_BORROW` | on / off | NVIDIA, AMD | STRIX_HALO.md, STRIX_HALO_WINDOWS.md | | `STRATA_PF_SWITCH_MIN_T` | number | NVIDIA and AMD, Intel Arc | AMD_HIP.md, STRIX_HALO.md | | `STRATA_AMD_COMMUNITY_TUNING` | on / off | NVIDIA and AMD | AMD_HIP.md | | `STRATA_HIPBLASLT_TUNING` | on / off | AMD, Intel Arc | AMD_HIP.md, AMD_HIP_PERFORMANCE.md, RADEON_780M.md | | `STRATA_ROCBLAS_TUNING` | on / off | AMD | AMD_HIP.md | | `STRATA_WDDM_BUDGET` | number | AMD, Intel Arc | AMD_HIP.md | | `STRATA_MIRROR_MIB`, `STRATA_LEND_MIRROR` (text) | number | Intel Arc | INTEL.md, INTEL_ARC.md | | `STRATA_SPLIT_HEADROOM`, `STRATA_SPLIT_HEADROOM_TOL` | number | Intel Arc | INTEL_ARC.md | | `STRATA_VERIFY_NO_HOST` | on / off | Intel Arc | A770_SPEED_SPEC.md, INTEL.md, INTEL_ARC.md | | `STRATA_SYCL_NO_XMX` | on / off | Intel Arc | INTEL.md | | `STRATA_PF_I8` | on / off | Intel Arc | INTEL_INT8_EXPERTS.md | | `STRATA_METAL_ARENA_GB`, `STRATA_METAL_KEEP_FREE_GB`, `STRATA_METAL_LEAVE_SHARE`, `STRATA_METAL_WIRE_ARENA`, `STRATA_METAL_CONTIG` | number | Mac | MAC.md | | `STRATA_METAL_PROMPT`, `STRATA_METAL_STREAM`, `STRATA_METAL_KEEP_HOST_WEIGHTS`, `STRATA_METAL_MTP_CHAIN`, `STRATA_METAL_PROMPT_EXPERTS`, `STRATA_METAL_GYRO_TILES` | on / off | Mac | MAC.md | | `STRATA_METAL_PROMPT_CHUNK` | number | Mac | MAC.md | | `STRATA_SM121_PERF` | number | NVIDIA and AMD | DETAILS.md, DGX_SPARK_LINUX.md | | `STRATA_DUMP_FIRST_LOGITS` | on / off | NVIDIA and AMD, Intel Arc | DGX_SPARK_LINUX.md | | `STRATA_ATTN_PRE75` | on / off | NVIDIA and AMD, Intel Arc | NVIDIA_V100.md, OLDER_GPUS.md, an RDNA2 pre75-attention result | | `STRATA_SELECT_LONG` | on / off | NVIDIA and AMD | DETAILS.md, NVIDIA_V100.md, OLDER_GPUS.md | | `STRATA_SM70_TABLE` | number | NVIDIA and AMD | COMMUNITY_BENCHMARKS.md, DETAILS.md, NVIDIA_V100.md | | `STRATA_EXP_MODE` | number | NVIDIA and AMD, Intel Arc | AMD_HIP.md, OLDER_GPUS.md, a V100 decode-kernels result | | `STRATA_EXPERT_V2K` | on / off | NVIDIA and AMD, Intel Arc | QUANTS.md, QWEN36.md | | `STRATA_Q36_FIXED_SLOTS`, `STRATA_Q36_VERIFY` | on / off | NVIDIA and AMD | QWEN36.md | | `STRATA_Q36_READ_WINDOWS` | number | NVIDIA and AMD | QWEN36.md | | `STRATA_IQ_STAGE_GRID` | on / off | NVIDIA and AMD, Intel Arc | GYRO.md, release-notes-0.2.2.md | | `STRATA_NO_TQ_KERNELS` | number | CPU | GYRO.md | | `STRATA_TQ_ISA` | on / off | CPU | GYRO.md | | `STRATA_MEMORY_LIMIT_MIB` | on / off | NVIDIA and AMD | DETAILS.md | | `STRATA_VRAM_FREE` | on / off | NVIDIA and AMD | DETAILS.md, release-notes-0.2.7.md | | `STRATA_WATCHDOG_S` | text | NVIDIA and AMD, Intel Arc | DETAILS.md | ### Switches that go back to earlier behaviour (on by default) All of these are on by default; setting the switch returns the earlier behaviour. The "named in the engine since" column is the page's own. | Setting | Value | Applies to | Named since | Described in | | --- | --- | --- | --- | --- | | `STRATA_DEFAULTS` | on / off | NVIDIA and AMD | v0.2.16 | AMD_HIP.md, BATCHING.md, DETAILS.md | | `STRATA_RESIDENT_PIN` | on / off | NVIDIA and AMD, Intel Arc | v0.2.16 | DETAILS.md, TROUBLESHOOTING.md, UNSLOTH_Q4.md | | `STRATA_KV_HOST_DMA` | on / off | NVIDIA and AMD, Intel Arc | v0.2.16 | TROUBLESHOOTING.md | | `STRATA_TOPK_STREAM` | on / off | NVIDIA and AMD, Intel Arc | v0.2.16 | AMD_HIP.md, DETAILS.md, TROUBLESHOOTING.md | | `STRATA_GFX1151_DEFAULTS` | on / off | NVIDIA and AMD | v0.2.16 | STRIX_HALO.md, STRIX_HALO_WINDOWS.md | | `STRATA_GFX1151_CHUNK` | text | AMD | v0.2.16 | release-notes-0.2.3.md, STRIX_HALO.md, STRIX_HALO_WINDOWS.md | | `STRATA_GFX12_DEFAULTS` | on / off | NVIDIA and AMD | v0.2.16 | DETAILS.md | | `STRATA_GFX11_DEFAULTS`, `STRATA_GFX11_WMMA_DEFAULTS` | on / off | NVIDIA and AMD | v0.2.19 | none listed | | `STRATA_IGPU_DEFAULTS`, `STRATA_IGPU_PROMPT_SET` | on / off | NVIDIA and AMD | v0.2.16 | AMD_HIP.md (and RADEON_780M.md for the second) | | `STRATA_UMA` | on / off | Intel Arc | v0.2.20 | INTEL.md, INTEL_ARC.md | | `STRATA_UMA_RESERVE_GIB` | on / off | NVIDIA and AMD | v0.2.16 | release-notes-0.2.2.md, STRIX_HALO.md | | `STRATA_NUMA_POOL`, `STRATA_NUMA_SPLIT` | on / off | NVIDIA and AMD, CPU | v0.2.16 | DETAILS.md, release-notes-0.2.2.md | | `STRATA_SPLIT_OWN` | on / off | NVIDIA and AMD, Intel Arc | v0.2.16 | MULTI_GPU.md | | `STRATA_SPLIT_CHUNK16K` | number | NVIDIA and AMD | v0.2.16 | MULTI_GPU.md | | `STRATA_BATCH_MTP_SERIAL` | on / off | NVIDIA and AMD | v0.2.16 | BATCHING.md | | `STRATA_BATCH_GROUPS_NV_SERIAL` | text | NVIDIA and AMD | v0.2.16 | BATCHING.md, release-notes-0.2.1.md, release-notes-0.2.7.md | | `STRATA_METAL_MTP_Q8` | on / off | Mac | v0.2.16 | MAC.md | | `STRATA_TQ_STAGE` | on / off | NVIDIA and AMD | v0.2.16 | GYRO.md, release-notes-0.2.2.md | | `STRATA_PROMPT_ATTN_OLD` | on / off | NVIDIA and AMD, Intel Arc | v0.2.16 | NVIDIA_V100.md, OLDER_GPUS.md | | `STRATA_SM70_PERF` | text | NVIDIA and AMD | v0.2.20 | DETAILS.md, NVIDIA_V100.md | | `STRATA_SM60_TABLE` | number | NVIDIA and AMD | v0.2.16 | OLDER_GPUS.md | | `STRATA_SYCL_BMG_ROUTED_EXPERTS` | on / off | Intel Arc | v0.2.20 | INTEL.md | The `STRATA_INK_*` family (second table) lists "-" for "named since" and for most "described in" entries. `STRATA_HIP_CPU_SPLIT` and `STRATA_SPLIT_FEWER_PCT` also show "-" for "named since". ## When To Use - Only when a guide (troubleshooting, a hardware page, KVA) tells you to set a named variable, or a bug report narrows a regression to a default that you want to revert. - To try an opt-in feature such as KVA: see the XL edition page "KVA: Approximate Prompt Processing" for what it is and its experimental status. - To restore an earlier default after an upgrade: look for the setting in the second table. ## Risks & Pitfalls - A listed setting is not a recommendation. The page says most people never set one. - "Value: on / off" comes from the generated register; the page does not state accepted spellings. The doc's own example uses `STRATA_KVA=1`, and the launch guide uses `STRATA_PIN_BY_NEED=1`. - "Applies to" lists vendors as written, including "NVIDIA and AMD" for settings with an AMD-named prefix such as `STRATA_AMD_COMMUNITY_TUNING`. Do not assume a setting does anything on a backend not listed, and do not assume it is effective on every listed GPU. - Some entries have no description document ("-"). Do not guess their meaning from the name. - The page is generated: it says "Do not edit by hand; change the register." The entry counts (338 and 123) are the page's own headings and will change as the register changes. - The `--set` form checks names against the engine's own list; unknown names produce a warning, not a refusal, so a typo can pass silently as a warning only. ## Related Concepts [[concepts/terminal-launch]], the XL edition page "Speed Settings, CPU Workers and Measured Speeds", [[concepts/memory-modes]], the XL edition page "KVA: Approximate Prompt Processing", [[concepts/troubleshooting]], the XL edition page "Experimental Engine Internals and Research Switches". ## Sources - raw/github_doc-docs-settings-md.md: both setting tables, value kinds, applies-to, described-in and "named since" columns. - raw/github_doc-docs-terminal-launch-md.md: `strata launch --set`, `STRATA_PIN_BY_NEED=1` example, Settings-view keys. --- title: "Building and Running from a Source Checkout" type: concept tags: [source-install, setup-sh, start-here-bat, build, developers, windows, linux] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-source-install-md.md", "raw/github_doc-setup-sh.md", "raw/github_doc-start-here-bat.md", "raw/github_doc-update-bat.md"] --- # Building and Running from a Source Checkout ## Definition A source checkout is a cloned or extracted copy of the Strata repository. The guide says it is for developers who work on Strata's code or maintain a source-based installation. To just use Strata (docs version 0.2.21), install the desktop app or the Terminal instead ([[concepts/install-desktop-and-terminal]]). Installed apps do not use `START-HERE.bat`. This is a separate command interface. Flags for a source checkout (`--gpus`, `--vision yes|no`, numeric `--context`) are not the installed Terminal's flags (`strata launch --gpu`, `--vision on|off`). Keep them apart, and keep both apart from raw engine options ([[concepts/terminal-launch]]). ## How It Works The checkout contains `START-HERE.bat` (Windows), `UPDATE.bat` (Windows) and `setup.sh` (Linux and Mac). `SETUP.bat` and `update.sh` went away with the 0.2.16 folder layout: `START-HERE.bat --setup` and `./setup.sh --setup` do what `SETUP.bat` did, and `START-HERE.bat --update` and `./setup.sh --update` do what `update.sh` did. Run the scripts from the source folder. They may install dependencies, prepare model files and acquire or build an engine, so check model requirements before downloading ([[concepts/choosing-a-model]]). | I use | Run in the source folder | | --- | --- | | Windows | `START-HERE.bat` | | Linux | `./setup.sh` | | Mac (Apple Silicon) | `./setup.sh` | | A source build to test a change | `./setup.sh --build --no-start` | | An update | `UPDATE.bat` or `./setup.sh --update` | ### What the wrappers do (from the scripts) - **`START-HERE.bat`** (comments: the first run installs everything and starts the model; later runs just start it; needs only an NVIDIA or AMD graphics driver). It sets `PYTHONUTF8=1`, changes into the `terminal\` folder (0.2.16 layout; an older clone's `.venv` is moved to `terminal\.venv` once), and uses a bundled `python\python.exe` if present. Otherwise it looks for Python 3.10 or newer (64-bit) through `py -3`, `python`, then per-user folders; if none, it installs Python 3.12 for the user account with `winget` or, failing that, the python.org 3.12.10 installer, with no admin needed. It creates a private `.venv` in the folder and runs `setup.py` with your arguments. If Python cannot be installed, it asks you to install 64-bit Python 3.12 and run it again. - **`setup.sh`** (Linux and Mac): changes into `terminal/`, moves an older clone's `.venv` there once, and uses a bundled `python/bin/python3` when present. Otherwise it needs Python 3.10+ with `venv` and pip. If missing it installs Python through `apt-get`, `dnf` or `pacman` (asks for sudo). On NixOS, or with `STRATA_UV=1`, and `uv` installed, it makes the venv with uv. On macOS (system Python is 3.9) it downloads a pinned standalone Python 3.12 (25 MB) into `.python`, checks its SHA-256, and needs no sudo or Homebrew. It then runs `setup.py` in a private `.venv`. - **`UPDATE.bat`** is kept so the command people know still works and so an older clone's own `UPDATE.bat` can finish. It runs `START-HERE.bat --update` with your arguments. ### From source: Windows 1. Clone the repository or extract its source archive. 2. Run `START-HERE.bat` in the folder. 3. Choose a supported model, storage folder and settings; keep the window open while setup works. Explicit ISTA-DASLab Flash-Next pack from Command Prompt: `START-HERE.bat --family qwen --model Q2_0`. Q2_0 is an example, not a universal minimum-memory option. In PowerShell prefix with `.\`. To open setup again to add a model or change settings, use `START-HERE.bat --setup` (the guide's Windows steps still say `SETUP.bat` here, although its own introduction says that file went away with the 0.2.16 layout). A model can take several minutes to load. Run again over an installed model, setup pre-selects the installed size, marks it "(installed)", and `--yes` takes it. When no ready-made engine fits the PC, setup compiles one. That needs Visual Studio 2022 Build Tools with the C++ workload (Visual Studio 2019 is too old; the sources are C++20). With a CUDA toolkit, CUDA 13.0 to 13.2 accept Visual Studio 2022 only, and Visual Studio 2026 works from CUDA 13.3. The CPU image encoder alone (no CUDA toolkit) builds with MSVC and takes any Visual Studio that has the C++ tools. If setup cannot find an install, name the file first, for example `set STRATA_VCVARS=C:\Program Files\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat`; a wrong path is treated as no build tools at all. ### From source: Linux ```bash ./setup.sh ``` On Debian and Ubuntu the wrapper can offer to install missing system packages through `sudo apt`; other distributions need the equivalent installed first. Python dependencies use the checkout's `.venv`. NVIDIA source builds need the CUDA toolkit; AMD builds need HIP/ROCm. Nix/NixOS: `nix develop -c ./setup.sh`. Build from git to try a pull request or change code: ```bash git clone https://github.com/Niko1221/Strata.git cd Strata ./setup.sh --build --no-start ``` `--build` requests a source engine rather than a ready-made one. `--no-start` prevents serving, but this is still setup and can download and prepare a model. A released engine cannot validate changes to your local C++ files; verify the executable path. Direct NVIDIA build (compiler and CUDA toolkit installed): ```bash cmake -S engine -B build -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=native cmake --build build --target strata -j8 ``` `native` builds for the GPUs in this PC. Name the card for another one: `75` (RTX 20), `86` (RTX 30), `89` (RTX 40), `120` (RTX 50), or a list such as `"86;120"`. Without the option the build is for RTX 50 only and the configure step says so. For HIP, SYCL and Metal builds see the backend guides (the XL edition page "AMD Radeon on the HIP Backend", the XL edition page "Intel Arc GPUs (SYCL engine)", the XL edition page "Apple Silicon Mac (Metal)"). Terminal monitor from a checkout: ```bash .venv/bin/pip install -r terminal/requirements-monitor.txt STRATA_PYTHON="$PWD/.venv/bin/python3" terminal/bin/strata monitor --url http://127.0.0.1:8080 ``` ### From source: Mac Apple Silicon, macOS 15 or newer. Run `xcode-select --install` once, then `./setup.sh`. macOS uses its own setup implementation and builds the Metal engine; options and model preparation differ from Windows/Linux (read `./setup.sh --help`). The released app and Terminal do not require a compiler. ## Key Parameters Source-checkout flags (from the guide's examples): | Flag | Meaning | | --- | --- | | `--family qwen --model Q2_0` | Pick a family and pack | | `--context 32768` | Numeric context (source interface) | | `--vision no` | `--vision yes\|no` in the source interface | | `--gpus 0,1` | Several cards of the same supported backend (`./setup.sh --gpus 0,1`, `START-HERE.bat --gpus 0,1`) | | `--backend hip` | Select HIP explicitly on a mixed-vendor PC | | `--build`, `--no-start` | Source engine; set up without serving | | `--setup`, `--update` | Reopen setup; update | | `--calibrate` | Source setup tuning, only where that backend supports it. Terminal tuning is `strata launch --tune quick` or `--tune thorough` | | `--yes` | Accept setup's recommended answers; can start large downloads. Use only after choosing pack and storage location | | `--data-dir` | Models, packs and draft data location (default `Strata-data` beside the checkout) | | `--help` | Complete options for that OS | Examples: `START-HERE.bat --family qwen --model IQ3_XXS --context 32768 --vision no`, `START-HERE.bat --setup`, `./setup.sh --family qwen --model IQ3_XXS --context 32768 --vision no`, `./setup.sh --no-start`. Files setup writes in the checkout: model run configs (`strata-.json`), launch scripts (`run-.bat` / `.sh`) and logs. Models, packs and draft data go in `Strata-data` beside it, or `--data-dir`. Back up a config before editing: setup can rewrite fields it owns. The desktop app and installed Terminal use different locations ([[concepts/install-desktop-and-terminal]]). Other source-setup facts: older CPUs (experimental): ready-made x86 engines require AVX2; source setup can build experimental AVX or SSE4.2 paths, which does not make every pack compatible (Q2_0's CPU requirements differ from the i-quants). Docker (Linux) is a separate route ([[concepts/docker]]). Several cards are not always faster than one ([[concepts/multi-gpu]]). Setup's menu varies by platform, memory and catalog; the docs' recommendation is ISTA-DASLab, then Unsloth, then Gyro, then others, but executable defaults may differ. ### Updating a checkout Stop the running source engine first. Run `UPDATE.bat` (Windows) or `./setup.sh --update` (Linux and Mac). In a Git checkout the updater can pull source changes, update dependencies and refresh installed configs without starting the model. A source ZIP cannot pull Git history: extract a newer archive and keep your configs and data location. Since 0.2.16 the checkout has a folder per part (`app/`, `engine/`, `terminal/`, `docs/`, `tools/`). A run config naming a file by its old place keeps working until the engine restarts, then fails. The expert profile moved from `data/expert-profile.bin` to `terminal/data/expert-profile.bin`, and the server from `serve/server.py` to `terminal/serve/server.py`. After an update from 0.2.15 or older, point such paths (and a service unit's `ExecStart`) at the new places. If you changed engine code, rebuild and recheck the executable path. ### Using your own build with `strata launch` `strata launch` and the app start the engine in Strata's component folder, not the one in your checkout. To use your build: `strata components add-build ` (the folder holds `strata`, its libraries and `BUILD.json`). Strata checks it runs here (`strata --version`) and matches this computer's kind of GPU, copies it in as a local engine not signed by Strata, and uses it from then on. `strata components engines` and `strata doctor` show it as a local build. Strata never switches to a local build by itself. `strata components use newest` returns to released engines; `strata components remove ` deletes the local build. ## When To Use - Working on Strata's code, testing a pull request, or maintaining a source-based installation. - A backend or experimental CPU path that no released engine covers (read the exact backend guide first). - Not for ordinary use: use [[concepts/install-desktop-and-terminal]]. ## Risks & Pitfalls - Setup may install dependencies, prepare large model files, and compile an engine. `--yes` can start large downloads. - Do not describe a source-only command as an installed-app command, and do not pass `--gpus` to `strata launch` (it uses `--gpu`). - Do not promise a source build supports an unknown model; if a backend or artifact is missing, say exactly what is missing (the XL edition page "Agent and Contributor Rules (AGENTS.md, AI_SETUP.md, CONTRIBUTING)"). - Presence of updated source files is not evidence that a running engine contains the changes. - Do not assume every AMD card, quantization or feature has been validated; follow the backend guide. Intel Arc is a separate Linux SYCL path. - Do not publish API keys or private paths from configs or logs. - Moving from the pre-0.2.16 layout can break run configs that name old paths (see Updating). ## Related Concepts - [[concepts/install-desktop-and-terminal]] - the released routes - [[concepts/docker]] - container route - the XL edition page "Updating and Packaging" - updating installed components - [[concepts/multi-gpu]] - `--gpus` and roles - the XL edition page "AMD Radeon on the HIP Backend" - HIP builds - the XL edition page "Agent and Contributor Rules (AGENTS.md, AI_SETUP.md, CONTRIBUTING)" - what agents may and may not claim about source builds ## Sources - raw/github_doc-docs-source-install-md.md - the source install guide: commands, flags, updating, paths - raw/github_doc-setup-sh.md - what `setup.sh` does (Python discovery, venv, NixOS/uv, macOS Python) - raw/github_doc-start-here-bat.md - what `START-HERE.bat` does (Python install, venv, bundled Python) - raw/github_doc-update-bat.md - why `UPDATE.bat` exists and what it forwards to --- title: "strata launch and the Terminal Quick Start" type: concept tags: [terminal, launch, presets, monitor, access, api-key] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-terminal-launch-md.md", "raw/github_doc-docs-terminal-quickstart-md.md", "raw/github_doc-docs-readme-md.md", "raw/github_doc-docs-source-install-md.md"] --- # strata launch and the Terminal Quick Start ## Definition `strata launch` is the installed Terminal's one-command path: it chooses a model, optionally tunes it, starts serving and opens a monitor. Every command here belongs to the **installed Terminal** interface (the `strata` command). In a source checkout the quick-start guide says to type `python terminal/strata.py` in place of `strata`, from the repository root. Source-checkout scripts (`START-HERE.bat`, `setup.sh`) use different flags (for example `--gpus`, `--vision yes|no`) and are covered in [[concepts/source-install]]. The Terminal quick start is a separate, shorter guide for people who already have a model: it reads a running server, reruns it from a saved profile, or measures it. It does not download models. ## How It Works ### Install and first run Linux and Mac: ```sh curl -fsSL --connect-timeout 15 --max-time 120 https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh ``` Windows PowerShell (then open a new terminal): ```powershell irm -TimeoutSec 120 https://github.com/Niko1221/Strata/releases/latest/download/install.ps1 | iex ``` The installer needs no administrator rights and puts `strata` on your PATH. The engine comes with the first model: `strata launch` fetches the one for your card from the same release, checks its signature and test-starts it before using it. See [[concepts/install-desktop-and-terminal]] and [[concepts/safety-and-privacy]] for the install guide and the piped-installer trust note. Then run `strata launch` and follow the screens, or skip the screens: ```sh strata launch --plan --family qwen --model q2_0 # what would happen; nothing changes strata launch --family qwen --model q2_0 --yes --no-tui # download, serve, print the address, return strata launch --status # what is serving now strata launch --stop ``` `strata launch --help` lists every flag. An unknown model or flag gets a plain message with the closest match. ### The ten screens 1. **Start**: saved presets (name, model, context, parallel requests, tuned or not, last used), "Set up from the beginning" or "Use model files I already have". 2. **Model**: the catalog shared with the app and `setup.py`, with download size, needs (graphics memory and RAM) and "fits / tight / does not fit this computer". This is a warning, never a block. The n-gram table stays on your SSD and is not counted. `o` picks your own files (a folder or a `.gguf`). 3. **Folder**: where model files go, with free space. For an already installed model (including one the desktop app installed) it starts where the model is and lists only what is missing (the draft layer, about 5.2 GB; the picture reader, 0.9 GB). 4. **Context** (8K to 512K, with the extra memory each costs) and the memory format (`m`: 8-bit or 4-bit). 5. **Pictures**: only for models that can read them; on by default. The reader adds about 0.9 GB. It runs on the CPU for a card under 24 GB and on the graphics card from 24 GB (about 1 to 1.4 GB kept free); the rule is in `terminal/strata_control/vision_reader.py`. `--vision gpu` or `--vision cpu` overrides it per model. If the engine package has no picture reader, pictures default to off and the screen says so. See [[concepts/image-input]]. 6. **Parallel requests**: "fit to your card" (12 GB: 1, 20: 2, 24: 3, 32 and more: 4; one when the DFlash2 drafter is used) or a number from 1 to 8, with a warning if it will not fit. Check the effective slots after startup. 7. **Tuning**: quick (about 20 minutes), thorough (up to 2 hours) or skip. The screens suggest quick the first time; the command line skips tuning unless you add `--tune`. 8. **Advanced** (optional): every engine setting with its default, tuned value and your value; edit, reset, or add a setting by name (checked against the engine's list, warning instead of refusal). It shows the exact command and matching `strata launch` flags. 9. **Access**: this computer only (127.0.0.1), your network (LAN address and key), a Cloudflare quick tunnel (needs `cloudflared`) or Tailscale (needs it installed and connected), plus the port and an API key. 10. **Save as preset** and launch. Downloads show progress, then the engine starts and the monitor opens. No web page opens unless you pass `--open`. Keys: arrows choose, Enter goes on, Esc goes back, `?` explains the screen, `q` leaves. With two or more usable graphics cards the Model step also asks for a role per card (M main, H helper, O off); on the command line `--gpu-roles 1=main,0=helper` does the same (see [[concepts/multi-gpu]]). ### Option precedence The run config of a launch (`launch/.json` in the state folder) is rebuilt at every launch. For each engine option the first of four layers that has it wins, and the file, `strata status` and the engine's command line show the same value: 1. Explicit launch values (this command line, for example `--set draft-conf=0.35`, `--context`). A saved preset keeps its `--set` values; `--set KEY=off` removes the option. 2. Persisted overrides: `user_args` in the model's run config and hand edits to `args` in the launch's file. 3. Calibrated values from `strata engine calibrate --apply-result` (a different model or context drops them). 4. Auto: what setup and the policies generate. The Auto drafter policy keeps only layers 1 and 2. `--set draft-conf=off` cannot remove an option the DFlash2 drafter needs: use `--drafting off` or `--drafting mtp`. ## Key Parameters ### `strata launch` flags (installed Terminal) | Flag | What it does | | --- | --- | | `--preset NAME` | Start a saved preset. Other flags change that start only; add `--save-preset` to keep them. | | `--family`, `--model` | Model family and size, for example `qwen`, `q2_0`. Any case. | | `--model-path PATH` | Files you already have: a folder of shards or one `.gguf`. | | `--data-dir DIR`, `--move-data` | Where new downloads go; `--move-data` also moves existing models. | | `--context SIZE` | `32k`, `64k`, `128k`, `256k` or a number of tokens. | | `--kv FORMAT` | Conversation memory format: `int8` (default), `q4_0` (half the memory), `k8v4`, `fp16`. | | `--vision off\|on\|gpu\|cpu` | Picture reading. Default: on when the model and engine can. | | `--parallel N` | Simultaneous requests, 1 to 64. Inkling-2-Mini runs up to 64; the Qwen engine keeps 16 on NVIDIA and AMD cards and 8 elsewhere (a layer split over several cards can run more); Hy4-Flash answers one. Default: fit to your card; one at a time with DFlash2. | | `--mtp on\|off` | The draft layer. `off` saves about 1 GB of graphics memory and is slower. Default: on. | | `--drafting auto\|mtp\|dflash2\|off` | Which drafter guesses ahead. `dflash2` is for Qwen3.8-Flash-Next only and downloads its drafter once (0.34 GB for models with a tuned drafter, 0.52 GB on Intel Arc, else 1.2 GB). If it cannot run, MTP is used and the start says why. | | `--gpu LIST`, `--gpu-roles LIST` | Which cards, and a role per card. | | `--tune quick\|thorough\|skip`, `--tune-allow-small`, `--retune` | Tuning. A model tuned before for the same choices on this computer reuses the stored result; `--retune` measures again. | | `--set KEY=VALUE` | Advanced engine setting or `STRATA_*` variable (repeatable). Unknown names get a warning. See [[concepts/settings]]. | | `--pool-cores LIST` | Experimental: pin CPU workers to these logical processors, for example `2-14:2`. See the XL edition page "Speed Settings, CPU Workers and Measured Speeds". | | `--access local\|lan\|cloudflare\|tailscale`, `--port N` | Who can reach the server. | | `--api-key KEY`, `--api-key-env NAME`, `--new-key`, `--no-api-key` | The key clients must send. | | `--save-preset NAME`, `--list-presets`, `--delete-preset NAME` | Presets. | | `--no-tui` | No screens: serve, print the address, return. | | `--yes` | No questions. It never restarts a running model. | | `--restart` | Stop a model serving other choices (or holding the port), then start these. | | `--open` | Open the server's web page once it serves. | | `--plan` | Show what would happen and exit; lists model, context, picture setting and what would download (0 when everything is here). | | `--feed URL\|DIR` | The signed update feed. Default: `STRATA_UPDATE_FEED` or the project's. | | `--output human\|json` | Output format. | | `--status`, `--stop`, `--show-key` | Show, stop, or print the key of the running launch (add `--preset NAME` to pick one). | Presets are small files in `launch-presets/` beside the profiles folder. A run uses the shared profile `launch-` and the shared tuning presets (`strata presets`), so the app sees them too. ### Defaults file `run-defaults.json` holds settings for every model and preset: `~/.config/strata/run-defaults.json` on Linux and macOS, `%APPDATA%\Strata\run-defaults.json` on Windows. Without the file nothing changes. It is one JSON object with server settings only: the keys of the web page's Settings view (`sampling` with `temperature`, `top_p`, `top_k`, `min_p`; `reasoning_budget_tokens`, `fit_max_tokens`, `anthropic_thinking`, `effort_position`, `aliases`, `idle_unload_s`, `lazy_load`, `engine_silence_s`, `api_monitor`) and `undeclared_tool_calls` (`"text"` or `"call"`). Invalid keys or values are skipped and named at the start. Engine options and `mtp` do not go here. It is the lowest layer: the model's own config, the Settings view and this launch's own choice (`--set idle-unload=60`) all win. The app does not read this file. ```json { "undeclared_tool_calls": "call", "sampling": { "temperature": 0.6 } } ``` ### Monitor views Press `1` to `7` or use arrow keys: 1 Overview (reads the server's `/metrics`), 2 to 6 Serving, Requests, Engine, Hardware, Logs, 7 Connect. In Connect: `c` copies a setup, `w` writes it after a backup, `h` checks it with one prompt and one tool call; `k` reveals the key. `q` asks whether to keep serving in the background or stop (stopping unloads the model and frees graphics memory). With two or more cards the Overview shows the busiest card's load, all cards' memory, hottest card, total power and slowest PCIe link, and a "Cards" strip of up to 4 cards (`5` opens Hardware). In the classic Windows 10 console the monitor may switch the window font to Cascadia Mono; `STRATA_GLYPHS=unicode|ascii|solid` forces a look. ### Quick-start commands (read, rerun, measure) Per the quick-start guide (installed Terminal): - Snapshot: `strata status --url http://127.0.0.1:8080 --json`; monitor: `strata monitor --url http://127.0.0.1:8080` (keys `1`-`7`, `Space` freezes, `r` refreshes, `q` detaches and leaves the server running). With no terminal, use `status --json` or `monitor --once --json`. - Remote servers: use HTTPS or a local SSH tunnel. `strata connection create work --url https://example.invalid --credential-env STRATA_TELEMETRY_KEY` then `strata monitor --connection work`. A saved connection stores only the credential variable's name; replace `example.invalid` with your own server root. - Review without starting: `strata doctor --profile /absolute/path/to/strata-model.json --components --output json` and `strata serve --profile ... --plan --output json`. - Profiles: `strata profile create four-gpu --from-config ...`, `strata profile set four-gpu parallel=8 batch_groups=auto max_queue=32 queue_timeout=15 batch_telemetry=true --plan` (drop `--plan` to save), `strata profile show four-gpu --effective --output json`, `strata runtime start|verify|restart|stop --profile four-gpu`. `profile set` alone does not restart or retune a running model. `runtime stop` stops only the owned instance; `q` in Monitor does not. - Calibrate and benchmark: `strata engine calibrate --profile four-gpu --plan|--measure --exclusive --out FILE|--review-result FILE|--apply-result FILE --exclusive|--review-rollback FILE|--rollback-result FILE --exclusive`, and `strata bench run --profile four-gpu --suite serving-smoke --concurrency 4 --out /absolute/path/to/new-bench-report` (writes to a new directory, publishes nothing). Details are in the XL edition page "Terminal Command Reference". ## When To Use - First setup of a model on the installed Terminal: `strata launch`. - Scripted or headless: `--plan`, then `--yes --no-tui`. - Pointing a coding app at the server: `strata connect` (monitor view 7 or the command). The Terminal lists OpenCode, Codex CLI, Claude Code, oh-my-pi (`omp`), pi, Hermes Agent, OpenClaw and the DeepSeek Harness (built into the app). Flags, checks and known limits are in [[concepts/connecting-coding-tools]]. - Models already on disk: `strata models list` searches the `--install-dir` / `STRATA_INSTALL_DIR` folder (then only that one), the Terminal's own folder, folders earlier installs remembered in `settings.json`, and the desktop app's install folder (`%LOCALAPPDATA%\Strata\install` on Windows, `$XDG_DATA_HOME/strata/install`, normally `~/.local/share/strata/install`, on Linux and macOS). `strata models import PATH --plan` recognises Gyro-S and Gyro-M files (TQK6/TQK7 and TQ2_T experts) and copies or moves nothing. `strata models explain NAME` (`IQ3_S`, `iq3_s` or `qwen/IQ3_S`) shows where launch looks for a model's files and only reads folder names and file sizes. ## Risks & Pitfalls - **No key off this computer:** beyond this computer a key is recommended and Strata makes one (`t` turns it off on the screen). With no key the server still starts and warns that anyone who can reach the port can use the model and its tools; `--no-api-key` does the same without screens, and the warning is stronger on a Cloudflare tunnel. - **Launching while serving:** the same choices restart nothing and print addresses. Different choices (another context, pictures, access, or another model on the same port) make the screens ask "Restart the model with these settings? Answers in progress stop." With `--no-tui` the command refuses with one line; add `--restart` or run `strata launch --stop` first. A different `--port` runs beside the first server, but two big models may not fit in graphics memory together. - **No engine for this computer:** `strata launch` does not refuse. It says "Strata couldn't find an engine for this computer", asks whether to go on (Enter means yes; `--yes` skips), downloads the model, ends with a message naming the problem, exits 0 and starts nothing. - **Intel Arc:** the Terminal downloads the released Linux SYCL engine, but its model preparation for Arc is a container build it does not run. If the files and prepared pack are already on disk, launch writes the run settings itself; otherwise it reports the preparation problem. See the XL edition page "Intel Arc GPUs (SYCL engine)". The Linux SYCL package updates through `strata update`; do not copy it into the components folder by hand. - **Mixed makes:** one engine drives cards of one make (CUDA: NVIDIA, HIP: AMD). Only those cards are offered, a model is never split across makes, and two models at once, one per make, is not supported. - **Requested versus effective slots:** a requested `parallel=8` does not prove eight effective slots loaded; check the reported values after start. - **Download needs:** model download uses `setup.py` in its control mode (no pip, no engine fetch, no compiler); it needs internet and room for the files. - **Calibration** is separate from serving and needs exclusive use of the selected devices. Measuring writes a report but applies nothing. Synthetic screenshots and fake-engine tests do not establish performance on a four-card host. ## Related Concepts - the XL edition page "Terminal Command Reference": the full command and screen reference. - the XL edition page "Terminal Telemetry, Qualification and Implementation Status": what the monitor fields mean. - [[concepts/connecting-coding-tools]]: `strata connect` in full. - [[concepts/install-desktop-and-terminal]], [[concepts/settings]], [[concepts/multi-gpu]], the XL edition page "Speed Settings, CPU Workers and Measured Speeds". ## Sources - raw/github_doc-docs-terminal-launch-md.md: install one-liners, screens, flags, option precedence, run-defaults.json, monitor, model discovery, engine fallbacks. - raw/github_doc-docs-terminal-quickstart-md.md: status/monitor, saved connections, profile/runtime, calibrate and bench commands for users who already have a model. - raw/github_doc-docs-readme-md.md and raw/github_doc-docs-source-install-md.md: the flag spellings of the Terminal (`--gpu`, `--vision on|off`) versus source setup (`--gpus`, `--vision yes|no`). --- title: "Troubleshooting Strata: Symptom, Cause, Fix" type: concept tags: [troubleshooting, errors, install, startup, amd, logs] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-troubleshooting-md.md", "raw/github_doc-docs-details-md.md", "raw/github_doc-docs-source-install-md.md"] --- # Troubleshooting Strata: Symptom, Cause, Fix ## Definition Symptom tables drawn from the troubleshooting guide and the server and engine cases in the DETAILS reference. Start from the route the user installed: desktop app or Terminal ([[concepts/install-desktop-and-terminal]]) or source checkout ([[concepts/source-install]]). Interface rule: `strata ...` commands belong to the installed Terminal; `START-HERE.bat`, `SETUP.bat`, `UPDATE.bat`, `./setup.sh` belong to a source checkout only; the normal release uses the app or `strata launch` and needs no `.bat` file. For problems that were worked through in issue threads, read the issue syntheses instead of retelling them here: the XL edition page "Closed Issues: Speed and Regressions", the XL edition page "Stability Issues: Crashes, Hangs, Out-of-Memory and Wrong Output", the XL edition page "Closed Issues: Tool Calling, Thinking and API Behaviour", the XL edition page "Closed Issues: Install, App, Hardware Requests and Feature Requests". ## How It Works ### First: collect evidence Terminal (installed), keep the output for a bug report: ```sh strata --version strata doctor --live strata launch --status ``` `strata doctor` is a read-only check of the installed engine parts; `--live` also asks the computer which graphics cards it sees and compares them with the cards the model is set to use; `--output json` prints data. Anything else: the engine log is `strata-.log`. In the app: Settings, Engine, Diagnostics, View logs, Save logs, which writes `strata-diagnostics-.txt` into Downloads. Other log sources: Windows app crash writes `desktop-crash-.log` in `%LOCALAPPDATA%\Strata\logs`; a Linux AppImage that crashes can be run with `--save-logs`; developer tools open with `STRATA_DEVTOOLS=1`. Never send an API key. Include model and quantization, OS, GPU/VRAM, RAM, driver, install route, Strata and engine versions, exact command, expected result and actual error. ### Desktop app and Terminal | Symptom | Cause | Fix | | --- | --- | --- | | Cannot find `START-HERE.bat` or `SETUP.bat` | Those wrappers are in the source repository only | Open the installed app or run `strata launch`. Download one installer (`Strata-0.2.21-windows-x64-setup.exe`, `Strata-0.2.21-linux-x86_64.AppImage` or `Strata-0.2.21-macos-arm64.dmg`), not a `strata-engine-...` archive. | | `strata` not found | PATH | Windows: open a new PowerShell window. Linux/Mac: use the full path the installer printed, normally `~/.local/bin/strata`, and add `~/.local/bin` to PATH. | | "couldn't find an engine for this computer" | No engine installed and none in the update source for the card, an engine for another make of card, or a driver that is too old | App: Settings, Engine. Terminal: `strata update`, then start again; `strata doctor --live` and `strata update --check` show the selected GPU and driver. With only an Intel UHD or Iris chip, a virtual machine or Windows on ARM, Strata says so and there is nothing to install. The model files are still downloaded. | | "This model needs a newer engine." / Update engine button | The installed engine is older than the model needs | Per the guide: Gyro needs 0.1.45.1 or newer, NVFP4 needs 0.1.44, and NVFP4 (NVIDIA, trained for FP4) needs 0.1.45 (the guide gives both NVFP4 numbers without saying which pack each belongs to; these are engine versions, and minimums vary by model and backend). App: Settings, Engine, Update engine (keeps model files and settings; running models must be unloaded). Terminal: `strata update --check`, then `strata update` (switches only after a test start). | | Update "succeeded" but `strata --version` is old | The Terminal switches to the updated Control on the next command | Run `strata --version` again; if still old, re-run the one-line installer (keeps models and settings). App, Control and engine have separate version numbers (see [[entities/strata]]). | | New engine misbehaves after an update | | Stop the model, then use the app's rollback or `strata components rollback`. An update keeps the replaced engine (one generation, about 210 MiB). Source checkout: `python terminal/setup.py --rollback-engine` (engine in `engine\.previous`; run again to go forward, #670). | | Mac: "damaged", "cannot be opened", "unidentified developer" | macOS marks browser downloads; a non-notarised test build says "damaged" | Check Apple Silicon and macOS 15 or newer. Release builds are notarised: drag Strata to Applications, open it, press Open. Otherwise `xattr -dr com.apple.quarantine ~/Downloads/` (or `/Applications/Strata.app`, or the unzipped folder). Or System Settings > Privacy & Security > Open Anyway. `spctl -a -vv /Applications/Strata.app` should say "accepted" and "Notarized Developer ID" for a notarised build. Only remove the mark from a file from the official release. | | Linux AppImage does not open | Not executable, or FUSE 2 missing | Make it executable; install `libfuse2` (Ubuntu 22.04) or `libfuse2t64` (newer Ubuntu); without FUSE run it with `--appimage-extract-and-run`. | | Windows: "Windows blocked the Strata engine (or the image encoder) ... Smart App Control" | `strata.exe` and `strata-vision.exe` are not signed yet (#735) | Turn Smart App Control off (cannot be turned back on without a Windows reset), or if only the image encoder is blocked, `strata launch --vision off` (source checkout: `START-HERE.bat --setup --vision no`). Do not disable system-wide protection as a routine fix. | ### While installing or starting | Symptom | Cause | Fix | | --- | --- | --- | | PC froze or slow on first start; first start takes minutes | Strata loads 35-55 GB into RAM (34-55 GB in other entries), locks part for the GPU, sizes the expert cache | Wait; the second start is faster while files are in the OS cache. Still frozen after 10 minutes: restart, close other programs, or pick a smaller size (Q2_0 or IQ2_XS). Started from Task Scheduler, a start can be 24x slower. On Linux `STRATA_READ_AHEAD=0` turns off the kernel read-ahead of model files (a cold start went from ~920 s to 70 s on one PC). | | A download stopped | | Retry in the app or rerun the same `strata launch` command; completed steps are reused. Source checkout: `START-HERE.bat` / `./setup.sh` resumes. | | "engine does not match GitHub's checksum" | Corrupt or changed download | Setup deletes it and stops; run setup again. `STRATA_SKIP_SHA256=1` skips the check "only if you insist". | | `the engine process ended: ...` with no line in the log, e.g. `killed by signal 4 (SIGILL, Illegal instruction)` or `exit code 0xC000001D` | The engine ran an instruction the CPU cannot execute | The error lists the AVX, AVX2, FMA and F16C flags the CPU lacks, or says it has them all (a bug). Report with the CPU model. | | `the NVIDIA driver is too old` | | Update the driver (NVIDIA App or nvidia.com/drivers), restart, reopen the app or rerun `strata launch`. CUDA 13 needs driver 580 or newer; older cards use the CUDA 12 route (the XL edition page "Older and Experimental GPUs (Pascal, Volta, Maxwell, sm_80, Older AMD)"). | | `port 8080 is already in use` | Strata already running, or another program holds the port | `strata launch --status`. Replace your launch with `--restart` (stops current answers), or use another port: `strata launch --port 8081` (source checkout: `START-HERE.bat --port 8081`). `--yes` alone does not restart a running model. Do not stop an unrelated program just because it holds the port. | | `cudaHostRegister ... out of memory` in the log (Windows) | | Normal: the engine pins the experts in per-layer slices. A problem only if the load then fails. | | `ExpertCache: cudaMalloc(...) failed: out of memory` although VRAM is free (Windows) | Page file off or tiny; card allocations count against Windows' commit | Set a fixed page file with equal initial and maximum size (for example 65536 MB) and restart. Setup warns about a page file under 4 GB. | | Engine stops on a small GPU or low-memory computer | The MTP draft layer takes about 1 GB of graphics memory plus RAM | Turn drafting off: app, model's Drafting setting in Expert settings; Terminal `strata launch --family qwen --model q2_0 --context 32k --mtp off` (older Terminals `--set mtp=off --set spec-min-p=off`); by hand `"mtp": false` in `strata-.json`. Answers get slower. Also try a smaller pack or context. | | Manual edits to `strata-.json` came back | The app regenerates `args` | Options you add to `args` are kept: `user_args` lists yours and wins for the same option; `args_written` is a copy of the app's last write. Delete an option from both `args` and `user_args` to undo it. The app keeps the earlier file as `strata-.json.bak`. The app still chooses context size, KV type, picture reading and draft layer itself. Prefer Expert settings or `--set`. | | App keeps more graphics memory free than wanted (decode slower than in 0.1.45) | Default reserve for the desktop | Without your value: 1536 MiB on a card of 16 GB or less that drives a display (1024 MiB larger), 2048 MiB with a picture reader on the GPU, 512 MiB (700 with pictures) on a card with no display. Set "GPU memory for other apps" in Expert settings, or `--vram-reserve-mib 0` in `args`; a card that also draws the desktop can freeze or slow with a very small reserve. | | Pictures refused or slow; `this server was started without the vision encoder` | Model set up for text only, or the engine has no picture reader | Switch pictures on in the app or `strata launch --vision on\|gpu\|cpu`; source checkout: run setup again with `--vision yes` (or `gpu` / `cpu`). The reader runs on the CPU under 24 GB of graphics memory and on the card from 24 GB (NVIDIA and AMD); `--vision gpu` needs about 1.4 GB of VRAM. On a Mac the reader runs on the GPU (`--vision cpu` about 50 s per picture there); on Intel Arc the CPU reader is the default. A file Pillow cannot open gives `cannot read the image` (JPEG, PNG, WebP, GIF, BMP, TIFF, AVIF work). See [[concepts/image-input]]. | | Source checkout: UPDATE.bat / update.sh say "git pull did not succeed" / "has no commit in common" (#1276) | Repository history was cleaned on 2026-10-06 | Scripts from 0.1.40.2 move the clone to the new history and keep old commits in `pre-cleanup-backup`. Older scripts: back up local work, then `git fetch origin`, `git branch pre-cleanup-backup`, `git checkout -B main origin/main` (`git stash` first if `git status` lists edits). | | Source build on Linux: `unsupported GNU version` or `exception specification is incompatible` for `cospi`/`sinpi`/`rsqrt` (#601) | gcc newer than 14, or glibc 2.43 with CUDA 12.9 | gcc: install g++-14 and run `CXX=g++-14 ./setup.sh`. glibc 2.43: use CUDA 12.8 or 13.x; `STRATA_NVCC=/usr/local/cuda-12.8/bin/nvcc ./setup.sh`. | | RTX 50 card, source build with CUDA 13.2: nonsense output or wrong prompt reads (#892, #968) | CUDA 13.2.0 and 13.2.1 (nvcc 13.2.51) miscompile some kernels for sm_120 | The ready-made engine is built with 13.0. When compiling, use CUDA 13.0, 13.1 or 13.2.2 (`STRATA_NVCC=`). | | Python or build tools could not be installed | | Install what it names, then run again; the packaged Terminal carries Python. | | Setup puts the model on an old drive after moving Strata | Setup remembers the data folder in `%APPDATA%\Strata\settings.json` (Windows) or `~/.config/strata/settings.json` (Linux), `data_dir` entry | Use `--data-dir DIR` or `--models-dir DIR`, or delete the `data_dir` line; `--gguf-dir DIR` uses existing GGUF files without copying. | ### While it answers | Symptom | Cause | Fix | | --- | --- | --- | | Slow, disk light busy | Out of free RAM, or the model exceeds RAM/VRAM and uses the file tier | Close other programs; pick a smaller size (Q2_0 or IQ2_XS) or context. | | `the engine stopped unexpectedly (exit code ...)` | Usually out of RAM (Linux ends the biggest program: `sudo dmesg \| grep -i -E 'killed process\|out of memory'`) | Send the message again; Strata restarts the engine. If it repeats, close other programs or pick a smaller size. | | Linux: exit code -9, nothing ran out of RAM | A real-time CPU limit (`ulimit -R`) set by the desktop session, as PipeWire does without rtkit | Install `rtkit`, or run outside the limits, e.g. `systemd-run --user --collect -p LimitRTTIME=infinity -- strata serve ...`. Strata warns at start. | | `prompt ... exceeds the context` | Conversation longer than the chosen context | New chat, shorten input, or the app's Summarize and continue. Terminal: restart with an explicit `--context`, such as `64k`. Source checkout: the troubleshooting guide says to run `SETUP.bat` and pick more context; the source-install guide says `SETUP.bat` went away with the 0.2.16 folder layout and `START-HERE.bat --setup` does what it did. | | Slower than the tables | A monitor on the GPU and other GPU programs take VRAM; RAM below rated speed | Enable EXPO/XMP in the BIOS. See the XL edition page "Speed Settings, CPU Workers and Measured Speeds". | | Much slower than the tables only with a large `--context`; startup shows a small `... MiB of VRAM free with everything loaded` | Expert cache does not fit at that context | `--expert-cache auto`, a smaller number, or a larger `--vram-reserve-mib` ([[concepts/memory-modes]]). | | Decode several times slower with `--expert-cache N` than `auto` (#781, #831) | An explicit N is not checked against free VRAM after slots are written; Windows pages GPU memory | Log says `0 MiB of VRAM free with everything loaded - LOW`; decode dropped from 100 to 14 tok/s with a few hundred slots too many. Use `auto` or a smaller N. | | `no progress for ... s ... (issue #29)` with a stall report | A request stopped moving; ended after 2 minutes | Next request restarts the engine. `STRATA_WATCHDOG_S` sets the seconds (`0` off). Open an issue with the line, the stall report and on Windows `strata-stall-.dmp`. | | `no progress for 60 s ... reading the prompt` on Linux, stall report shows `threads waiting on the disk (state D)` | The n-gram table is read at random (`--ple-io direct`), too much for a rotational disk | `--ple-io ram` (needs RAM for the table) or the model on an SSD. | | `the engine said nothing for ... s during the request` | Engine and server lost step | Server ends the engine after `engine_silence_s` (300 default); next request restarts. If it repeats, add the end of the engine log to issue #481. | | `the engine said nothing for ... s and used no CPU or disk in that time (frozen ...)` | A stopped engine | Server ends it after 90 s; `STRATA_ENGINE_STALL_S=180` sets the time, `0` off (needs `psutil`). | | A low-RAM PC (about 32 GB) stalls with `--resident-budget-gib N` (#649) | The budget is pinned in RAM | `STRATA_RESIDENT_PIN=0` keeps it pageable, or use a smaller budget. | | Decode slower in 0.1.40 on a 32 GB PC with `--resident-budget-gib N`, drive read hard (#1194, #1116, #1085) | The unbuffered file tier | 0.1.40.2 reads through a cache otherwise (measured 7% to 118% faster decode on a 20 to 32 GB box). On 0.1.40 / 0.1.40.1: `STRATA_UNBUFFERED_LOAD=0`. | | Linux: start is OOM-killed while allocating the page-locked expert copy (#1250) | Page-locked pages cannot wait for the kernel to free file cache | Since 0.1.40.2 the engine hands back cached pages first and may keep part resident but pageable with a warning ("only N of M GiB could be page-locked"). `STRATA_PIN_GUARD=0` turns this off; `STRATA_PIN_RESERVE_GIB=N` sets the RAM to keep free. | | An earlier empty reply is gone from chat history (0.1.40, #843) | The server omits finished assistant turns with no text | `STRATA_KEEP_EMPTY_TURNS=1` in the server environment. | | Turing (RTX 20) reads prompts above ~90K differently (0.1.40, #743) | A wider top-k kernel, same ids | `STRATA_TOPK_STREAM=0` restores the old one. | | Windows display driver resets, then blue screen (0x141, then 0x116 in `nvlddmkm`) during an answer (#961) | The guide says it is the NVIDIA driver, not Strata (same wedge with other CUDA programs on driver 610.88, RTX 4080 SUPER) | Try another driver and a lower power limit; if only with `--spec 4`, `--spec 0` avoids the verify window (a native (IQ) pack needs `--spec` 2 or more). | ### AMD cards | Symptom | Cause | Fix | | --- | --- | --- | | `No AMD GPU found (the amdgpu driver's KFD topology is empty)` on Linux | The amdgpu driver is not loaded for the card | Integrated Radeon GPUs are listed as not supported; setup lists every card it found. See the XL edition page "AMD Radeon on the HIP Backend". | | Engine stops at start naming the card, its architecture and the build's list | Engine compiled for another card | `strata update`; source checkout: `./setup.sh --setup --backend hip`. | | Windows: exit `0xC0000005` in `amdhip64_7.dll` before any output (#654) | `HIP_PATH`, `HIP_DEVICE_LIB_PATH` or `LLVM_PATH` naming a deleted ROCm folder, or an unwritable `TEMP`/`TMP` | The server repairs both before starting the engine. Starting `strata.exe` by hand: `set HIP_PATH=` and point `TEMP` and `TMP` at e.g. `C:\Temp`. | | Windows AMD: driver reset (`VIDEO_ENGINE_TIMEOUT_DETECTED`), flicker, engine dies (#613; #579 and #541 on Linux) | Windows resets a GPU that does not answer in about 2 seconds (TDR); seen with KV streaming (`--kv-resident 32768`, on from 64K) on a gfx1201 card | See the ordered list below. | | "verify: timed out at layer N" / "no progress for 60 s" on AMD Linux, mostly `--mmap-experts` | | Two reports fixed it: `"GPU_PINNED_MIN_XFER_SIZE": "1048576"` (RX 6800) or `"HSA_USERPTR_FOR_PAGED_MEM": "0"` (two R9700) in the `env` block, then restart. Experimental, one machine each; on a systemd unit use `MemoryMax`, not `MemoryHigh`. | | Large pinned host allocations fail on ROCm though RAM is free | | The mapped expert mode avoids the full pinned arena; see the AMD HIP guide. | Windows AMD TDR steps, one at a time, in the guide's order: (1) send the last ~80 engine log lines, driver version, card, Windows and Strata versions and steps; the newest `.dmp` in `C:\Windows\LiveKernelReports\WATCHDOG` or `C:\Windows\Minidump` helps; (2) add `"STRATA_PF_STEP_SYNC": "1"` to the `"env"` block to log steps over 250 ms; (3) `"STRATA_KV_HOST_DMA": "1"` (off until set on AMD and Intel Arc; NVIDIA does it by default); (4) no KV streaming: pick 32K context or remove `--kv-resident` and its number from `"args"`; (5) a smaller chunk such as `--prefill 512`; (6) optional: registry `TdrDelay` DWORD `10` under `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers`, restart (hides the symptom; Strata changes no Windows setting itself); (7) newest AMD Software release (Adrenalin, not a Windows Update driver). ## Key Parameters | Item | Value | | --- | --- | | Engine silence limit | `engine_silence_s` 300 (server config); frozen-engine check 90 s (`STRATA_ENGINE_STALL_S`) | | Stall watchdog | 2 minutes, `STRATA_WATCHDOG_S` | | Default API address | `http://127.0.0.1:8080` | | Engine rollback size | about 210 MiB | ## When To Use Use this page when an install or start fails, or answers go wrong. If the symptom looks like a speed regression, wrong tool call, hang or hardware-support question that matches a closed issue, check the four issue syntheses linked above. ## Risks & Pitfalls - Source-checkout fixes (`SETUP.bat`, `./setup.sh`, `UPDATE.bat`) do not apply to an installed app. - Several rows cite engine versions 0.1.40 and 0.1.40.2; those are historical fixes. The guide is current where it conflicts with an older note. - The TDR registry change and Smart App Control change affect system-wide behaviour; the guide frames both as choices, not routine fixes. - The sources quote the RAM loaded at first start as 35-55 GB in one entry and 34-55 GB in others; treat it as roughly 35-55 GB. ## Related Concepts [[concepts/memory-modes]], the XL edition page "Speed Settings, CPU Workers and Measured Speeds", [[concepts/how-the-engine-works]], [[concepts/safety-and-privacy]], the XL edition page "Updating and Packaging", [[concepts/terminal-launch]] ## Sources - raw/github_doc-docs-troubleshooting-md.md: app, Terminal, startup, answering, AMD and logging entries. - raw/github_doc-docs-details-md.md: the "Troubleshooting" table of server and engine cases (port, page file, stall and watchdog messages, setup data folder, vision errors). - `raw/github_doc-docs-source-install-md.md` — which source-checkout wrappers still exist after the 0.2.16 layout --- title: "Strata" type: entity tags: [strata, local-inference, desktop-app, terminal, engine, mit-license, openai-compatible] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-readme-md.md", "raw/github_doc-docs-readme-md.md", "raw/github_doc-docs-media-kit-md.md", "raw/github_doc-docs-capabilities-md.md", "raw/github_doc-docs-ai-reference-md.md"] --- # Strata ## Overview Strata runs supported language models locally on your own computer, with a desktop app, a terminal app and an inference engine. The README tagline is "Run powerful AI on your own computer. Chat, code and work with images, locally." It is described as free and open source ("No account needed"); the code is under the MIT license. The repository is `github.com/Niko1221/Strata`, and the owner account is Niko1221. The engine uses the GPU, system RAM and, for applicable models and memory modes, SSD storage ([[concepts/how-the-engine-works]]). It serves an OpenAI- and Anthropic-compatible API on localhost (default `http://127.0.0.1:8080`; the configured port and access settings can differ), so coding tools can connect ([[concepts/connecting-coding-tools]], [[concepts/api-reference]]). Local inference does not mean every feature is offline: downloads, updates, remote tools and user-enabled network access have separate behaviour; see [[concepts/safety-and-privacy]]. Documentation snapshot: `docs/README.md` says "This documentation is for version 0.2.21", the capability table is built from the package names of release v0.2.21, and the AI reference says it was last reviewed on 7 November 2026 against the 0.2.21 release tree. ## Characteristics ### Components | Component | What it is | | --- | --- | | Desktop app | One installer per system; chat, files and a live preview in one window; downloads the engine for your card on first start. See the XL edition page "The Desktop App (Host, Agent Bridge, Repository Layout)". | | Terminal app | Installed with a one-line script; started with `strata launch`; `strata connect` lists the tools it can configure. See [[concepts/terminal-launch]] and the XL edition page "Terminal Command Reference". | | Engine | The inference engine that talks to the graphics card; the app downloads the one for your card. Packaged per backend (below). | | Control | A further component named in the capability table (version 0.1.68 there). The sources here list it but this page does not describe it further; see the XL edition page "Updating and Packaging". | The Windows and Linux installers carry no engine: the app downloads the engine for the graphics card on first start, or installs a file the user already has. The Mac dmg keeps its Metal engine inside. The Terminal's `strata launch` downloads the appropriate engine and model. ### Version scheme App, Control and engine versions differ on purpose; a screenshot, translated README or historical benchmark is not a version source. | Thing | Version in the 0.2.21 docs | | --- | --- | | App and Terminal | 0.2.21 (installer files `Strata-0.2.21-windows-x64-setup.exe`, `Strata-0.2.21-linux-x86_64.AppImage`, `Strata-0.2.21-macos-arm64.dmg`) | | Control | 0.1.68 (the packages `linux-aarch64`, `linux-x86_64`, `macos-arm64`, `windows-x86_64` stay at 0.1.67) | | Engines | 0.1.67 (DeepSeek engines for `linux-x86_64-cuda-cuda13`, `linux-x86_64-hip-rx9070`, `macos-arm64-metal`, `windows-x86_64-cuda-cuda13`, `windows-x86_64-hip-rdna3` stay at 0.1.59) | So the app/Terminal numbers are 0.2.x and the engine numbers are 0.1.x. When a page or issue says "0.1.40" it means an engine version; "0.2.x" means an app/Terminal release. Verify current versions in the GitHub release notes. ### Models Two top-level model families (the AI reference says Coder, Swift, Gyro, NVFP4 and OrcaRouter are Flash-Next variants, not extra families): | Family | Packs listed in the README / AI reference | | --- | --- | | Qwen3.8-Flash-Next | ISTA-DASLab (recommended): Q2_0, IQ2_XS, IQ3_XXS, IQ3_S; Coder IQ1_M (selector `coder`); Unsloth: UD-IQ4_XS, UD-Q4_K_XL, UD-Q5_K_XL, UD-Q6_K_XL, Q8_0; Gyro-S and Gyro-M (agentionai; lower memory use but slower); Swift 1.5 (UkisAI: IQ2_XS, IQ3_XXS, IQ3_S); NVFP4 (NVIDIA only); OrcaRouter (manual conversion, IQ3_XXS) | | Qwen3.6-35B-A3B | Unsloth: UD-Q4_K_XL, UD-Q6_K_XL, Q8_0 | The README also lists Tencent Hy4-Flash (Strata packs SQ-64, SQ-96, SQ-128, named for the RAM they are made for) and Thinking Machines Inkling 2 Mini (Strata packs SQ-20, SQ-15, SQ-10; Unsloth UD packs). The provider preference order for recommendations is ISTA-DASLab, then Unsloth, then Gyro, then others; the AI reference says this is a project preference (the maintainer works with ISTA-DASLab), not a measured quality ranking, and not the installer's default logic. See [[concepts/choosing-a-model]], [[concepts/quants]], the XL edition page "Alternative Packs: Gyro, NVFP4, Swift 1.5 and OrcaRouter", [[concepts/other-models]]. ### Platforms and backends From the capability table (Qwen3.8-Flash-Next; app and Terminal 0.2.21): | Hardware | Engine packages | Supported | | --- | --- | --- | | NVIDIA on Windows | `cuda-cuda12`, `cuda-cuda13` | supported | | NVIDIA on Linux | `cuda-cuda12`, `cuda-cuda13` | supported | | NVIDIA DGX Spark | `cuda-cuda13` | supported: GB10 (the XL edition page "NVIDIA DGX Spark (GB10) on Linux") | | AMD on Windows | `hip-rdna2`, `hip-rdna3`, `hip-rx9070` | supported: RX 6000, 7000 and 9000, Ryzen AI Max | | AMD on Linux | `hip-halo`, `hip-rx6000`, `hip-rx7900`, `hip-rx9070` | supported: RX 6000, 7000 and 9000, Radeon AI PRO R9700, Ryzen AI Max; RX 6000 is validated differently from newer cards | | Intel Arc on Linux | `sycl` | supported: Arc A-series and B-series; Linux only (Ubuntu 24.04 or newer) | | Apple silicon | `metal` | supported: M1 or newer, macOS 15 or newer | Qwen3.6-35B-A3B: supported on NVIDIA and AMD (Windows and Linux); NVIDIA DGX Spark is "package present, untested"; Intel Arc on Linux and Apple silicon do not run it. A field the AI reference does not state is "unknown", not zero and not unsupported. The README hardware table also lists RTX 20 / 30 / 40 / 50, AMD RX 7700 / 7800 / 7900 and RX 9060 / 9070, and marks AMD RX 6800 / 6900 as experimental (the capability table lists "RX 6000" as supported but says it is "validated differently from the newer cards"; the two documents word this differently). The "Measured" column names where numbers are published; empty means none, not failure. See the XL edition page "AMD Radeon on the HIP Backend", the XL edition page "Intel Arc GPUs (SYCL engine)", the XL edition page "Apple Silicon Mac (Metal)", the XL edition page "Strix Halo and Integrated Radeon (Ryzen AI Max, Radeon 780M)", the XL edition page "Older and Experimental GPUs (Pascal, Volta, Maxwell, sm_80, Older AMD)", [[syntheses/hardware-comparison]]. ### License Strata is under the MIT License. A few parts carry their own licenses (ggml MIT, the web app font under SIL OFL 1.1, the experimental speed projection vector under Qwen Community License 1.0), and the models are not part of the repository; each model's own license applies. MIT does not replace the licenses of model weights, dependencies or other creators' work (media kit). Details are on [[concepts/how-the-engine-works]]. ### Feature map | Feature | Page | | --- | --- | | Install the app or Terminal | [[concepts/install-desktop-and-terminal]], [[concepts/source-install]], [[concepts/docker]] | | Engine design | [[concepts/how-the-engine-works]] | | Where data lives, VRAM sharing | [[concepts/memory-modes]] | | Speed switches, CPU workers | the XL edition page "Speed Settings, CPU Workers and Measured Speeds" | | Fix a failure | [[concepts/troubleshooting]] | | Image input | [[concepts/image-input]] | | Connect coding tools | [[concepts/connecting-coding-tools]] | | Multi-GPU, split serving | [[concepts/multi-gpu]], the XL edition page "Split serving and the all-cards split engine" | | Settings | [[concepts/settings]] | ## How to Use Pick the interface first; the docs say the three command interfaces are not interchangeable: the installed Terminal (`strata launch`, with `--gpu` and `--vision on|off`), a source checkout (`START-HERE.bat`, `SETUP.bat`, `UPDATE.bat`, `setup.sh`, with `--gpus` and `--vision yes|no`), and raw engine commands. 1. Desktop app: download the installer for your system from the GitHub releases page, install, choose a model and chat. On first start the app downloads the engine for your graphics card. 2. Terminal on Linux or Mac: ```sh curl -fsSL --connect-timeout 15 --max-time 120 https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh ``` Terminal on Windows PowerShell (open a new terminal afterwards): ```powershell irm -TimeoutSec 120 https://github.com/Niko1221/Strata/releases/latest/download/install.ps1 | iex ``` Then run `strata launch` and follow the prompts. 3. Connect a coding tool with `strata connect`. The connection registry identifiers are `claude-code`, `codex`, `opencode`, `omp` (oh-my-pi), `pi` (pi.dev), `hermes` (Hermes Agent), `openclaw` and `deepseek-harness` (built into the Strata app). `strata connect --check --output json` sends a prompt and a tool call and reports the outcomes; printed configuration is not a successful check. 4. API endpoints (default `http://127.0.0.1:8080`): OpenAI Chat Completions `POST /v1/chat/completions` and OpenAI Responses `POST /v1/responses` (base URL `http://127.0.0.1:8080/v1`), Anthropic Messages `POST /v1/messages` (base URL `http://127.0.0.1:8080`). Use the actual API key when authentication is enabled. For AI-assisted setup the README points to AGENTS.md and `docs/AI_SETUP.md` (the XL edition page "Agent and Contributor Rules (AGENTS.md, AI_SETUP.md, CONTRIBUTING)"). For articles or videos, `docs/MEDIA_KIT.md` says to use real footage or labelled illustrations, not to invent a successful install or speed reading, and not to promise "any PC" or "every model". ## Related Entities This wiki has one entity page. Related pages: the XL edition page "The Desktop App (Host, Agent Bridge, Repository Layout)", [[concepts/terminal-launch]], [[concepts/mcp-server]], [[summaries/quickstart-walkthrough]], [[summaries/release-digest-0-2]], the XL edition page "Release Digest: Engine Releases v0.1.0 to v0.1.45". Third parties named in the sources: ISTA-DASLab, Unsloth, agentionai (Gyro), UkisAI (Swift 1.5), the Qwen team, Tencent (Hy4-Flash), Thinking Machines (Inkling 2 Mini). The README lists Linger and Olares as sponsors and GitHub Sponsors and Buy Me a Coffee as ways to support development. ## Sources - raw/github_doc-readme-md.md: tagline, models, install commands, hardware table, tools, sponsorship. - raw/github_doc-docs-readme-md.md: documentation version (0.2.21), the three command interfaces, reading rules for historical documents. - raw/github_doc-docs-media-kit-md.md: short description, accuracy rules, asset notes. - raw/github_doc-docs-capabilities-md.md: component versions, model-by-hardware table, engine package names. - raw/github_doc-docs-ai-reference-md.md: product facts, model families, provider preference, API endpoints, `strata connect` identifiers. --- title: "Activity Log" type: log --- # Activity Log Append-only record of all wiki changes. ## Format Each entry follows this format: ``` ### YYYY-MM-DD HH:MM — [Action Type] - **Source/Trigger**: what initiated the action - **Pages created**: list of new pages - **Pages updated**: list of updated pages - **Notes**: any contradictions flagged, decisions made ``` --- ### 2026-04-08 00:00 — Setup - **Source/Trigger**: Repository initialized - **Pages created**: index.md, log.md, dashboard.md, analytics.md, flashcards.md - **Pages updated**: none - **Notes**: Empty knowledge base ready for first source ingestion ### 2026-11-24 — Initial build - **Source/Trigger**: new wiki for Strata (Niko1221/Strata), `main` fetched 2026-11-24, docs for version 0.2.21 - **Pages created**: 48 (37 concepts, 1 entity, 3 summaries, 7 syntheses) and index.md - **Pages updated**: none - **Notes**: 267 sources (112 docs and source files, 75 release notes, 80 closed issues). Excluded by scope: docs/history/, docs/lang/, per-run docs/bench-results/ reports. Source conflicts are shown on the pages with both readings. ### 2026-11-24 — Split into Standard and XL editions - **Source/Trigger**: owner decision before first publish: 48 pages was too large for one tier - **Pages created**: wiki-xl/index.md - **Pages updated**: 26 pages moved from wiki/ to wiki-xl/ (21 reference, 4 guides, 1 history); links repointed; wiki/index.md rewritten with an XL Edition section - **Notes**: Standard keeps 22 pages. Hardware guides are in XL by owner decision; the standard hardware comparison carries the summary. No claims were changed by the move. --- title: "Quickstart Walkthrough: Chat and a Connected Coding Tool" type: summary tags: [quickstart, install, terminal, desktop-app, connect, models] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-readme-md.md", "raw/github_doc-docs-install-md.md", "raw/github_doc-docs-terminal-quickstart-md.md", "raw/github_doc-docs-terminal-launch-md.md", "raw/github_doc-docs-models-md.md", "raw/github_doc-docs-details-md.md"] --- # Quickstart Walkthrough: Chat and a Connected Coding Tool The shortest path from nothing to a working chat and a connected coding tool, for Strata 0.2.21 (app/Terminal version). Pick one route in step 2. Commands below belong to the installed Terminal (`strata ...`) unless marked otherwise. Source-checkout commands (`START-HERE.bat`, `setup.sh`) use different flags and are not covered here; see [[concepts/source-install]]. ## Key Points ### 1. Check the computer - NVIDIA RTX GPU on Windows 10/11 or Linux x86-64: app or Terminal; the engine for your card is downloaded for you. CUDA 13 packages need NVIDIA driver 580 or newer; older NVIDIA cards use CUDA 12. - Supported AMD Radeon, Intel Arc (Linux only, Terminal only), Strix Halo and DGX Spark have their own guides: the XL edition page "AMD Radeon on the HIP Backend", the XL edition page "Intel Arc GPUs (SYCL engine)", the XL edition page "Strix Halo and Integrated Radeon (Ryzen AI Max, Radeon 780M)", the XL edition page "NVIDIA DGX Spark (GB10) on Linux". - Apple Silicon Mac needs macOS 15 or newer; Intel Macs are not supported by the Mac package (the XL edition page "Apple Silicon Mac (Metal)"). DGX Spark (Linux ARM64) has no desktop app, so use the Terminal. - A graphics driver is needed (packaged runtimes do not replace it), and models and updates need internet. ### 2. Choose a route | You want | Do | | --- | --- | | A window with chat | Desktop app (step 3a) | | The terminal, scripts, or a coding tool | Terminal (step 3b) | ### 3a. Desktop app 1. Open the latest release page, `https://github.com/Niko1221/Strata/releases/latest`, and download the one installer for your system: `Strata-0.2.21-windows-x64-setup.exe` (installs for your user, no administrator rights), `Strata-0.2.21-linux-x86_64.AppImage` (make it executable, then open it; if FUSE is unavailable run it with `--appimage-extract-and-run`) or `Strata-0.2.21-macos-arm64.dmg` (drag to Applications). The `strata-engine-...` and `strata-control-...` archives on that page are components, not installers. 2. On Windows and Linux the installer carries no engine. On first start the app shows the engine for your graphics card with its size and a **Download** button (progress and resume). If you already have the engine file, choose **I already have the file** to install without internet. The Mac file keeps its small Metal engine inside. 3. Choose a model and its storage folder, let it download, then chat. The first launch can take time while large model files are prepared. Closing the app stops its managed engine. ### 3b. Terminal 1. Install (no administrator rights; puts `strata` on your PATH). - Linux / Mac: ```sh curl -fsSL --connect-timeout 15 --max-time 120 https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh ``` - Windows PowerShell, then open a new terminal: ```powershell irm -TimeoutSec 120 https://github.com/Niko1221/Strata/releases/latest/download/install.ps1 | iex ``` - On Linux and Mac, if `strata` is not found, use the full path the installer prints (normally `~/.local/bin/strata`) or add that folder to PATH. 2. Run `strata launch` and follow the screens (model, context, storage folder, access settings). The monitor opens after startup, and no web page opens unless you add `--open`. The default local endpoint is `http://127.0.0.1:8080`; use the address Strata prints. 3. Or run it without screens. Print the plan first (nothing is downloaded or changed), then start: ```sh strata launch --plan --family qwen --model q2_0 strata launch --family qwen --model q2_0 --yes --no-tui ``` `--no-tui` leaves the server running in the background. Manage it with: ```sh strata launch --status strata launch --stop ``` If a model is already running with different settings, add `--restart` to replace it (this interrupts answers); `--yes` alone never restarts it. ### 4. Pick a model that fits - Find your memory in the "Pick by memory" table of the model guide and take the first provider that fits. The recommended order is ISTA-DASLab, then Unsloth, then Gyro, then others; an explicit choice always wins. Setup may preselect something else (for example a Swift or Gyro size at a low memory tier), so read the plan and pass `--family` and `--model` when you want a specific one. - Qwen3.8-Flash-Next, ISTA-DASLab sizes, weights in RAM plus VRAM (estimates; unified memory counts once): | Size | RAM + VRAM | Experts in shard 1 | | --- | ---: | ---: | | Q2_0 | 37.6 GB | 34 GB | | IQ2_XS | 39.2 GB | 35.5 GB | | IQ3_XXS | 47.0 GB | 43 GB | | IQ3_S | 54.8 GB | 50 GB | - The model fits when RAM is at least the experts plus about 10 GB. With 64 GB of RAM every size fits; with 48 GB, Q2_0 and IQ2_XS fit. If RAM is short, setup can read experts from the SSD, which works and is much slower. The download is 66 to 76 GB for the three smaller sizes, and the first start also fetches the MTP draft layer (about 6 GB, 1 GB more with pictures). - Other models and packs (Coder, Gyro, Hy4-Flash, Inkling 2 Mini, Qwen3.6-35B-A3B) are in [[concepts/choosing-a-model]] and [[concepts/other-models]]. - Pictures are on by default where the model can read them; `--vision off` turns them off ([[concepts/image-input]]). ### 5. Check that it works - `strata launch --status` shows what is serving. To read a running server: `strata status --url http://127.0.0.1:8080 --json` or `strata monitor --url http://127.0.0.1:8080` (see the XL edition page "Terminal Command Reference"). - The server is local to this computer by default (`127.0.0.1`). Sharing beyond it (LAN, Cloudflare quick tunnel, Tailscale) is chosen on the Access screen or with `--access local|lan|cloudflare|tailscale`; a key is recommended beyond this computer, and `--no-api-key` starts without one with a warning ([[concepts/safety-and-privacy]]). ### 6. Connect a coding tool - `strata connect` lists setup for OpenCode, Codex CLI, Claude Code, oh-my-pi (`omp`), pi, Hermes Agent, OpenClaw and the DeepSeek Harness (built into the app). Other tools can use the OpenAI- and Anthropic-compatible APIs ([[concepts/api-reference]]). - With a model serving: ```sh strata connect opencode # print the file and environment with address, key, model and context filled in strata connect opencode --write # write it after asking; anything replaced is backed up strata connect opencode --check # send one prompt and one tool call the way that app does ``` - Defaults come from the running launch, else `http://127.0.0.1:8080` and a 32k context. Use `--url`, `--key`, `--key-env`, `--model`, `--context` or `--preset` to override. - Limits printed by `strata connect`: Claude Code needs `CLAUDE_CODE_MAX_CONTEXT_TOKENS`; OpenCode needs `limit.input`; Hermes refuses windows under 64K unless set up as the config does; OpenClaw needs Node 24.16 or newer. Details: [[concepts/connecting-coding-tools]]. ### 7. Update and find files - Terminal: `strata update --check`, `strata update`, `strata --version`. App: Settings, then the update controls. `strata components rollback` returns to the previous engine. See the XL edition page "Updating and Packaging". - Desktop chats and host state are in `~/.strata` (or `STRATA_HOME`). The app normally proposes `Documents/Strata/Models` for a new model library. - If something fails, go to [[concepts/troubleshooting]]. ## Relevant Concepts - [[concepts/install-desktop-and-terminal]] for the full install guide and first start. - [[concepts/terminal-launch]] for every `strata launch` flag. - [[concepts/choosing-a-model]] for model sizes and memory needs. - [[concepts/connecting-coding-tools]] for `strata connect` and per-tool limits. - [[entities/strata]] for what the product is. ## Source Metadata - Sources: the repository README, the install guide, the Terminal quickstart, the `strata launch` guide and the model guide, snapshot of 2026-11-24 (documentation for version 0.2.21). - Installer names are the 0.2.21 ones. Memory figures are the guide's estimates; a given context may still not fit. --- title: "Release Digest: Strata 0.2.0-beta to 0.2.21" type: summary tags: [releases, changelog, version-history, app-and-terminal, engines, known-problems] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_release-strata-0-2-21.md", "raw/github_release-strata-0-2-20.md", "raw/github_release-strata-0-2-19.md", "raw/github_release-strata-0-2-18.md", "raw/github_release-strata-0-2-17.md", "raw/github_release-strata-0-2-16-strata-s-own-engine-code-a-new-folder-layout-a.md", "raw/github_release-strata-0-2-15.md", "raw/github_release-strata-0-2-14.md", "raw/github_release-strata-0-2-13.md", "raw/github_release-strata-0-2-12.md", "raw/github_release-strata-0-2-11.md", "raw/github_release-strata-0-2-10.md", "raw/github_release-strata-0-2-9.md", "raw/github_release-strata-0-2-8.md", "raw/github_release-strata-0-2-7-1-nvidia-dgx-spark-and-deepseek-on-the-mac.md", "raw/github_release-strata-0-2-6.md", "raw/github_release-strata-0-2-5.md", "raw/github_release-strata-0-2-4-deepseek-v4-1-flash-in-the-terminal-terminal-0-.md", "raw/github_release-strata-0-2-3.md", "raw/github_release-strata-0-2-3-1.md", "raw/github_release-strata-0-2-2.md", "raw/github_release-strata-0-2-1.md", "raw/github_release-strata-0-2-0-beta.md", "raw/github_doc-docs-release-notes-0-2-4-1-md.md", "raw/github_doc-docs-release-notes-0-2-4-2-md.md", "raw/github_doc-docs-release-notes-0-2-7-md.md", "raw/github_doc-docs-release-notes-0-2-0-md.md", "raw/github_doc-docs-release-notes-0-2-1-md.md", "raw/github_doc-docs-release-notes-0-2-2-md.md", "raw/github_doc-docs-release-notes-0-2-3-md.md", "raw/github_doc-docs-release-notes-0-2-3-1-md.md", "raw/github_doc-docs-release-notes-0-2-4-md.md"] --- # Release Digest: Strata 0.2.0-beta to 0.2.21 This page lists every app/Terminal release from v0.2.0-beta to v0.2.21, newest first, with what a user or operator would act on. It selects from very long notes and leaves out most measurements, thanks lists, test logs and download tables; the full text of each release is on the project's GitHub releases page. Release notes describe their own version and machines. For current behaviour use the guides, for example [[concepts/choosing-a-model]], [[concepts/terminal-launch]] and [[concepts/troubleshooting]]. Older releases are in the XL edition page "Release Digest: Engine Releases v0.1.0 to v0.1.45". ## Key Points ### How the version numbers work - Two number series run in parallel: the app and the Terminal (0.2.x) and the engine packages and Control (0.1.x). Each release below gives both where the note does. - Control is the component that installs and updates engines. From the 0.2.16 release on, Control and the engine packages are released under one number (the 0.2.16 note says there is no engine 0.1.61). A Control-only update can still move Control ahead of the engines, as 0.2.21.1 did (Control 0.1.68, engines 0.1.67). - Terminal point releases (for example 0.2.4.2, 0.2.14.1) ship a new Control through `strata update` (installed Terminal) with the app unchanged. - The DGX Spark (linux-aarch64) has its own feed file, `strata-feed-linux-aarch64.json`, and a Spark-only engine in several releases. - Update paths named in the notes: desktop app via Settings and Updates, or the installer; installed Terminal via `strata update`; a source checkout via `UPDATE.bat` (Windows) or `./setup.sh --update`. `strata components rollback` (Terminal) returns to the previous engine; Control stays on its newer number. ### v0.2.21 (2026-11-24): app/Terminal 0.2.21, engines and Control 0.1.67 - Inkling 2 Mini is much faster on most cards. Examples against 0.2.20 on the same machines: RTX 4090 after a 32K prompt 92 instead of 29 tok/s (UD-Q4_K_XL); RTX 3060 Ti 8 GB with SQ-10 43 instead of 11 tok/s; AMD RX 7900 XT with UD-IQ3_XXS 66 instead of 4.9 tok/s. - Agent sessions reuse their prompt on every backend, Apple Silicon included, so long agent sessions no longer re-read the whole prompt each turn. - The DSpark drafter works with Unsloth's re-uploaded GGUF files (0.2.20 could not start UD models with the drafter on). Unsloth's new separate drafter file `dspark-Inkling-2-Mini-Q8_0.gguf` is not read yet; Strata's own drafter download is unaffected. A short startup test decides whether the drafter is on for your card; the first start of a new setup takes about 3 minutes longer. - Fixes: a long-conversation crash (#6905); Qwen "layer 0 never rang" on RTX 30-series and newer (#6713); repeated engine crashes now stop after three tries with a message; downloads are pinned so Unsloth re-uploads do not break setup (both GGUF layouts accepted). - Known limits: on 24 GB RTX 40/50 cards the app now starts with 1 slot (raise it in the app); 32 slots suits short requests only and can fail to load on cards up to 24 GB, so use 8 slots or fewer for long documents. AMD RX 7900 XT/XTX with SQ-20 decode is about 7% below 0.2.20 (workaround in the note: `--vram-experts-gb 13.2 --ram-experts-gb 2.5`); AMD 12 GB cards on Inkling about 13% below (`--vram-experts-gb 8.5`). - **0.2.21.1 (24 November, Control 0.1.68 only; app installers and engines stay 0.2.21/0.1.67):** AMD cards with Inkling 2 Mini now plan expert placement for the first 32K tokens instead of the whole chosen context (Linux RDNA4 16 GB, SQ-15 at 128K: 9.1 GiB of experts on the card instead of 3.9; answers after a 100K document 22 instead of 13 tok/s); fp8/fp16 conversation-memory choice is planned as chosen on AMD; Linux Terminal-only installs no longer stop with `FileNotFoundError` on a `.json.tmp` file (#7012). Not tested on Windows. Get it with `strata update` (Terminal) or Settings, Updates (app). ### v0.2.20 (2026-11-22): app/Terminal 0.2.20, engines and Control 0.1.66 - All three MoE families (Qwen3.8-Flash-Next, HY-4 Flash, Inkling 2 Mini) share one 4-tier planner (GPU, RAM, CPU, SSD), down to 4 GiB and 6 GiB GPUs, with `--kv-offload auto` for 32K+ context on mid-VRAM cards and a GPU+SSD-only mode (`--ssd-experts --ram-experts-gb 0`). - Multi-GPU `--layer-split auto` (2 to 4 GPUs) works across the three families. - Inkling 2 Mini runs direct from Unsloth GGUF files (UD-Q4_K_XL, Q8_0 and others) with a fixed DSpark drafter (note: 6.5 to 61.9 tok/s on 12 GB GPUs). - Fixes: NVFP4 garbled output and 0% speculative acceptance (#6575 and related); long-prompt (24K to 45K) NaN outputs (#6431); HY-4 Flash `0xC000001D` `STATUS_ILLEGAL_INSTRUCTION` crashes on Intel 12th, 13th and 14th Gen (Alder Lake and Raptor Lake) CPUs (#6541, #6570); a Windows WDDM regression between 0.2.15 and 0.2.19 on a 16 GB RTX 4070 Ti SUPER; an SQ-20 setup error `'int' object has no attribute 'get'`; `hy4-flash-sq-64` tokenizer provisioning; exit code 3 startup failures. ### v0.2.19 (2026-11-22): app/Terminal 0.2.19, engines and Control 0.1.65 - Native Inkling 2 Mini (Thinking Machines Lab) via the new `strata-inkling` engine, with three Strata packs: SQ-10 (10.47 GB, fits 12 GiB cards and 16 GiB Macs; hybrid RAM+VRAM from 4 GiB GPUs), SQ-15 (14.35 GB, 16 GiB cards, 24 GiB Macs) and SQ-20 (19.35 GB, described as bit-exact lossless, 24 GiB+ GPUs or 32 GiB+ unified memory). Vision file `Inkling-2-Mini-Vision.strata` (0.64 GB) and DSpark drafting work in the app and `strata launch`. - `strata-inkling` also loads official `safetensors` and community `.gguf` files and supports `--gpus 2` dual-GPU expert parallelism. - Fifteen ready-made `strata-inkling` packages are fetched on demand (Windows CUDA 12/13 and HIP variants, Linux CUDA, HIP and SYCL, macOS Metal, Linux aarch64 CUDA 13). - Qwen3.8-Flash-Next is faster out of the box on NVIDIA Blackwell, RTX 40 and RTX 30 and on AMD RDNA3 with no environment variables; existing Qwen, Hy4-Flash and DeepSeek models, chats and settings stay. ### v0.2.18 (2026-11-21): app/Terminal 0.2.18, engines and Control 0.1.64 - Native Tencent Hy4-Flash via the new `strata-hy4` engine, on Windows, Linux, macOS Apple Silicon and DGX Spark. Three Strata packs from `strata-engine/Hy4-Flash-Strata`: SQ-64 (129.61 GB on disk including `Engram-Q8`; runs from 64 GiB RAM with an 8, 12 or 16 GiB GPU), SQ-96 (157.16 GB, tuned for 96 GiB systems) and SQ-128 (181.23 GB, for 128 GiB+ systems). - Built-in DFly2 speculative decoding and `Hy4-Flash-Vision.strata` (0.93 GB) work in the app and `strata launch`. The app and Terminal show hardware-fit badges for the three packs and resume partial multi-part downloads. ### v0.2.17 (2026-11-20): app/Terminal 0.2.17, engines and Control 0.1.63 - **Default changed:** the route tail skip (Expert settings "Skip rarely used parts of the model", `STRATA_ROUTE_TAIL_SKIP`) is now off by default because people reported quality loss. Turn it on with `strata launch --set STRATA_ROUTE_TAIL_SKIP=7` (Terminal), the Expert setting, or the `"env"` of the model's run config. A value you set yourself is never changed. - **Default changed:** for Unsloth UD-Q4_K_XL and UD-IQ4_XS when experts do not all fit in RAM, setup keeps `RAM - 17 - the streamed KV cache` GiB of experts in RAM (0.2.16: `RAM - 24`). Per-PC example in the note: a 64 GB PC goes from 40 to 47 GiB. The app's "Leave 20% for my work" keeps the old number. `--ram-keep-gib` and `STRATA_RAM_KEEP_GIB` win in every mode. - On NVIDIA compute capability 12.0 cards, short prompts of up to 16 tokens go through the decode windows by default; `--short-read 64` or `STRATA_SM120_PERF=0` restores the old rule. `STRATA_ADAPT_FETCH=2` is on by default for one card of 16 GB or less in the RTX 50 series (`STRATA_ADAPT_FETCH=0` turns it off). The CPU prompt share is armed by default on a two-CUDA-card layer split (`STRATA_SPLIT_CPU_SHARE=0` off). - The Coder model has a new pinned build (shard 1 is 29,608,446,496 bytes, new SHA-256, #3445); people with the old first shard download 29.6 GB again. - Fixes include: the app's first-run "couldn't read its download list" (two update checks colliding); Windows `strata` launch screens were slow per key press; Windows HIP `--adapt-async 1` and `STRATA_ADAPT_OVERLAP=1` are refused unless `STRATA_WIN_HIP_RISKY=1`; cgroup v1 RAM accounting in containers on Linux; Metal engine builds on Apple Clang; many tool-call parsing cases and `/v1/models` fields (`max_model_len`, `context_length`, `max_context_length`); `strata complete --shell bash|zsh|fish` prints a completion script. ### v0.2.16 (2026-11-18): app/Terminal 0.2.16, engines and Control 0.1.62 - The engines for NVIDIA, AMD, Intel Arc and the Mac run on Strata's own code with no ggml and no llama.cpp matrix kernels; the note reports the same tokens as 0.2.15 on its 10 test prompts on most machines, with listed exceptions (the Strix Halo picture answer, 4 short prompts on the DGX Spark, and 2 of 10 answers on the Windows CUDA 12 engine on an RTX 5070). - **Mac M1 to M4 with UD-Q4_K_XL: update.** 0.2.15 computed only a quarter of the columns in some layers there (#4141). The M5 was not affected. The app and engine now need macOS 15.0. - **Folder layout:** for people who build from a clone, top-level folders moved into `engine/`, `app/`, `terminal/`, `docs/` and `tools/`; build the engine with `cmake -S engine`. Clone users run `UPDATE.bat` (Windows) or `./update.sh` (Linux and Mac) once; a clone left on a tag or commit needs `git checkout main` first. - Windows: a crash at start on accounts that refuse a WMI query is fixed; `strata` works in a default PowerShell; `install.ps1` no longer rewrites your user PATH. - Linux: Ubuntu's memory guard (systemd-oomd) could end a big model load; Strata now frees memory held by the model's old file copies first (reduced, not removed). - Terminal: tuning starts on Skip; when port 8080 is taken press `u` to use 8081; the Save screen lists downloads with sizes. - Known problems listed: Windows engine can stop with exit code 0xC0000409 on Strix Halo or small page files (enlarge the page file, shorten context, or use `--expert-cache 8192`); a saved `--drafting off` stays off after an update (use `--drafting auto`); on Windows from 0.2.15 one `strata update` can leave the engine behind (run it again); Strix Halo with 32 GB RAM can make a second chat wait for minutes. ### v0.2.15 (2026-11-16): app/Terminal 0.2.15, Control 0.1.61, engines stay 0.1.60 - No new settings; the engine is not downloaded again. The Intel Arc and DGX Spark engines stay 0.1.59. - **The app no longer starts llama.cpp's llama-server:** a model added with "Use a local GGUF" now loads only on Strata's own engine. - Drafting fixes: Drafting Off in the app no longer downloads the draft layer (about 5 GB); a Drafting choice made on the Models screen survives an app restart; a drafter chosen in the Terminal (MTP, DFlash2, Auto) stays chosen after a restart. - Qwen3.6-35B-A3B first-run install through the app fixed (the bar no longer stalls at 99%; engine installed before the model so the picture reader downloads). - `strata update --backend amd` on a PC with both an NVIDIA and an AMD card now picks the AMD package. Linux library errors are named with an install hint; the note says the Linux AMD engines (RX 6000, RX 7900, RX 9000) need `libatomic.so.1`. ### v0.2.14 (2026-11-15): app/Terminal 0.2.14, Control and engines 0.1.60 - Prompt reading now runs on Strata's own kernels on NVIDIA and AMD (Windows and Linux); before, it used code taken from llama.cpp. Answers can differ from 0.2.13 in some words. A source build can still choose the old path with `-DSTRATA_MMQ=ON`. Intel Arc and DGX Spark stay at 0.1.59. - Strix Halo on Windows: "Path A" is the default for the prompt's experts on UD-Q4_K_XL. - Drafting fixes: a model starts without a drafter only when you choose Off; the Terminal on cards where Auto picks MTP no longer started without a drafter; a saved Off holds. - **0.2.14.1 (11-15, Control 0.1.60.1):** on Mac, drafting Off no longer downloads the 5.2 GB MTP layer; without internet the launch says it starts without a drafter. - Known problems: Radeon R9700 on Linux driver pauses; Radeon 780M on Linux is an experimental opt-in (`STRATA_EXPERIMENTAL_GFX1103=1`); first launch of a fresh install takes several minutes. ### v0.2.13 (2026-11-09): app/Terminal 0.2.13, Control and engines 0.1.59 - DFlash2 window and confidence defaults per card: Strix Halo, and Blackwell compute capability 12.0 with 48 GB or more. The app's Load now fetches the tuned DFlash2 drafter by itself when Auto picks it. - Strix Halo (Windows): the Terminal launch of UD-Q4_K_XL with pictures off now starts in 60 to 85 seconds (0.2.12 test: not ready after 308 seconds in one run). - Windows RX 9070 / R9700 (gfx1201) and RX 7900 (gfx1100): the hipBLASLt table is no longer used by default (`STRATA_HIPBLASLT_TABLE=on` uses it). - One fit label in the app and Terminal: "fits" when model files without the lookup table fit graphics memory plus RAM, otherwise "may run slower". - Intel Arc: the same prompt now gives the same answer on every run; `STRATA_SYCL_BF16_DET=0` restores oneMKL. - **0.2.13.1:** Control 0.1.59.1 fixes setup stopping with "no NVIDIA GPU found" for an Arc card in the Linux app; the app cannot download models for an Arc card yet, use "Use your own GGUF…". - Known problems: a first launch of a fresh install can take about 5.5 minutes; after the in-app update on Linux (AppImage), Strata closes and must be started again. ### v0.2.12 (2026-11-07): app/Terminal 0.2.12, Control and engines 0.1.58 - A tuned DFlash2 drafter (0.34 GB, 0.52 GB on Intel Arc) is now used by Auto on Mac, NVIDIA cards with every expert on the card, DGX Spark, Strix Halo, Intel Arc A-series and 12 GB NVIDIA cards (model lists in the note). Back to MTP: `strata launch --drafting mtp`. - On Radeon gfx1201 (R9700, RX 9070) Auto starts MTP, not DFlash2 (DFlash2 chosen by hand can stall on the prompt: 11 of 50 engines on 0.2.11); `--drafting dflash2` chooses it. - A download with a wrong checksum is kept as `.bad`. New setting `undeclared_tool_calls` (`text` by default, `call` is opt-in; env `STRATA_UNDECLARED_TOOL_CALLS=call`). Claude Desktop's model name on `/v1/messages` is accepted (#5312). - Mac: fresh installs of UD-Q4_K_XL and UD-IQ4_XS-v31 stopped at "Preparing your model"; fixed (#5390). ### v0.2.11 (2026-11-05): app/Terminal 0.2.11, Control and engines 0.1.57 - Unsloth re-uploaded its Qwen3.8-Flash-Next GGUFs on 11-04 ("Dynamic v3.1"). Strata offers seven: UD-IQ1_M, UD-Q2_0, UD-IQ2_XS, UD-Q2_K_XL, UD-IQ3_XXS, UD-Q3_K_XL and UD-IQ4_XS-v31 (68.0 to 93.7 GB downloads), via `strata launch --family unsloth --model ` (Terminal). UD-IQ1_S does not load. UD-IQ4_XS-v31 is a different file from the existing UD-IQ4_XS. - **Chats are now files** in Strata's data folder (`chats\.json`), not browser storage. A 0.2.10 app opened later keeps only its own browser copy; chats made in 0.2.11 are only in the `chats` folder. - Fix of a privacy bug: with replicas (a model loaded twice), a request could receive another request's text (#2892). - Defaults changed on NVIDIA compute capability 8.0+: K-quant prompt kernels on for UD-Q4/Q5/Q6_K_XL (off: `STRATA_MMQ_KQ=0`), a bare `--prefill auto` ceiling of 32768 tokens (was 8192). FP16 weight cache on Linux NVIDIA with `--parallel` or `--batch` of 2 or more (off: `STRATA_PF_W16_CACHE_MIB=0`). - All-cards split engine starts on four R9700 cards for IQ3_S-type files too (`--split-engine off` to disable). Small multi-card layer splits start by trimming settings step by step; a named DFlash2 keeps your number of requests. ### v0.2.10 (2026-11-02): app/Terminal 0.2.10, Control and engines 0.1.56 - **DFlash2 is the default drafter for Qwen3.8** when Drafting is Auto on supported cards (NVIDIA architectures 8.6, 8.9, 12.0 and 12.1, Radeon gfx1100, gfx1151 and gfx1201, Apple Metal, Intel Arc). Choices are Auto, MTP, DFlash2 and Off; one drafter per run. Auto picks MTP when `--parallel` or `--batch` is 2 or more. Back: `strata launch --drafting mtp`. - The all-cards split engine starts by itself on Linux from the Terminal (two NVIDIA cards of compute capability 8.6 or 12.0, or four Radeon AI PRO R9700 cards with a UD-Q4_K_XL-type file). Off: `--split-engine off`, `"split_engine": "off"` or `STRATA_SPLIT_ENGINE=0`. It does not support logprobs or logit_bias. The 0.2.10 note says the app keeps the layer split with DFlash2 and gets the split engine in 0.2.10.1; the 0.2.11 note says the app now starts it wherever the Terminal does. - New: the ISTA-DAS Coder for DeepSeek-V4.1-Flash (`strata launch --model ISTA-DAS-Coder`, 191 GB download for someone with no DeepSeek file); DeepSeek pictures on Mac; 128K context on 8 GB cards (the context never shrinks, work moves off the card instead). - Coming from 0.2.9, run `strata update` twice to get the DeepSeek engine. - Known: DeepSeek answers can differ between starts at temperature 0; the DeepSeek drafter is fetched even with `--dspark off`. ### v0.2.9 (2026-10-31): app 0.2.9, Control and engines 0.1.55 - Unsloth's 1-bit DeepSeek sets UD-IQ1_S and UD-IQ1_M became a choice (241 GB and 258 GB downloads). Strix Halo on Windows reads Qwen3.8 IQ3_S prompts 1.8 times as fast. - On Linux with NVIDIA cards, parallel-request settings (with `--parallel` or `--batch` of 2 or more) and Gated DeltaNet kernels are on by default; turn the kernels off with `STRATA_GDN_TC=0` and `STRATA_GDN_CONVL2=0` (NVIDIA) or `STRATA_GDN_CHUNKED=0` (Radeon gfx12). - DeepSeek on several AMD cards (Linux) now uses all cards by default; `strata launch --gpu N` stays on one. ### v0.2.8 (2026-10-29): app 0.2.8, Control and engines 0.1.54 - Two Intel Arc Pro B65 cards decode 17% to 23% faster (`--pipeline-windows 2`, off with `--pipeline-windows 0`). A four-card Radeon AI PRO R9700 profile for Qwen3.8 IQ3_S serves 2.4 times the total speed at 32 requests (off: `"four_card_profile": false`). - **Default changed back:** on RTX cards with 12 GB or less the 0.2.7 routing speed-up is off again by default; enable it with "Faster answers on 12 GB NVIDIA cards" or `strata launch --set STRATA_ROUTE_PRIOR=1.5`. - Fixes: DeepSeek on Mac slowdown (memory leak); DeepSeek stopping mid-word (#4576, #4137); tool calls written slightly wrong are recovered by default (only for tools the request declared). ### v0.2.7 (2026-10-27; the release page is titled 0.2.7.1): app 0.2.7, engines 0.1.52, Control 0.1.53 since 0.2.7.1 - **0.2.7.1:** NVIDIA DGX Spark (Linux ARM64) support via the Terminal only (`curl ... install.sh`, then `strata launch`); needs glibc 2.39+ and driver 580.65+. Qwen3.8-Flash-Next (IQ3_S and NVFP4) and DeepSeek-V4.1-Flash 2.00 bpw run there; the Q2_0 and Gyro packs do not start on ARM. DeepSeek-V4.1-Flash on Apple silicon (text only, macOS 15+, 257 GB or 274 GB free disk): `strata launch --family deepseek41 --model ist-das-2.00bpw`. - 0.2.7: faster 12 GB NVIDIA cards (router prefers experts on the card); faster Radeon RX 9000 / R9700; DeepSeek on Ryzen AI Max (Strix Halo) on Windows; DeepSeek 512K and 1M contexts; DeepSeek reads pictures by default; layer-major prefill on two-card CUDA splits; French as the ninth app language; a larger web chat page. - Rollback switches: `DS4_DEFAULTS=026` (DeepSeek) and `STRATA_DEFAULTS=026` (Qwen) restore the 0.2.6 defaults. Off by default: KVA "Faster long prompts" (`STRATA_KVA=1`), `--split-serve P,D`. ### v0.2.6 (2026-10-25): app and Terminal 0.2.6, DeepSeek engine and Control 0.1.51, Qwen engines 0.1.50 - Uninstalling on Windows removes the program folder (fixes the 0.2.5 known issue). The monitor leaves out an integrated chip next to a real card. - DeepSeek is faster on PCs with a lot of RAM (all CPU-side experts copied in at load when they fit with 8 GiB to spare; loading takes longer). - Linux AMD (HIP) engines hang inside WSL; setup and `strata launch` warn and go on. NVIDIA works under WSL. ### v0.2.5 (2026-10-25): app and Terminal 0.2.5, engines and Control 0.1.50 - **One installer per system**: `Strata-0.2.5-windows-x64-setup.exe`, `Strata-0.2.5-linux-x86_64.AppImage`, `Strata-0.2.5-macos-arm64.dmg`. Windows and Linux files carry no engine; the first start offers a Download button (or "I already have the file"). The old per-GPU installers are not attached again. - DeepSeek V4.1-Flash in the app, with a Faster or Full quality choice (Terminal: `--speed`, `--full-quality` or `--experts N`). - Intel Arc on Linux (SYCL) needs Ubuntu 24.04 or newer (glibc 2.38). A big model gets a longer start wait. Known issue: uninstalling on Windows right after use can leave the program folder behind. ### v0.2.4 (2026-10-24): Terminal 0.2.4 to 0.2.4.2, app stays 0.2.3, Qwen engines 0.1.48, Control 0.1.49 to 0.1.49.2 - DeepSeek V4.1-Flash in the Terminal (`strata launch`, `strata setup`) in three ISTA-DASLab sizes: IQ1_M (239 GB), IQ2_XXS (257 GB), IQ2_XS (274 GB). It runs on its own engine package, `strata-dsv41`. Needs a 12 GB or larger card; 46 GB of RAM worked, 64 GB is the tested comfortable size. Not on Mac or Strix Halo in this release. - **0.2.4.1 (Control 0.1.49.1):** DeepSeek setup from the installed Terminal stopped at "Preparing your model" because preparation scripts were missing from the packages; run `strata update`, then set up again. The RTX 3060 speed figure was corrected to 8 to 10 tokens/s. - **0.2.4.2 (Control 0.1.49.2, DeepSeek engines 0.1.49.2):** faster DeepSeek on AMD Ryzen 3000 / Threadripper 3000 / EPYC 7002 CPUs; the DeepSeek engine updates itself at the next `strata launch`; the install line is now `curl -fsSL https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh`. ### v0.2.3 (2026-10-23): app and Terminal 0.2.3, engines 0.1.48 - Intel Arc is a released engine package (Linux, SYCL); Arc Pro B-series cards are allowed. DFlash2 drafting is opt-in in the Terminal only (`strata launch --drafting dflash2`; other choices `auto`, `mtp`, `off`). HTTPS uses the operating system's certificates. - **From 0.2.0-beta or 0.2.1 to 0.2.1.2, run the install command once more**; the old Terminal cannot switch to a newer Control by itself. - **0.2.3.1 (2026-10-23, Control 0.1.48.1):** setup no longer stops on the Windows NVIDIA engine package (#3810). ### v0.2.2 (2026-10-21): engines 0.1.47 - Graphics cards can be Main, Helper or Off (in the app, `strata launch`, setup, the server and Docker); the API key is optional (`--no-api-key`, with a warning); your own GGUF files load again; one models folder is shared by the app and the Terminal (change it in Settings, Storage). - Gyro runs on Intel Arc (Linux, tested on an A750 only) and on Apple Silicon Macs, and is faster on NVIDIA. An engine package for the RX 6000 series (`rx6000` on Linux, `rdna2` on Windows) is described as built but not tested on a real RX 6000 card; the same note also says no Windows `rdna2` package had been built yet. - One definition of answer speed everywhere (every produced token divided by decode time). ### v0.2.1 (2026-10-20): engines 0.1.46 - Task board in the app; pictures on Mac (Metal reader) and on Intel Arc A-series (CPU reader by default; Battlemage stays opt-in); `strata bench run` with the standard-v1 suite; Docker images `ghcr.io/niko1221/strata:0.2.1-`; your hand-set engine options are kept (`user_args`). - Terminal point releases 0.2.1.1 to 0.2.1.4 (Terminal 0.1.46.3 at the end) fixed Windows long-path engine installs, Strix Halo start on Windows, and RX 9000 cards being given the RX 7000 build. - Update checks run only when you click. Known: the Windows installers were not code-signed ("Windows protected your PC": More info, then Run anyway); the Mac dmg was signed and notarised by Apple. ### v0.2.0-beta (2026-10-19): engines 0.1.45.3 - Strata becomes an app, a Terminal and an engine. Per-GPU installers (for example `Strata-0.2.0-beta-windows-cuda13.exe`) that carry an engine. Pictures on by default on NVIDIA and AMD; the picture reader runs on the CPU for cards under 24 GB. Qwen3.6-35B-A3B in the catalog. Memory-tier suggestions: 40 GB Swift 1.5 IQ2_XS (or Gyro-M), 48 GB IQ3_XXS, 64 GB or more IQ3_S. `strata code` was not available; use `strata connect`. - Known: no Mac picture reader yet; nothing had run on a real AMD card on Windows. ### Status of DeepSeek in later notes The 0.2.13 release carries the DeepSeek engines at 0.1.59 for Windows, Linux, Mac and the DGX Spark. The 0.2.14 to 0.2.18 notes say the older DeepSeek engines 0.1.59 for Windows, Linux and the Mac stay on the 0.2.13 release and the update feed downloads them from there (0.2.14 and 0.2.15 also re-attach the DGX Spark's 0.1.59 DeepSeek engine). The 0.2.19 to 0.2.21 notes call them "frozen DeepSeek 0.1.59 engines". The release notes do not state why they are frozen. See [[concepts/other-models]]. ## Relevant Concepts - [[concepts/choosing-a-model]] and the XL edition page "Alternative Packs: Gyro, NVFP4, Swift 1.5 and OrcaRouter" for the Gyro, NVFP4 and Unsloth packs mentioned above. - [[concepts/other-models]] for Hy4-Flash, Inkling 2 Mini, Qwen3.6-35B-A3B and DeepSeek status. - the XL edition page "Updating and Packaging" for `strata update`, rollback and the feed. - [[concepts/memory-modes]] and the XL edition page "Speed Settings, CPU Workers and Measured Speeds" for the RAM-keep, expert-placement and drafting settings. - the XL edition page "Split serving and the all-cards split engine" and [[concepts/multi-gpu]] for the split engine and layer split. - [[entities/strata]] for the version scheme. ## Source Metadata - Source type: GitHub release notes (23 releases, tags v0.2.0-beta to v0.2.21; the v0.2.7 release page is titled 0.2.7.1 and the v0.2.4 release page is titled 0.2.4.2) plus the repository's `docs/release-notes-0.2.*.md` mirrors for 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.3.1, 0.2.4, 0.2.4.1, 0.2.4.2 and 0.2.7. - Dates are the releases' published timestamps (UTC). Snapshot: 2026-11-24. - Notes describe their own versions and machines; measurements here belong to the machines named in the original notes. A result on one GPU does not establish support or speed on every GPU. - Not covered: per-release speed tables, test logs, contributor thanks, file sizes and checksums. --- title: "Hardware Comparison: NVIDIA, AMD, Intel, Apple, Older GPUs and DGX Spark" type: synthesis tags: [hardware, gpu, backends, support-matrix, comparison, platforms] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-capabilities-md.md", "raw/github_doc-docs-install-md.md", "raw/github_doc-docs-readme-md.md", "raw/github_doc-readme-md.md", "raw/github_doc-docs-amd-hip-md.md", "raw/github_doc-docs-strix-halo-md.md", "raw/github_doc-docs-strix-halo-windows-md.md", "raw/github_doc-docs-radeon-780m-md.md", "raw/github_doc-docs-intel-md.md", "raw/github_doc-docs-intel-arc-md.md", "raw/github_doc-docs-mac-md.md", "raw/github_doc-docs-older-gpus-md.md", "raw/github_doc-docs-nvidia-v100-md.md", "raw/github_doc-docs-dgx-spark-linux-md.md", "raw/github_doc-docs-multi-gpu-md.md"] --- # Hardware Comparison: NVIDIA, AMD, Intel, Apple, Older GPUs and DGX Spark This page puts the per-hardware guides side by side: what level of support the docs claim, which backend and engine package runs, which operating systems, which models, how to install, and the limits each guide states. The guides describe version 0.2.21 of the app and Terminal; the capability table lists Control 0.1.68 and engines 0.1.67 (app, Control and engine numbers differ on purpose). The docs add a caveat that applies to everything below: "A published result on one GPU does not establish support or speed on every GPU." Speed numbers live in the XL edition page "Community Benchmarks by Machine", not here. ## Comparison ### Support level at a glance "Docs' wording" is the phrase the guide uses. All commands in this table are Terminal (`strata launch`) commands unless marked source checkout. | Hardware | Docs' wording | Backend and engine package | OS | Install route | Qwen3.8-Flash-Next | Qwen3.6-35B-A3B | | --- | --- | --- | --- | --- | --- | --- | | NVIDIA RTX 20 / 30 / 40 / 50 | README: "Supported hardware"; capability table: supported | CUDA; `cuda-cuda12`, `cuda-cuda13` | Windows 10/11, Linux x86-64 | Desktop app or Terminal; the engine is downloaded for you | supported | supported | | NVIDIA DGX Spark (GB10) | capability table: "supported: GB10" | CUDA; `cuda-cuda13` (Linux ARM64 engine) | Linux ARM64 only | Terminal only (no ARM64 desktop app) | supported | package present, untested | | AMD RX 7700 / 7800 / 7900, RX 9060 / 9070, AI PRO R9700 | README: "Supported hardware" | HIP; Windows `hip-rdna3`, `hip-rx9070`; Linux `hip-rx7900`, `hip-rx9070` | Windows, Linux | App or Terminal | supported | supported | | AMD RX 6800 / 6900 (RDNA2) | README: "experimental"; AMD guide: "Has a package, not tested on a real card"; capability table: supported, "validated differently" | HIP; Windows `hip-rdna2`; Linux `hip-rx6000` | Windows, Linux | App or Terminal | supported | supported | | AMD Ryzen AI Max, Strix Halo (gfx1151) | Strix Halo guide: "Status: experimental"; README lists it as supported hardware; capability table: supported | HIP; Linux `hip-halo`; Windows `hip-rdna3` | Windows, Linux (WSL is not supported: the AMD engines hang there) | App or Terminal | supported | supported | | Radeon 780M / 760M (gfx1103) | "experimental and opt-in" (`STRATA_EXPERIMENTAL_GFX1103=1`) | HIP, hand-built | Linux only; not supported on Windows | Build from source | measured on one machine | not stated | | Intel Arc A-series and B-series | capability table: supported | SYCL; `sycl` (`linux-x86_64-sycl`) | Linux only (Ubuntu 24.04 or newer) | Terminal only; no Intel desktop installer | supported | does not run | | Apple Silicon (M1 or newer) | capability table: supported, macOS 15 or newer; the Mac guide calls the status "new" | Metal; `metal` | macOS (Intel Macs cannot run it) | `.dmg` app, Terminal, or source `./setup.sh` | supported | does not run | | Older and experimental NVIDIA and AMD | "experimental" (opt-in paths written by community members) | CUDA 12 engine, or hand-built HIP | per card | see below | per card | per card | The capability table (built from `docs/data/capabilities.json` and the v0.2.21 package names) defines its columns: Packaged is what the release contains for that hardware, Supported is "what these docs commit to" (untested means a package exists and nothing is claimed), and Measured says where numbers are published; empty "does not mean the combination fails". It covers only the two Qwen families. Hy4-Flash, Inkling-2-Mini and DeepSeek are not in that table; the capability page notes that the DeepSeek engines for `linux-x86_64-cuda-cuda13`, `linux-x86_64-hip-rx9070`, `macos-arm64-metal`, `windows-x86_64-cuda-cuda13` and `windows-x86_64-hip-rdna3` stay at engine 0.1.59. See [[concepts/other-models]] for those models. ### Install requirements shared by all - The install guide lists the requirement per computer: Windows 10/11 or Linux x86-64 with an NVIDIA RTX GPU; Windows or Linux x86-64 with a supported AMD Radeon; Linux x86-64 with Intel Arc; Apple Silicon Mac on macOS 15 or newer; DGX Spark (Linux ARM64). - CUDA 13 packages require NVIDIA driver 580 or newer; older NVIDIA cards use CUDA 12. AMD needs only the graphics driver (Windows: AMD Software Adrenalin Edition; Linux: the kernel's amdgpu driver, "no ROCm install"). Packaged GPU runtimes do not replace hardware drivers. - Memory and disk depend on the model, quantization, context and enabled features; unified memory counts once; the Terminal's `--plan` prints what is missing. Details: [[concepts/install-desktop-and-terminal]]. ### AMD Radeon (HIP): per-card status | Card | Architecture | Status in the AMD guide | | --- | --- | --- | | RX 7900 XT / XTX | gfx1100 | Maintainer-tested | | RX 9070 / 9070 XT, Radeon AI PRO R9700 | gfx1201 | Maintainer-tested | | RX 9060 XT | gfx1200 | Validated by its owner | | RX 7800 XT / 7700 XT | gfx1101 | Validated by its owner | | RX 7600 XT | gfx1102 | Reported working, not validated | | RX 6800 / 6900 series, RX 6700 XT | gfx1030, gfx1031 | Has a package, not tested on a real card | | Ryzen AI Max (Strix Halo) | gfx1151 | Own page | | Radeon 780M / 760M | gfx1103 | Linux, opt-in build | | Instinct MI50 / MI60, Radeon VII | gfx906 | Source build, community-tested | Strix Point (890M / 880M, gfx1150) and Krackan (860M / 840M, gfx1152) are "named and not supported by setup". One community report built gfx1150 as an unvalidated target. RDNA1 (gfx1012) builds by hand. "Other AMD architectures and mixed AMD/NVIDIA runs are not supported." Ready-made HIP packages (the Terminal and `strata update` choose the one whose GPU code covers the card; the app downloads it on first start): | Package | OS | GPU code inside | | --- | --- | --- | | `rx9070` | Windows | gfx1200, gfx1201 | | `rdna3` | Windows | gfx1100, gfx1101, gfx1102, gfx1151 | | `rdna2` | Windows | gfx1030, gfx1031 | | `rx9070` | Linux | gfx1200, gfx1201 | | `rx7900` | Linux | gfx1100, gfx1101, gfx1102 | | `halo` | Linux | gfx1151 | | `rx6000` | Linux | gfx1030, gfx1031 | RDNA2 has no matrix cores and hipBLASLt ships no gfx1030 kernels, so the RX 6000 packages run plain kernels. Windows AMD notes from the guide: no ROCm or HIP SDK, no compiler and no admin rights are needed; `START-HERE.bat --backend hip` is a source-checkout option for developers; a tested Linux multi-GPU pair "does not validate the same pair on Windows". Full page: the XL edition page "AMD Radeon on the HIP Backend". ### Strix Halo and integrated Radeon - **Strix Halo (Radeon 8060S / 8050S, gfx1151).** One LPDDR5X pool shared by CPU and GPU, counted once. Engine variants: `linux-x86_64-hip-halo` (Linux) and `windows-x86_64-hip-rdna3` (Windows). Packaged engines carry the hipBLASLt tuning table and select it themselves. On Windows, the guide says to set a fixed graphics carve-out in the BIOS (64 GB on the measured PC), and warns to keep RAM free (Qwen IQ3_S held 49 GB of 63.6 GB there) and not to run two engines. - **Radeon 780M / 760M (gfx1103).** Linux only, built from source, "experimental and opt-in"; "the maintainers have not run one". Windows: "Phoenix / Hawk Point (780M / 760M) is not supported on Windows". The guide also reports that the 780M's current Ubuntu firmware can still reset the GPU now and then. Pages: the XL edition page "Strix Halo and Integrated Radeon (Ryzen AI Max, Radeon 780M)". ### Intel Arc (SYCL) - Terminal route on Linux: `strata launch --model-path /path/to/the/gguf/folder --plan`, then without `--plan`. The first launch downloads the `linux-x86_64-sycl` package. One package serves Alchemist and Battlemage (GPU code is compiled at first start). Your user must be in the `render` group; the Level Zero loader and compute runtime stay the PC's own (Ubuntu: `intel-opencl-icd libze1 libze-intel-gpu1`). - A PC that also has an NVIDIA or AMD card uses that card by default; `--backend intel` selects the Intel cards and is remembered. - Limits stated: models are not downloaded for Intel cards yet (give the folder with `--model-path`); the MTP draft layer is not built, so answers are a little slower; Windows has no path; WSL2 was used by one tester and setup cannot detect the card there; not tested by anyone: Windows, Arc on WSL2 with the current engine, integrated Intel GPUs other than the Arc B390, and pictures on a Battlemage card with a GPU reader. Maintainers test on an Arc Pro B70 (xe driver) and an Arc A750 (i915); other cards are community reports. - CPU: no AVX-512 is needed for model folders that contain `native_experts.txt`; an older Q2_0 folder needs AVX-512. - Source route (source checkout, not Terminal): `./setup.sh --backend sycl`, which needs Docker. Details: the XL edition page "Intel Arc GPUs (SYCL engine)". ### Apple Silicon (Metal) - Needs macOS 15 or newer (the engine's residency set). Pack memory, from the Mac guide: | Pack | File the GPU maps | Needs about | Recommended from | | --- | --- | --- | --- | | Q2_0 | 37.6 GB | 50 GB | 96 GB; streams below that | | IQ3_XXS | 47.0 GB | 60 GB | 80 GB | | IQ3_S (default from 96 GB) | 54.8 GB | 68 GB | 96 GB | | UD-Q4_K_XL | 82.6 GB | 95 GB | 128 GB | | UD-Q5_K_XL, UD-Q6_K_XL | 103.9 / 114.8 GB | streams from the SSD on 128 GB | 128 GB, streamed | | Gyro-S | 29.7 GB (plus a 28.8 GB n-gram table) | 43 GB | 64 GB; streams below that | | Gyro-M | 63.2 GB (plus the table) | 76 GB | 128 GB; streams below that | - Metal lets one program keep about 3/4 of memory resident. A Mac under 16 GB unified memory "is told the model does not fit". On 32 to 64 GB the engine streams experts from the SSD (the file must be on the internal SSD). - Limits: Qwen3.6 does not run; Swift and Coder are not set up on Mac; the control vector and `--calibrate` are not ported; context measured up to 32K (up to 262K can be set but is not measured); streaming measured at 32 GB only; pictures checked on one Mac mini M4 only. Measured on three Macs (M5 Max 128 GB, M4 Mac mini 32 GB, M1 Max 34 GB); other chips untested. Page: the XL edition page "Apple Silicon Mac (Metal)". ### NVIDIA DGX Spark (GB10, Linux ARM64) - GB10: Blackwell GPU (compute capability 12.1, 48 SMs) and 20 Arm CPU cores sharing 128 GB; tested on one Spark (Ubuntu 24.04, driver 580.173, CUDA 13.0). Install: `install.sh` then `strata launch` (engine package `linux-aarch64`; needs glibc 2.39 or newer and NVIDIA driver 580.65 or newer). - Works: Qwen3.8-Flash-Next IQ3_S (84 GB download) and the NVFP4 GPTQ pack at 64K context with every expert cached. Not built for ARM: the desktop app, the HIP, SYCL and CPU-only engines, and the Q2_0 and Gyro packs (x86-only CPU kernels; the engine refuses them). Not tested: contexts above 128K, more than eight chat slots, a long soak. Nothing "is known to work on another ARM machine". Page: the XL edition page "NVIDIA DGX Spark (GB10) on Linux". ### Older and experimental GPUs NVIDIA, from the support matrix (opt-in, community-measured; maintainers own one Tesla P100): | Cards | Compute capability | How it runs | | --- | --- | --- | | Quadro M6000, GTX 900 series (Maxwell) | 5.2 | Source build with CUDA 12.x; one reporter; "Not in the ready-made CUDA 12 engine" | | Tesla P100 | 6.0 | CUDA 12 engine | | Tesla P40 / P4, GTX 10 series | 6.1 | CUDA 12 engine | | Tesla V100, Titan V | 7.0 | CUDA 12 engine (experimental; app installer or Terminal provide it as a component) | | RTX 20 (Turing) | 7.5 | "supported", the ready-made engine | CUDA 13 dropped Pascal and Volta, so setup keeps a second engine built with CUDA 12.9 in `engine-cuda12\`; the choice is per model, by the oldest card that model runs on. `--cuda 12` (or `STRATA_CUDA=12`) is also the way to run with an NVIDIA driver older than 580 (these `--cuda` and `START-HERE.bat` options are source-setup options, not `strata launch` flags). An RTX 50 card (sm_120) in a CUDA 12 engine is a warning; engines built with CUDA 12.8 crashed on long prompts there; use CUDA 13.0 or newer. AMD: gfx1030/1031 and gfx1032 (RX 6600 family: "unvalidated", built not tested on a real RX 6600) use the RX 6000 engine; gfx1012 (RX 5500 XT), gfx1010 (RX 5700 XT, RX 5700, RX 5600) and gfx1011 are built by hand; gfx906 (MI50, MI60, Radeon VII, wave64) needs `-DSTRATA_HIP_GFX906=ON` and "is community-tested: the maintainers have no gfx906 card". The gfx906 build does not run Qwen3.6. Page: the XL edition page "Older and Experimental GPUs (Pascal, Volta, Maxwell, sm_80, Older AMD)". ### Several GPUs - Same make only. Layer split (pipeline parallelism, no NVLink needed). Terminal: `strata launch --gpu 0,1` or `strata launch --gpu-roles 1=main,0=helper`; the app has Main, Helper, Off per card. Source checkout uses `--gpus` instead; the flags are not interchangeable. - Not supported in a split (multi-GPU guide): cards below compute capability 7.5 unless you opt into the CUDA 12 engine, a card with under 8 GB together with others (setup warns and asks), Intel GPUs in a split, and mixing NVIDIA and AMD. A split "can add capacity without adding speed"; it pays most when the experts do not fit the faster card. - Page: [[concepts/multi-gpu]]. ## Analysis This section is the wiki's reading across the guides, not a statement from any one source. - **Three practical tiers.** (1) Packaged and maintainer-tested: NVIDIA RTX, RX 7900, RX 9070 and R9700, Mac Metal (measured on three Macs), Arc B70 and A750, one Spark. (2) Packaged but thinly tested or flagged experimental: RX 6000, Strix Halo, Intel cards other than those two, RX 9060 XT and 7800 XT (owner-validated). (3) Hand-built: Maxwell, gfx906, RDNA1, 780M, 890M. - **Support words are not uniform across pages.** Strix Halo is "experimental" on its own page and "supported" in the capability table. RX 6000 is "experimental" in the README, "not tested on a real card" in the AMD guide and "supported" (validated differently) in the capability table. The multi-GPU page lists Intel GPUs in a split as unsupported, while the Intel guide reports tested two-card `--layer-split` runs on Arc Pro B60, B65 and B70; the multi-GPU page is about what the app, Terminal and setup offer, so the two are probably describing different routes. Treat the narrower wording as the safe claim. - **Unified-memory machines count memory once** (Strix Halo, DGX Spark, Mac), but each has its own planning rules (BIOS carve-out on Windows Strix Halo, `STRATA_UMA_HEADROOM_GIB` on Linux integrated GPUs, a 70% resident cap on Mac). - **Model coverage narrows off NVIDIA and AMD.** Qwen3.6 runs only on NVIDIA and AMD; NVFP4 packs are NVIDIA-only; the DGX Spark guide says the Q2_0 and Gyro packs are not built for ARM (their CPU kernels are x86-only, and the engine refuses them there). See [[syntheses/model-and-quant-comparison]]. - **Terminal-only platforms.** Intel Arc and DGX Spark have no desktop installer; the Intel route also needs the model folder supplied by you. ## Recommendations Labelled as the wiki's reading of the sources. 1. Start from the capability table for the model you want, then the hardware guide for the card, then run `strata launch --plan` (Terminal) before downloading anything. 2. For any card outside the maintainer-tested rows, say "reported working" rather than "supported", and carry the guide's limits (no Windows path for Intel, Linux-only 780M, no WSL for Strix Halo) into the answer. 3. Do not quote a measured speed for one GPU as a prediction for another; the docs say it does not establish speed on every GPU. 4. For older NVIDIA cards, check driver (580 for CUDA 13, otherwise the CUDA 12 engine) before anything else. 5. When a user's guide, flag or support claim conflicts with a release note or issue, prefer the current guide, as the docs instruct. ## Pages Compared - the XL edition page "AMD Radeon on the HIP Backend" - the XL edition page "Strix Halo and Integrated Radeon (Ryzen AI Max, Radeon 780M)" - the XL edition page "Older and Experimental GPUs (Pascal, Volta, Maxwell, sm_80, Older AMD)" - the XL edition page "NVIDIA DGX Spark (GB10) on Linux" - the XL edition page "Intel Arc GPUs (SYCL engine)" - the XL edition page "Apple Silicon Mac (Metal)" - [[concepts/multi-gpu]] - [[concepts/install-desktop-and-terminal]] - [[entities/strata]] ## Sources - raw/github_doc-docs-capabilities-md.md: capability table, package names, Supported/Measured definitions - raw/github_doc-docs-install-md.md: per-computer requirements, driver 580 rule, install routes - raw/github_doc-docs-readme-md.md: hardware list, interface rules, "one GPU does not establish" caveat - raw/github_doc-readme-md.md: supported hardware list - raw/github_doc-docs-amd-hip-md.md: AMD card status, packages, Windows notes - raw/github_doc-docs-strix-halo-md.md: Strix Halo status, engine variants, WSL - raw/github_doc-docs-strix-halo-windows-md.md: Windows BIOS carve-out and traps - raw/github_doc-docs-radeon-780m-md.md: 780M experimental opt-in - raw/github_doc-docs-intel-md.md: Intel SYCL engine overview - raw/github_doc-docs-intel-arc-md.md: Intel Terminal route, tested cards, limits - raw/github_doc-docs-mac-md.md: Metal requirements, pack memory, limits - raw/github_doc-docs-older-gpus-md.md: older GPU support matrix and CUDA 12 engine - raw/github_doc-docs-nvidia-v100-md.md: Volta engine route - raw/github_doc-docs-dgx-spark-linux-md.md: GB10 install, what works - raw/github_doc-docs-multi-gpu-md.md: layer split roles and unsupported combinations --- title: "Model and Quantization Comparison" type: synthesis tags: [models, quantization, memory, packs, providers, comparison] created: 2026-11-24 updated: 2026-11-24 confidence: medium sources: ["raw/github_doc-docs-models-md.md", "raw/github_doc-docs-quants-md.md", "raw/github_doc-docs-unsloth-q4-md.md", "raw/github_doc-docs-unsloth-q6-md.md", "raw/github_doc-docs-gyro-md.md", "raw/github_doc-docs-nvfp4-md.md", "raw/github_doc-docs-orca-md.md", "raw/github_doc-docs-orca-q4-k-s-md.md", "raw/github_doc-docs-qwen36-md.md", "raw/github_doc-docs-capabilities-md.md", "raw/github_doc-readme-md.md", "raw/github_doc-tools-release-grid-models-lock-json.md", "raw/github_doc-docs-mac-md.md", "raw/github_doc-docs-dgx-spark-linux-md.md", "raw/github_doc-docs-intel-arc-md.md"] --- # Model and Quantization Comparison This page compares the models and packs the docs describe (Qwen3.8-Flash-Next and its variants, Qwen3.6-35B-A3B, Tencent Hy4-Flash, Inkling-2-Mini) on file size, memory, provider, picture support, backend availability and the docs' own quality and speed notes. All launch commands are Terminal (`strata launch`) commands; `--plan` prints the plan and downloads nothing. The docs' provider order is "ISTA-DASLab, then Unsloth, then Gyro, then others, using the first compatible pack that fits"; the docs state this "is a recommendation. It says nothing about which provider wins a given quality or speed comparison". An explicit user choice always wins; setup may preselect something else at low memory tiers or on Strix Halo, so read the plan and pass `--family` and `--model`. ## Comparison ### Qwen3.8-Flash-Next: ISTA-DASLab packs (the original model) Memory is the model's weights in RAM plus VRAM; unified memory counts once; figures are estimates. | Size | RAM + VRAM | Experts in shard 1 | Shard 1 size (release lock) | Speed note | Quality note | | --- | ---: | ---: | ---: | --- | --- | | Q2_0 | 37.6 GB | 34 GB | 37,623,740,192 bytes | fastest | good | | IQ2_XS | 39.2 GB | 35.5 GB | 39,225,954,592 bytes | fast | better | | IQ3_XXS | 47.0 GB | 43 GB | 47,039,860,096 bytes | slower | great | | IQ3_S | 54.8 GB | 50 GB | 54,817,524,224 bytes | slowest | best; "matches the full model on the published tests" | | Coder (IQ1_M) | not in the pick-by-memory table | 23 GB | shard 1 is 29.6 GB (models guide) | see speed table below | weaker outside code and outside English (Chinese and other CJK included) | - Every size has a second shard of 28,800,138,432 bytes (the 28.8 GB n-gram table), which stays on the SSD. The three smaller sizes download 66 to 76 GB; the MTP draft layer adds about 6 GB (1 GB more with pictures). The model fits when RAM is at least the experts plus about 10 GB. With 64 GB of RAM every size fits; with 48 GB, Q2_0 and IQ2_XS fit. A 32 GB PC with a 24 GB GPU runs Q2_0, IQ2_XS and Coder by keeping experts mapped from the files; a 32 GB PC with a 12 to 16 GB GPU runs Coder. - **Coder** keeps 256 of each layer's 512 experts, chosen on code; its authors report 91% of the full model's SWE-bench Verified score and 99% of LiveCodeBench. `strata launch --family coder --model IQ1_M`. It "runs around 32 GB of RAM with a suitable GPU". - **Swift 1.5** (UkisAI fine-tune): thinks much shorter with "about the same quality"; speed per token and RAM match the same size of the original; its own license applies. `strata launch --family swift --model IQ2_XS`. ### Qwen3.8-Flash-Next: other providers | Pack | Provider | Download | Memory or RAM for all experts | Notes | | --- | --- | ---: | ---: | --- | | UD-IQ4_XS | Unsloth | 94 GB (93.7 GB, three shards) | ~72 GB | experts 55 GiB; same top token as Q8_0 88.9% | | UD-Q4_K_XL | Unsloth | 111 GB (111,334,654,784 bytes, four shards) | ~88 GB | experts 72 GiB; 93.1% | | UD-Q5_K_XL | Unsloth | 158 GB | ~108 GB | experts 92 GiB; 94.6% | | UD-Q6_K_XL | Unsloth | 169 GB (169,165,382,688 bytes, six shards) | ~118 GB | experts 102 GiB; 94.6% | | Q8_0 | Unsloth | 188 GB | ~136 GB | experts 120 GiB; 100% (the reference) | | Gyro-S | agentionai | 58.5 GB | 27.6 GB (VRAM + RAM) | the smallest option; lower quality than the 2 to 3-bit sizes | | Gyro-M | agentionai | 92.0 GB | 35 GB (VRAM + RAM) | "about IQ3_XXS quality with about 20% less GPU memory" | | NVFP4 (Strata's version, GPTQ) | Strata conversion; ready pack by sergqwer | 128 GB | about 80 GB RAM for every expert | best quality of the three NVFP4 versions | | NVFP4-NVIDIA | NVIDIA checkpoint, converted | 128 GB | about 80 GB | same size and speed as the first | | NVFP4-QAD | NVIDIA, trained for FP4 | 102 GB (+110 GB disk to prepare once; 20 to 40 minutes) | about 80 GB | slightly faster on short prompts | | OrcaRouter Uncensored IQ3_XXS | OrcaRouter | 85.20 GB, two shards | expert arena alone about 49.8 GiB of free RAM | manual only; no `--family orca` | | OrcaRouter Uncensored Q4_K_S | OrcaRouter | three shards, about 112 GB | not stated | manual only; see limits below | Commands: `strata launch --family unsloth --model UD-Q5_K_XL`, `strata launch --family gyro --model Gyro-S`, `strata launch --family nvfp4 --model NVFP4` (model names `NVFP4`, `NVFP4-NVIDIA`, `NVFP4-QAD`). The Unsloth files are Unsloth's revision `38bb39e` of `unsloth/Qwen3.8-Flash-Next-GGUF`; setup keeps every expert in RAM when they fit with 16 GB to spare, otherwise it keeps a RAM budget and reads the rest from the SSD (much slower). UD-Q4_K_XL on a 12 GB GPU: "12 GB works" (1,280 of 24,576 experts cached at 4K context on an RTX 5070). A plain bartowski Q4_0 file (100.6 GB, three shards) also ran; it is a tested example, not a menu entry. ### Other models | Model | Packs and sizes | Memory planning | Engine | | --- | --- | --- | --- | | Qwen3.6-35B-A3B (35B total, 3B active, 256 experts, Apache 2.0) | Unsloth UD-Q4_K_XL 22.9 GB; UD-Q6_K_XL 32.6 GB; Q8_0 37.8 GB (plus a 0.9 GB picture reader) | RAM setup plans for: 32 GB, 44 GB, 52 GB | `--family qwen36` | | Tencent Hy4-Flash | SQ-64 model file 62.0 GB; SQ-96 89.6 GB; SQ-128 113.7 GB; each plus a 67.6 GB Engram shard read from the SSD | SQ-64: 64 GB RAM plus 8+ GB GPU (README: card of 8, 12 or 16 GiB); SQ-96: 96 GB RAM or 128 GB unified (README: 8 or 12 GiB card); SQ-128: 128 GB RAM or 128 GB unified (README: 8 or 12 GiB card) | `strata-hy4`, built-in DFly2 drafter | | Inkling-2-Mini | Strata SQ-10 10.5 GB, SQ-15 14.3 GB, SQ-20 19.3 GB (README: 10.47, 14.35, 19.35 GB); Unsloth GGUFs 7.76 to 22.87 GB | SQ-20 for a 24 GiB card, SQ-15 for 16 GiB, SQ-10 for 12 GiB; "A 4 GiB card is enough to start" | `strata-inkling`, built-in DSpark drafting | Hy4-Flash commands use `--family hy4-flash --model SQ-64`; Inkling uses `--family inkling-2-mini --model SQ-15`. The Unsloth Inkling files named in the README are UD-Q8_K_XL 22.87, UD-Q4_K_XL 17.63, UD-Q4_K_M 16.61, UD-IQ4_XS 15.73, UD-Q3_K_XL 13.63, UD-IQ3_XXS 11.66, UD-Q2_K_XL 9.14, UD-IQ2_XXS 8.49, UD-IQ1_M 8.02 and UD-IQ1_S 7.76 GB. The release lock pins the Hy4-Flash SQ-64 files at 62,030,467,072 and 67,584,905,216 bytes. More: [[concepts/other-models]]. ### Picture (vision) support | Model or pack | Pictures | | --- | --- | | Every Qwen3.8-Flash-Next version in setup's menu | Reads pictures; on by default; CPU reader under 24 GB of graphics memory, GPU reader from 24 GB (about 1 to 1.4 GB of VRAM). `--vision off` disables, `--vision cpu` / `--vision gpu` choose. | | Qwen3.6-35B-A3B | Reads pictures (0.9 GB `mmproj-F16.gguf`); same 24 GB rule on NVIDIA and AMD | | Gyro, NVFP4 | Read pictures with the original model's reader file that setup downloads | | Hy4-Flash | `Hy4-Flash-Vision.strata`, 0.93 GB | | Inkling-2-Mini | `Inkling-2-Mini-Vision.strata`, 0.64 GB | | OrcaRouter IQ3_XXS example config | text-only; "vision is not configured" | Backend exceptions: on Intel Arc a card with 24 GB or more keeps the CPU reader unless `--vision gpu`, and a Battlemage card has pictures off until `--vision on`; on Mac pictures run on the GPU; on AMD the reader is `strata-vision-hip` with a CPU fallback. ### Backend availability by pack | Pack family | NVIDIA (CUDA) | AMD (HIP) | Intel Arc (SYCL, Linux) | Apple (Metal) | DGX Spark | | --- | --- | --- | --- | --- | --- | | ISTA-DASLab Q2_0, IQ2_XS, IQ3_XXS, IQ3_S | yes | yes | IQ3_S, IQ2_XS shown in the Intel guide; an older Q2_0 folder needs AVX-512 | Mac guide: Q2_0, IQ3_XXS, IQ3_S (no IQ2_XS in its pack list) | IQ3_S works; Q2_0 refused (x86-only CPU kernels) | | Coder IQ1_M, Swift 1.5 | yes | yes | Coder IQ1_M tested on Arc Pro B70 | "not set up on Mac yet" | not stated | | Unsloth UD-IQ4_XS to Q8_0 | yes | yes | kernels for Q4_K, Q5_K, Q6_K, Q5_1 "built, not run with these files" | Source-checkout `./setup.sh` options list UD-Q4_K_XL, UD-Q5_K_XL, UD-Q6_K_XL (UD-Q5/Q6 streamed); the app and Terminal model list offers Q2_0, IQ3_XXS, IQ3_S and Gyro, and "Unsloth's many-shard files need the source installer's repack for now" | not stated | | Gyro-S, Gyro-M | supported (incl. RTX 50) | experimental | runs both (SYCL built from source) | runs both | not built (x86-only CPU kernels) | | NVFP4 (three versions) | yes; RTX 50 has FP4 tensor cores, other NVIDIA cards run it at 8-bit precision | not offered | not offered | not stated | NVFP4 GPTQ works | | Qwen3.6-35B-A3B | yes | yes | does not run | does not run | package present, untested | ### Docs' quality yardstick (Unsloth Q8_0 reference) Measured on the AMD box (EPYC 7452, Radeon AI PRO R9700 32 GB, HIP, engine at commit 0601072d; 4,995 positions of code, docs, prose, four languages and an agent transcript; Q8_0 perplexity 4.052): | Quant | Same top token as Q8_0 | Mean KL | Perplexity | | --- | ---: | ---: | ---: | | UD-Q6_K_XL | 94.61% | 0.033 | 4.020 | | UD-Q5_K_XL | 94.55% | 0.038 | 4.024 | | UD-Q4_K_XL | 93.09% | 0.056 | 4.068 | | UD-IQ4_XS | 88.91% | 0.101 | 4.120 | | IQ3_S | 87.69% | 0.144 | 4.097 | | IQ3_XXS | 84.46% | 0.202 | 4.119 | | Q2_0 | 80.60% | 0.315 | 4.475 | Other quality notes from the docs, each with its machine: NVFP4 GPTQ on an RTX 3060 box (Strata 0.1.44 era): 92.09% top token, mean KL 0.070, 88.59% / 0.118 with `STRATA_ROUTE_TAIL_SKIP=7`. NVFP4-QAD on an RTX PRO 5000 72 GB (version not recorded): top-1 90.5%, mean KL 0.085, perplexity 3.95; the docs note it is a retrained model. On a Mac (M5 Max, engine version not recorded) IQ3_S scored 87.9% / KL 0.142 and UD-Q4_K_XL 92.8% / 0.055. Gyro (own evaluation, 2026-10): Gyro-M KL 0.159 against Q2_0 0.312; Gyro-M 0.157 against IQ3_XXS (level); Gyro-S 0.268 against IQ2_XS 0.236 (13% worse) with 24% fewer bytes; reasoning set Gyro-M 49/60 against Q2_0 57/60. See [[concepts/quants]] and the XL edition page "Alternative Packs: Gyro, NVFP4, Swift 1.5 and OrcaRouter". ### Docs' speed notes by size Measured on an RTX 5070 12 GB, Ryzen 5 7600, 64 GB RAM; ISTA-DASLab sizes; engine 0.1.26 (Q2_0 row: engine 0.1.36); short chat / 128K context / 32K prompt read: | Size | Short chat | 128K context | 32K prompt | | --- | ---: | ---: | ---: | | Q2_0 | 94 tokens/s | 76 tokens/s | 2,650 tokens/s | | IQ2_XS | 79 | 63 | 2,090 | | IQ3_XXS | 62 | 49 | 1,750 | | IQ3_S | 53 | 46 | 1,620 | | Coder (IQ1_M) | 55 | 43 | 2,180 | Measured on an AMD Radeon AI PRO R9700 32 GB, Unsloth files, every expert in RAM, 40K context, engines before 0.1.45.3: story / code / 32K prompt: UD-Q4_K_XL 63 / 87 / 1,110 to 1,320; UD-Q5_K_XL 57 to 60 / 82 / 810 to 1,260; UD-Q6_K_XL 54 / 76 / 1,020; Q8_0 53 to 57 / 66 to 74 / 1,230 to 1,300; IQ3_S on the same card 75 / 95. The docs say decode runs at about 35 to 40% of the bandwidth bound for every file. Gyro decode on an RTX 3060 12 GB (engine 0.2.2): Gyro-S 62.5 tok/s ("7% slower") and Gyro-M 54.8 ("16% slower") than Q2_0, which the guide gives as 65.5 and 64.5 tok/s on that card without saying which baseline goes with which pack (the 7% does not follow from either figure); on an R9700, Gyro-M about 21% slower. Qwen3.6 UD-Q4_K_XL decode (decode only): Radeon AI PRO R9700 32 GB 117.8 tokens/s; RTX 3060 12 GB with most experts on the CPU 59.7. Per-machine tables: the XL edition page "Community Benchmarks by Machine". ### Limits stated for the manual packs - **OrcaRouter IQ3_XXS:** "the only validated Orca quantization"; IQ3_M uses Q5_0 expert down matrices which the native GPU expert path does not support; needs `--compat-bf16` packing from a source checkout; draft acceptance is unmeasured for this fine-tune. - **OrcaRouter Q4_K_S:** Q5_0 down layers have no GPU prompt kernel in Strata 0.2.16; the doc says to build the v0.2.15 tag with `-DSTRATA_ORCA_Q4KS_MMQ=ON`, and the engine refuses a pack with such a layer. - **Unsloth UD files:** `--compat-bf16` is required when packing by hand; other quantizations "may not have kernels"; the engine checks every layer's formats and names an unsupported one. - **Gyro:** the prompt helper on a second GPU does not run for a Gyro pack; token parity against llama.cpp "has not been measured". ## Analysis The wiki's reading across the model guides, not statements from any one source. - **Memory is the main separator inside the original model.** Q2_0 to IQ3_S span 37.6 to 54.8 GB; the Unsloth files start where IQ3_S ends (about 72 GB for UD-IQ4_XS) and reach about 136 GB; the NVFP4 packs need about 80 GB; Gyro-S undercuts everything at 27.6 GB. A user's RAM+VRAM figure usually picks the row. - **Quality and memory do not move together linearly.** On the docs' yardstick UD-IQ4_XS (88.91%) is within about 1.2 points of IQ3_S (87.69%) while needing about 72 GB against 54.8 GB. The step from UD-Q4_K_XL to UD-Q5_K_XL (93.09% to 94.55%) costs about 20 GB more RAM. The docs' own word for IQ3_S ("matches the full model on the published tests") and the 87.69% top-token figure measure different things and should not be compared. - **Speed falls as bits rise.** Both speed tables show the same ordering (smaller packs decode faster), and Gyro trades speed for memory (7 to 21% slower decode than Q2_0 in the docs' own measurements). - **Availability is the other filter.** Qwen3.6 and NVFP4 do not run off NVIDIA and AMD; Gyro and Q2_0 do not run on the DGX Spark; Mac and Intel have narrower pack lists. See [[syntheses/hardware-comparison]]. - **Size labels differ between pages** (for example Inkling SQ-15 is 14.3 GB in the models guide and 14.35 GB in the README; "download", "memory" and "RAM for all experts" are different quantities). Quote the label that goes with the figure. ## Recommendations Labelled as the wiki's reading. 1. Pick by memory first (the pick-by-memory table), then by availability on the user's backend, then by provider; run `strata launch --plan --family --model ` to see the real fit. 2. Name the model and quant exactly when reporting speed or quality; never move a figure from one pack to another. 3. For low memory, compare Unsloth and Gyro before Coder, and remember Coder is weaker outside code. 4. Do not recommend a manual pack (OrcaRouter) as an installer option; the docs say it is not in the installer menu. 5. When the docs' older tables disagree with newer ones, use the current guide and say which engine version produced each number. ## Pages Compared - [[concepts/choosing-a-model]] - [[concepts/quants]] - the XL edition page "Alternative Packs: Gyro, NVFP4, Swift 1.5 and OrcaRouter" - [[concepts/other-models]] - [[concepts/image-input]] - [[syntheses/hardware-comparison]] - [[entities/strata]] ## Sources - raw/github_doc-docs-models-md.md: pick-by-memory, provider tables, Qwen3.6, Hy4-Flash, Inkling, history speed tables - raw/github_doc-docs-quants-md.md: Unsloth file contents, kernel availability, quality yardstick, R9700 speeds - raw/github_doc-docs-unsloth-q4-md.md: UD-Q4_K_XL and UD-IQ4_XS shards, memory rules, Q4_0 example - raw/github_doc-docs-unsloth-q6-md.md: UD-Q6_K_XL shards and sizes - raw/github_doc-docs-gyro-md.md: Gyro sizes, platforms, evaluation, decode comparisons - raw/github_doc-docs-nvfp4-md.md: three NVFP4 versions, quality, requirements - raw/github_doc-docs-orca-md.md: OrcaRouter IQ3_XXS manual path and scope - raw/github_doc-docs-orca-q4-k-s-md.md: OrcaRouter Q4_K_S limits - raw/github_doc-docs-qwen36-md.md: Qwen3.6 sizes, pictures, backends - raw/github_doc-docs-capabilities-md.md: which model runs on which hardware - raw/github_doc-readme-md.md: provider table, Hy4-Flash and Inkling sizes - raw/github_doc-tools-release-grid-models-lock-json.md: pinned file sizes in bytes - raw/github_doc-docs-mac-md.md: Mac pack list and quality figures - raw/github_doc-docs-dgx-spark-linux-md.md: packs that run on the DGX Spark - raw/github_doc-docs-intel-arc-md.md: packs tested on Intel Arc