---
title: Qwen4 35B A3B Inference Instructions and Benchmark Results on NVIDIA GPUs
url: https://docs.vultr.com/models/alibaba-qwen-4/qwen4-35b-a3b
family: Alibaba Qwen 4
vendor: Alibaba
released: "2026-12-04"
description: Deploy Qwen4 35B A3B, a 35B Vision-Language Model, with vLLM and SGLang on NVIDIA GPUs. Find tested commands, throughput and latency benchmarks.
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

# Qwen4 35B A3B Inference Instructions and Benchmark Results on NVIDIA GPUs

Qwen4 35B A3B pairs a 35B-parameter Mixture-of-Experts language model with a 27-layer vision encoder for long-horizon agentic work, coding, and knowledge tasks. It holds 3B activated parameters across 40 layers with 2,048 hidden size, 16 attention heads, and 2 KV heads. The layout repeats three Gated DeltaNet blocks to one Qwen Sparse Attention block, using 256 SiLU-activated experts with 8 routed and 1 shared expert activated per token. A native 1,048,576-token context, 20B n-gram embeddings at layer two, and a Multi-Token Prediction layer support efficient long-sequence inference.

## Specifications

The key facts about Qwen4 35B A3B, published by Alibaba: its size, architecture, release date, license and where to get the weights.

