How to Run Qwen3.8-Flash-Next Locally with Ollama (2026 Guide)
Qwen3.8-Flash-Next is a 125B MoE model (6B active) with a 256K context window, MLX-only on Ollama. See hardware requirements, setup, and real alternatives.

Qwen3.8-Flash-Next is Alibaba's newest Qwen release, and the architecture is a real departure from the Qwen3.8 dense model covered elsewhere on this site. That model activates all 27.8 billion of its parameters on every token. Flash-Next is a mixture-of-experts design instead: 125 billion total parameters, but only 6 billion active per token, routed across 512 experts (10 routed plus 1 shared expert that always participates). Alibaba calls it the first open-weight release built on the architecture that will underpin Qwen4, and it reportedly beats Qwen3.8-27B, Qwen3.7-Plus, and DeepSeek-V4-Flash on specialized benchmarks including SWE-bench Pro (62.5) and CoWorkBench (73.9).
The attention design layers Gated DeltaNet linear-attention blocks with Qwen Sparse Attention at a 3:1 ratio, under a native 262,144 token (256K) context window that extends to 1 million tokens with YaRN. There's also a 51 billion parameter n-gram embedding layer, a 20-million-entry table keyed on bigrams and trigrams with gated residual connections. Alibaba built that piece specifically to cut latency on long agentic sessions, where a model is making dozens of tool calls across a running task rather than answering one prompt.
Here's the catch, upfront: every tag Ollama lists for this model right now is MLX format, Apple Silicon only. No GGUF tag exists for Linux, Windows, or Nvidia GPUs, and the smallest download is 113GB. That also rules out a rented cloud GPU as a workaround, since MLX simply does not run on Nvidia hardware. If you have a Mac with enough unified memory, the setup below gets you running in under 30 minutes. If you don't, skip to the alternatives section for models you can actually run today.
Prerequisites
- An Apple Silicon Mac. There is no Linux, Windows, or Nvidia GPU path for this model on Ollama yet
- 128 GB or more of unified memory for the default 113GB MLX tag; 192GB+ for the 360GB bf16 tag
- 113-360 GB of free disk space depending on which tag you pull
- Ollama, updated to its latest release (`ollama --version`)
- Basic terminal familiarity for `ollama pull` and `ollama run` commands
In This Guide
What Qwen3.8-Flash-Next Is and Which Tag to Run
Qwen3.8-Flash-Next trades Qwen3.8's dense design for a sparse mixture-of-experts one. Of 125 billion total parameters, only 6 billion activate for any given token, spread across 512 experts, 10 routed per token plus 1 shared expert that always fires. That's why Alibaba can post strong benchmark numbers at this scale while keeping per-token compute closer to a much smaller dense model. The catch is that the full 125B of weights still has to sit in memory regardless of how many activate per step.
The hybrid attention stack interleaves Gated DeltaNet (a linear-attention mechanism that scales more efficiently across long sequences) with Qwen Sparse Attention at a 3:1 ratio, layered under the native 262,144 token context window, extended to 1 million tokens via YaRN. On top of that sits the 51 billion parameter n-gram embedding component, a 20-million-entry table keyed on bigrams and trigrams with gated residual connections, aimed at cutting latency on long agentic sessions specifically, not single-shot prompts.
On Ollama's library page, every currently listed tag is MLX format:
| Tag | Format | Download Size | Notes |
|---|---|---|---|
| qwen3.8-flash-next (= 125b-mlx) | MLX | 113 GB | The default tag; plain `ollama run qwen3.8-flash-next` pulls this |
| qwen3.8-flash-next:125b-a6b-nvfp4 | MLX | 113 GB | Same size as the default, different quantization scheme |
| qwen3.8-flash-next:125b-a6b-mlx-bf16 | MLX | 360 GB | Full precision, for the highest-memory Mac Studio/Mac Pro configurations |
There's no q4_K_M or q8_0-style GGUF build the way Qwen3.8 has. Every path into this model through Ollama runs through Apple's MLX framework. Linux, Windows, and Nvidia GPU setups can't run it locally through Ollama today, full stop, and neither can a rented cloud GPU, since MLX only runs on Apple Silicon.
Install Ollama and Run Qwen3.8-Flash-Next on Apple Silicon
Because the smallest tag is 113GB, plan for a slow first pull even on a fast connection, and check your Mac's unified memory before you start.
Step 1: Confirm Your Mac Has Enough Unified Memory
113GB of weights need real headroom for context and activations on top of the raw download. A Mac Studio or Mac Pro with 128GB unified memory is the realistic minimum for the default tag. 192GB or 256GB gives more room for longer contexts. Even the highest MacBook Pro configuration tops out at 128GB, so this is desktop-class Apple Silicon territory, not laptop territory.
Step 2: Install Ollama
curl -fsSL https://ollama.com/install.sh | shConfirm the install and check the version, since MLX-format models need a recent Ollama release:
ollama --versionStep 3: Pull and Run the Default Tag
ollama run qwen3.8-flash-nextExpected output on first run:
pulling manifest
pulling 4f1a9c22... 100% ▕████████████████▏ 113 GB
pulling tokenizer... 100% ▕████████████████▏ 4.3 MB
success
>>> Send a message (/? for help)Step 4: Send a Test Prompt
>>> Write a function that deduplicates a list while preserving order, then explain the tradeoffs of your approach.Thinking mode is on by default, so the terminal shows reasoning before the final answer. The first response takes noticeably longer than later ones while the full model loads into unified memory.
Step 5: Verify the Download
ollama list`qwen3.8-flash-next:latest` should show at 113 GB. That confirms the full MLX weights actually landed on disk, not just a placeholder or manifest-only cloud entry.
Vision Input, Tunable Reasoning, and Agentic Tool Use
Flash-Next accepts image input alongside text. Alibaba calls out STEM diagrams, charts, documents, hour-scale video analysis, and computer-use or mobile-use tasks specifically, a step past general photo description.
Send an Image from the Terminal
ollama run qwen3.8-flash-next "What does this architecture diagram show? ./diagram.png"Control Reasoning Effort via the API
curl http://localhost:11434/api/chat -d '{
"model": "qwen3.8-flash-next",
"messages": [
{ "role": "user", "content": "Plan a migration from a monolith to microservices for this codebase." }
],
"think": true,
"reasoning_effort": "xhigh",
"stream": false
}'`reasoning_effort` takes low, medium, or xhigh, a higher ceiling than Qwen3.8's low/medium/high scale. Flash-Next is tuned for harder agentic and coding benchmarks, and that extra tier gives it room to actually use it. Lower settings trade reasoning depth for speed on simpler prompts.
Use Qwen3.8-Flash-Next in Scripts and Coding Agents
Python Example
from ollama import chat
response = chat(
model="qwen3.8-flash-next",
messages=[{"role": "user", "content": "Review this pull request diff for edge cases."}],
think=True,
)
print(response["message"]["content"])OpenAI-Compatible Endpoint for Agent Tools
model:
default: qwen3.8-flash-next
provider: custom
base_url: http://localhost:11434/v1
context_length: 262144Point any agent tool that speaks the OpenAI-compatible API, Hermes Agent, OpenClaw, and similar, at this config to use Flash-Next's full 256K native context. The n-gram embedding layer's latency work targets exactly this kind of long, tool-heavy agent session, not one-off chat prompts. This is where the architecture's design choices actually show up in day-to-day use.
Troubleshooting
`ollama run qwen3.8-flash-next` fails outright
Cause: Ollama version predates MLX support for this model, or the machine is not Apple Silicon
Fix: Confirm `uname -m` returns arm64, then update Ollama by re-running the install script and retry.
Download fails or stalls partway through the 113GB pull
Cause: A slow or unstable connection struggling with a large single-file download
Fix: Ollama resumes interrupted pulls automatically on retry. Run `ollama pull qwen3.8-flash-next` again rather than starting over, and confirm at least 113GB of free disk space before starting.
"Out of memory" or the process gets killed during load
Cause: Available unified memory is below what the 113GB weights need with headroom
Fix: Close other memory-heavy applications and confirm total unified memory with `sysctl hw.memsize`. Under 128GB, this tag will not fit reliably. Use the alternatives section instead.
Responses are much slower than expected
Cause: `reasoning_effort` is set to xhigh on a routine prompt, or thinking mode is generating a long reasoning trace
Fix: Drop to `reasoning_effort: "medium"` or `"low"`, or disable thinking with `/set nothink` (interactive) or `"think": false` (API) for direct answers.
Trying to run this on Linux, Windows, or an Nvidia GPU
Cause: Every current tag is MLX format, Apple Silicon only
Fix: There is no workaround through Ollama today, including cloud GPU rental, since MLX does not run on Nvidia hardware. Use Qwen3.8 (dense, real GGUF tags) or another alternative below instead.
Image input returns an error
Cause: Wrong file path, or a request built for text-only
Fix: Double check the path is correct and readable. All three current tags support text and image input, so a bad path is the more common cause than an unsupported tag.
Alternatives to Consider
| Tool | Type | Price | Best For |
|---|---|---|---|
| Qwen3.8 | Local (Ollama) | Free | The dense 27.8B sibling model with real GGUF tags starting at 18GB, runs on a single consumer GPU or a much smaller Mac. The practical choice without 128GB+ of Apple Silicon unified memory. |
| GLM 4.6 | Local (Ollama) | Free | A larger 357B parameter model for long-context agentic coding, runnable locally at low quantization on a single high-VRAM GPU, a non-Apple path to a similarly agent-focused model. |
| DeepSeek R1 | Local (Ollama) or VPS | Free | Reasoning-heavy tasks with visible chain-of-thought output, scaling from a 4GB distilled variant up to 70B. |
| GLM 5.2 via Ollama Cloud | Cloud (Ollama) | Free within Ollama Cloud limits | A 1M token context window without needing 113GB of local storage or Apple-specific hardware at all. |
Frequently Asked Questions
Can I run Qwen3.8-Flash-Next locally with Ollama?
Yes, but only on Apple Silicon. Every tag Ollama lists for this model right now is MLX format, starting at 113GB for the default `qwen3.8-flash-next` tag. No GGUF build exists for Linux, Windows, or Nvidia GPUs as of publication.
How much unified memory do I need?
Plan on 128GB or more of Mac unified memory for the default 113GB tag. The weights need real headroom for context and activations on top of the base download, not just enough to fit the file. The 360GB bf16 tag needs a Mac Studio or Mac Pro at the highest available memory configuration.
Can I rent a cloud GPU instead of buying a Mac?
No, not for this model, not through Ollama. All three current tags are MLX format, and MLX only runs on Apple Silicon. A rented Nvidia GPU can't load them no matter how much VRAM it has.
What is the difference between Qwen3.8-Flash-Next and Qwen3.8?
Qwen3.8 is dense: 27.8B parameters, standard GGUF tags starting at 18GB, runs on a single consumer GPU. Flash-Next is a sparse mixture-of-experts model instead, 125B total with 6B active per token, MLX-only right now at 113GB minimum, and built specifically for long agentic coding sessions rather than general local chat.
Does Qwen3.8-Flash-Next support image input?
Yes. All three current tags take text and image input, and Alibaba specifically names STEM diagrams, charts, documents, and hour-scale video analysis as target use cases.
What does reasoning_effort do, and how is it different from Qwen3.8?
It controls how much visible reasoning the model produces before answering. Flash-Next's scale runs low, medium, or xhigh, a step above Qwen3.8's low/medium/high ceiling, which tracks with its tuning for harder agentic and coding benchmarks.
Can I use Qwen3.8-Flash-Next with an agent like Hermes Agent or OpenClaw?
Yes, on Apple Silicon with enough unified memory. Point the agent's OpenAI-compatible endpoint config at `qwen3.8-flash-next` with `context_length` set to 262144, the same pattern as Qwen3.8.
Related Guides
How to Run Qwen3.8 Locally with Ollama (2026 Guide)
How to Run Ollama Locally: Complete Setup Guide (2026)
How to Run GLM 5.2 on Ollama: Cloud Setup Guide (2026)
How to Run DeepSeek R1 Locally with Ollama (2026 Guide)
Best Local LLM Models to Run in 2026 (Benchmarks + Use Cases)
How to Install Hermes Agent with Ollama Local Models (2026)