Operationrange Get a free plan

How to run Qwen3.8-27B on a cloud GPU

Qwen3.8-27B, released by Alibaba's Qwen team in August 2026 under Apache-2.0, is one of the most popular open models on Hugging Face (more than 20,000 likes). It is a dense 27.8B model with image input, a 262K native context and thinking mode on by default. Here is how much GPU memory each version needs, the cheapest GPU for it today, and the serving commands from the official vLLM recipe.

24 GB, 4-bit
$0.22/hrRTX 3090 with llama.cpp
32 GB, NVFP4
$0.67/hrRTX 5090 with vLLM
48 GB, FP8
$0.48/hrRTX A6000 with vLLM
80 GB, BF16
$0.84/hrA100 80GB with vLLM
Which GPU

Qwen3.8-27B GPU requirements

Only 16 of the model's 64 layers use full attention; the rest are linear-attention layers with a fixed state of about 150 MB per request. The KV cache therefore grows by just 67 MB per 1K tokens, so memory is mostly about the weights.

Model · formatWeightsRuns on one GPU (32K+ context)Cheapest todayContext room on it
Qwen3.8-27B
BF16 · vLLM
55.6 GBA100 80GB, RTX PRO 6000, H100, H200, B200A100 80GB · $0.84/hrfull 256K context
Qwen3.8-27B
FP8 (official) · vLLM
30.9 GBRTX A6000, RTX 6000 Ada, L40S, A100 80GB, RTX PRO 6000 and moreRTX A6000 · $0.48/hr≈212K tokens
Qwen3.8-27B
NVFP4 · vLLM
26.4 GBRTX 5090, RTX PRO 6000, B200RTX 5090 · $0.67/hr≈46K tokens
Qwen3.8-27B
GGUF Q4_K_M · llama.cpp
16.6 GBRTX 3090, RTX 4090, RTX A6000, RTX 5090, RTX 6000 Ada and moreRTX 3090 · $0.22/hr≈110K tokens

Weights: file sizes on Hugging Face (Qwen/Qwen3.8-27B, Qwen/Qwen3.8-27B-FP8, Inferact/Qwen3.8-27B-NVFP4, unsloth/Qwen3.8-27B-GGUF). Context room is calculated for one request with BF16 KV cache; see how we calculate VRAM. NVFP4 needs a Blackwell GPU. Prices: typical hourly price on the Vast.ai marketplace on 5 Dec 2026.

Pick a setup

Four ways to run it

24 GB: 4-bit GGUF with llama.cpp

RTX 3090 or RTX 4090. The Q4_K_M GGUF takes 16.6 GB and leaves ≈110K tokens of context. Good for one user, development and batch jobs.

32 GB: NVFP4 with vLLM

RTX 5090. vLLM's recipe validates the NVFP4 checkpoint on one RTX 5090 with a 32K context; it only fits with --enforce-eager, otherwise startup fails while capturing CUDA graphs.

48 GB: official FP8 with vLLM

RTX A6000, RTX 6000 Ada or L40S. FP8 weights take 30.9 GB, leaving ≈169K tokens on an L40S. Ada GPUs (L40S, RTX 6000 Ada) run FP8 natively; the Ampere-based A6000 uses slower weight-only kernels.

80 GB: full BF16 with vLLM

A100 80GB or H100. BF16 weights take 55.6 GB and the full 256K context fits. The best choice for many concurrent users and long agentic sessions.

Step by step

Serve Qwen3.8-27B with vLLM

The vLLM recipe requires vLLM 0.17.0 or newer and transformers 5.8.0 or newer, and provides the Docker image vllm/vllm-openai:qwen38. On Vast.ai, set the instance image to it, give the instance at least 100 GB of disk and expose port 8000.

BF16 on one 80 GB GPU (recipe default)

export VLLM_USE_RUST_FRONTEND=1
vllm serve Qwen/Qwen3.8-27B \
  --tensor-parallel-size 1 \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder \
  --reasoning-parser qwen3 \
  --mm-encoder-tp-mode data

NVFP4 on one RTX 5090 (recipe)

vllm serve Inferact/Qwen3.8-27B-NVFP4 \
  --tensor-parallel-size 1 \
  --max-model-len 32768 \
  --kv-cache-dtype fp8 \
  --enforce-eager \
  --reasoning-parser qwen3

