跪拜 Guibai
← All articles
LLM · Agent

Qwen3.8-27B Lands on a Single GPU: Ollama, MTP, and Agent Wiring

By GoCoding ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

A 27B multimodal model that runs on one consumer GPU lowers the hardware floor for local agent workflows. The Anthropic-compatible API means Claude Code can drive it directly, and the MTP variant pushes token throughput further on the same hardware.

Summary

Qwen3.8-27B, a multimodal dense model with 256K context, ships alongside the much larger MoE-based Qwen3.8-Flash-Next. Flash-Next demands over 100 GB of VRAM even at Q4, so single-GPU deployment is off the table. The 27B dense variant, by contrast, fits a single consumer card at Q4_K_M quantization (~18 GB).

Ollama provides the smoothest path, with ready-made quantized versions including a multi-token prediction (MTP) variant and an NVFP4 quant for RTX 5090 owners — though the NVFP4 quant still needs MLX backend work on Linux. The model exposes both OpenAI- and Anthropic-compatible APIs, tested here with text chat, image understanding, and agent wiring into Claude Code and DeepSeek Harness.

The practical upshot: a 27B-class multimodal model that handles Chinese and English, vision, and tool-calling, all on a single GPU, with straightforward Ollama commands and standard API drop-in for coding agents.

Takeaways
Qwen3.8-27B is a multimodal dense model with 256K context, released August 2026.
Qwen3.8-Flash-Next is a much larger MoE model and Qwen4 preview; Q4 quantization still needs over 100 GB VRAM, ruling out single-GPU deployment.
Q4_K_M quantization of the 27B model takes about 18 GB VRAM, fitting consumer GPUs.
Ollama offers several pre-quantized versions: standard Q4_K_M, an MTP (multi-token prediction) variant, and an NVFP4 quant targeting RTX 5090's Blackwell FP4 cores.
The NVFP4 quant requires the MLX backend, which is not yet mature on Linux.
The model's OpenAI-compatible API returns reasoning tokens in chat responses.
Image understanding works via the same OpenAI-compatible endpoint with base64-encoded images.
Setting ANTHROPIC_AUTH_TOKEN=ollama and ANTHROPIC_BASE_URL=http://localhost:11434 wires the model into Claude Code.
DeepSeek Harness can also use the model by adding a custom provider pointing to the local Ollama instance.
Conclusions

The gap between the dense 27B and the MoE Flash-Next is stark: one runs on a single GPU today, the other needs a cluster. This bifurcation is becoming the norm as MoE models scale parameter counts faster than consumer VRAM.

Ollama's MTP quant variant is notable — multi-token prediction can increase throughput without a larger model, and having it pre-packaged lowers the experimentation barrier.

The Anthropic-compatible API on a local model is a concrete bridge: Claude Code can now drive a self-hosted Qwen model with no cloud dependency, which matters for air-gapped or cost-sensitive agent workflows.

Concepts & terms
MTP (Multi-Token Prediction)
A technique where the model predicts multiple future tokens per step instead of one, increasing generation throughput without changing model size.
NVFP4 quantization
A 4-bit floating-point format that leverages NVIDIA Blackwell architecture's native FP4 tensor cores for faster inference; currently requires the MLX backend on Apple Silicon or future Linux support.
MoE (Mixture of Experts)
A model architecture where only a subset of parameters (experts) activates per token, enabling much larger total parameter counts at lower per-token compute cost — but all parameters must still reside in memory.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