- Family: [Alibaba Qwen 4](https://docs.vultr.com/models/alibaba-qwen-4.md)
- Vendor: Alibaba
- Parameters: 35B
- Model type: Vision-Language Model
- Released: 2026-12-04
- License: [Apache 2.0](https://huggingface.co/Qwen/Qwen4-35B-A3B/blob/main/LICENSE)
- Hugging Face: [Qwen/Qwen4-35B-A3B](https://huggingface.co/Qwen/Qwen4-35B-A3B)

## Capabilities

Qwen4 35B A3B is built for 9 kinds of tasks, from Text Generation to Image-Text-To-Text. Match them against what your application needs, whether that is a chat assistant, a coding tool, an agent that calls tools or a pipeline over long documents, before you choose a GPU and engine below. The model page shows the first five; this is the full list.

- Text Generation
- Instruction Following
- Reasoning
- Mathematical Reasoning
- Code Generation
- Text Classification
- Tool & Agent Interaction
- Long Context
- Image-Text-To-Text

## Deployments on Vultr

Qwen4 35B A3B has tested inference instructions for 2 GPU and engine setups on Vultr Cloud GPU, served with vLLM and SGLang. Each row is one setup: the GPU, the inference engine that serves the model, the VRAM of the Vultr GPU configuration and its starting price per GPU-hour. Pick the row that matches your hardware and engine, then run its command from Inference instructions below.

| GPU | Engine | VRAM | Price per GPU-hour |
| --- | --- | --- | --- |
| NVIDIA B200 | vLLM | 1,440 GB | $3.50 |
| NVIDIA B200 | SGLang | 1,440 GB | $3.50 |

## Inference instructions

Vultr tested these commands to start an inference server for Qwen4 35B A3B, one per GPU and engine setup in the table above. Each one starts the engine on a Vultr Cloud GPU and serves the model over HTTP, so an application can send requests to it once it is up. The vLLM and SGLang Docker images in these commands, with their version tags, are the ones Vultr tested and benchmarked with. Replace `YOUR_HF_TOKEN` with your own value before you run a command. The same commands are on the [Qwen4 35B A3B model page](https://docs.vultr.com/models/alibaba-qwen-4/qwen4-35b-a3b).

### NVIDIA B200, vLLM

Note: Model is served in multimodal mode by default; to restrict the engine to text-only processing, use the --language-model-only flag.

```bash
docker run -it --rm \
  --runtime=nvidia \
  --gpus all \
  --ipc=host \
  --shm-size=128g \
  -p 8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -e HF_TOKEN='YOUR_HF_TOKEN' \
  vllm/vllm-openai:qwen4 \
  Qwen/Qwen4-35B-A3B \
  --tensor-parallel-size 8 \
  --max-num-batched-tokens 65536 \
  --gpu-memory-utilization 0.90 \
  --max-model-len auto \
  --disable-flashinfer-autotune \
  --attention-config.indexer_kv_dtype fp8 \
  --kv-cache-dtype nvfp4 \
  --enable-auto-tool-choice \
  --tool-call-parser qwen4 \
  --reasoning-parser qwen4 \
  --max-num-seqs 1024 \
  --trust-remote-code
```

### NVIDIA B200, SGLang

Note: Model is served in multimodal mode by default; to restrict the engine to text-only processing, use the --language-only flag.

```bash
docker run --gpus all \
  --shm-size 128g \
  --cap-add SYS_NICE \
  -p 8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -e HF_TOKEN='YOUR_HF_TOKEN' \
  --ipc=host \
  lmsysorg/sglang:qwen4 \
  python3 -m sglang.launch_server \
  --model-path Qwen/Qwen4-35B-A3B \
  --host 0.0.0.0 \
  --port 8000 \
  --max-prefill-tokens 65536 \
  --max-running-requests 1024 \
  --tp 8 \
  --ep 8 \
  --qsa-indexer-dtype fp8_e4m3 \
  --linear-attn-prefill-backend flashinfer \
  --linear-attn-decode-backend flashinfer \
  --mamba-ssm-dtype bfloat16 \
  --attention-backend trtllm_mha \
  --tool-call-parser qwen4 \
  --reasoning-parser qwen4 \
  --mem-fraction-static 0.85 \
  --trust-remote-code
```

## Benchmarks

Vultr benchmarked Qwen4 35B A3B on Vultr Cloud GPUs with the inference instructions above. Each table is one GPU and engine setup, measured as the number of concurrent requests rises. Each row averages the runs with 250, 500 and 1,000-token prompts.

- Total throughput: Total tokens moved per second across all in-flight requests: prompt tokens plus generated tokens, divided by wall-clock time. Sets how many concurrent users one node supports and drives cost per million tokens; where the curve flattens is the saturation point. Higher is better.
- Output throughput: generated tokens per second across all in-flight requests, prompt tokens left out. It is the rate at which text comes back to users, so it is the number to compare when responses are long. Higher is better.
- Time to first token (TTFT): Delay from sending the request to receiving the first token: queue wait plus prompt processing. This is perceived responsiveness: it governs UX for chat, autocomplete, and multi-step agents, where every tool call pays the TTFT cost again. Lower is better.
- Inter-token latency (ITL): Average gap between consecutive generated tokens after the first, which controls how fast text appears once streaming starts. It rises with concurrency because batched requests share each GPU pass, trading single-user speed for aggregate throughput. Lower is better. A shallow slope means efficient batching, and the avg-to-p99 gap shows consistency.
- Avg is the mean and P99 the 99th percentile: the gap between them shows how consistent a setup is under load.

To choose a concurrency, read a table's rows together: each extra concurrent request buys throughput at some cost in TTFT and ITL. Run at the highest concurrency whose Avg TTFT still meets your latency target, such as "TTFT under 500 ms". Where total throughput stops rising, the setup is saturated and more requests only add latency.

Highest total throughput: 99,203 tokens/s on NVIDIA B200, SGLang at 512 concurrent requests. Fastest first token: 54 ms on average on NVIDIA B200, SGLang at 16 concurrent requests, the lowest concurrency tested.

### NVIDIA B200, vLLM

Peak total throughput is 75,600 tokens/s, 20,777 of them output tokens, at 512 concurrent requests. At 16 concurrent requests, the first token arrives in 60 ms on average and the next tokens follow every 5 ms.

| Concurrency | Total throughput (tokens/s) | Output throughput (tokens/s) | Avg TTFT (ms) | P99 TTFT (ms) | Avg ITL (ms) | P99 ITL (ms) |
| --- | --- | --- | --- | --- | --- | --- |
| 16 | 11,199 | 3,006 | 60 | 405 | 5 | 13.2 |
| 32 | 19,184 | 5,277 | 53 | 212 | 5.7 | 6.1 |
| 64 | 29,677 | 8,197 | 74 | 311 | 7.1 | 8 |
| 128 | 45,311 | 12,524 | 140 | 491 | 8.9 | 10.5 |
| 256 | 67,319 | 18,680 | 398 | 855 | 10.7 | 13.2 |
| 512 | 75,600 | 20,777 | 1,065 | 1,634 | 17.6 | 21.5 |

### NVIDIA B200, SGLang

Peak total throughput is 99,203 tokens/s, 27,751 of them output tokens, at 512 concurrent requests. At 16 concurrent requests, the first token arrives in 54 ms on average and the next tokens follow every 5.3 ms.

| Concurrency | Total throughput (tokens/s) | Output throughput (tokens/s) | Avg TTFT (ms) | P99 TTFT (ms) | Avg ITL (ms) | P99 ITL (ms) |
| --- | --- | --- | --- | --- | --- | --- |
| 16 | 10,301 | 2,841 | 54 | 278 | 5.3 | 5.9 |
| 32 | 15,060 | 4,152 | 67 | 207 | 7.3 | 8.1 |
| 64 | 24,890 | 6,814 | 108 | 395 | 8.6 | 9.9 |
| 128 | 41,658 | 11,542 | 152 | 471 | 9.7 | 11.9 |
| 256 | 67,876 | 18,999 | 408 | 837 | 10.5 | 13.2 |
| 512 | 99,203 | 27,751 | 1,186 | 1,569 | 11.5 | 14.6 |

## Links

More about Qwen4 35B A3B from outside Vultr Docs.

- [Blog](https://www.qwencloud.com/models/qwen4-35b-a3b)
- [HF Model Card](https://huggingface.co/Qwen/Qwen4-35B-A3B)