FP8 on one 48 GB GPU

The recipe's FP8 command uses four GPUs. For a single 48 GB card, drop tensor parallelism and cap the context (adapted from the recipe):

vllm serve Qwen/Qwen3.8-27B-FP8 \
  --max-model-len 131072 \
  --kv-cache-dtype fp8 \
  --reasoning-parser qwen3

For more speed, the recipe adds multi-token-prediction speculative decoding to the FP8 command: --speculative-config '{"method":"mtp","num_speculative_tokens":3}'.

Send a request

The model thinks before answering by default. The Qwen model card recommends temperature=1.0, top_p=0.95, top_k=20 in thinking mode and supports reasoning_effort of xhigh (default), medium or low:

from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="none")

r = client.chat.completions.create(
    model="Qwen/Qwen3.8-27B",
    messages=[{"role": "user", "content": "Write a Python function that merges two sorted lists."}],
    reasoning_effort="medium",
)
print(r.choices[0].message.content)

To turn thinking off, pass extra_body={"chat_template_kwargs": {"enable_thinking": False}}; the card recommends temperature=0.7, top_p=0.8 for that mode.

24 GB GPUs

Run Qwen3.8-27B on an RTX 3090 or 4090 with llama.cpp

llama.cpp downloads a GGUF straight from Hugging Face with -hf and serves a web UI plus an OpenAI-compatible API (see the llama.cpp README):

llama serve -hf unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_M --ctx-size 65536

In Docker, use the CUDA server image ghcr.io/ggml-org/llama.cpp:server-cuda. A 64K context needs about 4.3 GB of KV cache on top of the 16.6 GB of weights, which fits a 24 GB card with room to spare.

Tips

  • Text only? Add --language-model-only to skip the vision encoder. On one RTX 5090 it raised the KV pool from 91,022 to 135,926 tokens in vLLM's tests.
  • FP8 KV cache (--kv-cache-dtype fp8) halves the memory per token. Most commands in the recipe use it.
  • Context beyond 262K needs YaRN rope scaling via --hf-overrides; the model card has the exact settings. Leave it off unless you really serve such long prompts.
  • Two RTX 5090s run the FP8 or NVFP4 checkpoints with tensor parallelism and the full 262K context; the recipe measured 377K to 920K tokens of KV cache depending on the checkpoint.
Cost

What Qwen3.8-27B costs to run 24/7

  • 4-bit on RTX 4090≈ $341/month
  • NVFP4 on RTX 5090≈ $487/month
  • FP8 on L40S≈ $536/month
  • BF16 on H100≈ $1,705/month

Typical hourly price × 730 hours, marketplace prices on 5 Dec 2026.

Need Qwen3.8 in production?

We deploy Qwen behind an authenticated OpenAI-compatible API with tool calling, autoscaling, monitoring and 24/7 support. You pay the GPU provider directly, with no markup.

Have us set it up

How much VRAM other models need →

FAQ

Qwen3.8-27B questions

How much VRAM does Qwen3.8-27B need?

55.6 GB in BF16, 30.9 GB in the official FP8 release, 26.4 GB in NVFP4 and 16.6 GB as a 4-bit GGUF, plus about 67 MB of KV cache per 1,000 tokens of context and about 150 MB per concurrent request.

Can Qwen3.8-27B run on an RTX 4090?

Yes, as a 4-bit GGUF with llama.cpp: ≈110K tokens of context fit next to the weights. The official FP8 version does not fit in 24 GB, and NVFP4 needs a Blackwell GPU such as the RTX 5090.

What is the cheapest GPU for Qwen3.8-27B in vLLM?

On 5 Dec 2026, the cheapest GPU with room for at least 32K tokens is RTX A6000 · $0.48/hr with the FP8 weights. On an RTX 5090 ($0.67/hr) the NVFP4 checkpoint works with a 32K context, as validated in vLLM's recipe.

How do I disable thinking mode?

Pass chat_template_kwargs: {"enable_thinking": false} in the request (in the OpenAI Python SDK, via extra_body). Alternatively keep thinking on and lower reasoning_effort to medium or low for faster answers.

Is Qwen3.8-27B free for commercial use?

Yes. The weights are released under the Apache-2.0 license.