Guideschevron_rightServers

Servers · 9 min read · Updated

How to Run Qwen4-35B-A3B and Qwen3.8-27B on Your Own Server

Qwen4-35B-A3B runs at 4-bit on a GPU with 24 to 32 GB, or on a server with about 44 GB of system memory and no GPU at all, because it uses only 3 billion of its parameters per token. Start it with llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M, or serve the FP8 version with vLLM on a card with 48 GB or more. Qwen3.8-27B, the dense model before it, needs about 18 GB and starts with ollama run qwen3.8:27b.

Qwen4-35B-A3B vs Qwen3.8-27B

Qwen4-35B-A3B and Qwen3.8-27B compared
FeatureQwen4-35B-A3BQwen3.8-27B
TypeMixture of expertsDense
Parameters35B, plus 20B n-gram table and 2B drafting head27B
Used per token3B27B
Context1,048,576 tokens262,144 tokens, extensible to 1,000,000
InputText, images, videoText, images, video
4-bit file (Q4_K_M)36 GB19.4 GB
8-bit file (Q8_0)59.4 GB28.6 GB
Reasoning effortxhigh, high (default), low, offxhigh (default), medium, low
LicenceApache 2.0Apache 2.0

From Qwen's cards for Qwen4-35B-A3B and Qwen3.8-27B, and the files in llama.cpp's own builds. Qwen4 files are bigger than the model needs in GPU memory, because they include the n-gram table.

Qwen4 on Our GPU Servers

Based on Unsloth's figures of 21 to 25 GB for 4-bit weights and 41 GB for 8-bit with the n-gram table out of GPU memory. Longer contexts and more users need more.

GPU servers and how they run Qwen4-35B-A3B
PlanGPUTotal GPU memorySystem memoryQwen4-35B-A3BPrice
Intel Core Ultra 9 285K w/ NVIDIA Tesla P4NVIDIA Tesla P4 · 8 GB8 GB192 GB4-bit, experts on the CPU$589.00/mo
NVIDIA DGX SparkNVIDIA DGX Spark · 128 GB128 GB128 GB8-bit on the GPU$609.00/mo
AMD EPYC 7443P w/ NVIDIA RTX 3090NVIDIA RTX 3090 · 24 GB24 GB256 GBA smaller 4-bit build on the GPU$659.00/mo
AMD Ryzen 9 9950X w/ NVIDIA RTX 3050NVIDIA RTX 3050 · 6 GB6 GB192 GB4-bit, experts on the CPU$699.00/mo
AMD Dual EPYC 7702 w/ NVIDIA RTX 3050NVIDIA RTX 3050 · 6 GB6 GB256 GB4-bit, experts on the CPU$749.00/mo
AMD Ryzen 9 9950X w/ NVIDIA RTX 5090NVIDIA RTX 5090 · 32 GB32 GB64 GB4-bit on the GPU$789.00/mo
AMD Ryzen 9 9950X w/ NVIDIA RTX 5090NVIDIA RTX 5090 · 32 GB32 GB96 GB4-bit on the GPU$829.00/mo
AMD Dual EPYC 7702 w/ NVIDIA RTX 5070NVIDIA RTX 5070 · 12 GB12 GB256 GB4-bit, experts on the CPU$859.00/mo
AMD EPYC 7702 w/ 4x NVIDIA RTX 30904× NVIDIA RTX 3090 · 24 GB each96 GB128 GB8-bit on the GPU$929.00/mo
AMD EPYC 7443P w/ 4x NVIDIA V100 16GB4× NVIDIA V100 · 16 GB each64 GB128 GB8-bit on the GPU$1,059.00/mo
AMD EPYC 7443P w/ 4x NVIDIA V100 32GB4× NVIDIA V100 · 32 GB each128 GB128 GB8-bit on the GPU$1,059.00/mo
AMD EPYC 7443P w/ 4x NVIDIA V1004× NVIDIA V100—256 GB—$1,189.00/mo
Intel Dual Xeon Platinum 8260 w/ 8x NVIDIA V1008× NVIDIA V100 · 32 GB each256 GB1 TB8-bit on the GPU$1,319.00/mo
2x NVIDIA DGX Spark2× NVIDIA DGX Spark · 128 GB each256 GB256 GB8-bit on the GPU$1,449.00/mo
AMD EPYC 9B14 w/ 2x NVIDIA RTX 50902× NVIDIA RTX 5090 · 32 GB each64 GB384 GB8-bit on the GPU$2,639.00/mo
AMD EPYC 9355 w/ NVIDIA RTX PRO 6000NVIDIA RTX PRO 6000 · 96 GB96 GB768 GB8-bit on the GPU$2,639.00/mo
AMD EPYC 9254 w/ 4x NVIDIA RTX 50904× NVIDIA RTX 5090 · 32 GB each128 GB384 GB8-bit on the GPU$3,819.00/mo

Qwen4 Without a GPU

With 3 billion parameters read per token, Qwen4-35B-A3B is one of the more practical models for a processor. The table adds 8 GB for the system and the conversation to each file size and compares it with the largest memory option of each server.

Qwen4-35B-A3B builds that fit in each dedicated server's memory
ServerMemory4-bit8-bitFrom
AMD Ryzen 5 760032 GBToo largeToo large$139.00/mo
AMD Ryzen 5 9600X32 GBToo largeToo large$199.00/mo
AMD EPYC 4245P32 GBToo largeToo large$199.00/mo
Intel Xeon E3-1270 v564 GBFitsToo large$79.00/mo
AMD Ryzen 9 5950X128 GBFitsFits$399.00/mo
Intel Core Ultra 9 285K128 GBFitsFits$399.00/mo
AMD Ryzen 9 7950X128 GBFitsFits$479.00/mo
AMD EPYC 4585PX128 GBFitsFits$849.00/mo
AMD Ryzen 9 9950X192 GBFitsFits$349.00/mo
AMD EPYC 9B14192 GBFitsFits$1,189.00/mo
AMD Dual EPYC 7502256 GBFitsFits$529.00/mo
AMD EPYC 9334256 GBFitsFits$829.00/mo
AMD EPYC 9754S256 GBFitsFits$1,319.00/mo
AMD Dual EPYC 9174F384 GBFitsFits$1,319.00/mo
AMD Dual EPYC 7702512 GBFitsFits$869.00/mo
AMD EPYC 7443P512 GBFitsFits$969.00/mo
AMD EPYC 9455P512 GBFitsFits$999.00/mo
AMD Ryzen Threadripper 9960X512 GBFitsFits$1,269.00/mo
AMD EPYC 9455512 GBFitsFits$2,299.00/mo
AMD EPYC 9254768 GBFitsFits$1,189.00/mo
AMD Ryzen Threadripper 9970X768 GBFitsFits$3,289.00/mo
AMD Dual EPYC 74431 TBFitsFits$519.00/mo
AMD EPYC 9275F1 TBFitsFits$929.00/mo
AMD Dual EPYC 77421 TBFitsFits$1,059.00/mo
AMD EPYC 9355P1 TBFitsFits$2,109.00/mo
AMD EPYC 97551 TBFitsFits$2,109.00/mo
AMD Ryzen Threadripper 7960X1 TBFitsFits$3,159.00/mo
AMD Dual EPYC 9B141.5 TBFitsFits$6,059.00/mo
AMD Dual EPYC 7H122 TBFitsFits$2,639.00/mo
AMD Dual EPYC 77634 TBFitsFits$3,949.00/mo

1. Run Qwen4 With llama.cpp

Qwen4 support was merged into llama.cpp on December 3, 2026, so use a current build. The project's installer sets up the llama command:

curl -LsSf https://llama.app/install.sh | sh
llama serve --list-devices          # your GPU should be listed
openssl rand -hex 24 > ~/.llm-key   # your API key

llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M \
  -c 65536 --host 127.0.0.1 --port 8080 \
  --api-key "$(cat ~/.llm-key)" \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0
  • The n-gram table: by default llama.cpp reads tables like this from disk on demand (--lazy-mode auto). A fast NVMe drive helps. To hold it out of GPU memory explicitly, Unsloth adds -ot per_layer_token_embd=CPU.
  • A small GPU: add --n-cpu-moe 40 to keep the experts of all 40 layers in system memory, then lower the number until the GPU is nearly full.
  • Faster answers: add --spec-type draft-mtp --spec-draft-n-max 3 to turn on the built-in drafting head, as Hugging Face's Qwen4 post suggests.

The server answers on /v1/chat/completions and has a chat page at the same address. Reach it from your computer with ssh -L 8080:127.0.0.1:8080 you@203.0.113.10.

2. Serve Qwen4 to Many Users With vLLM

vLLM's Qwen4 recipe uses its own Docker image. The FP8 version puts 39.7 GB on the GPU and the n-gram table in 20.5 GB of system memory; one RTX PRO 6000 is among the recipe's configurations. With the NVIDIA driver and Container Toolkit installed:

docker run -d --name qwen4 --restart unless-stopped \
  --gpus all --ipc=host -p 127.0.0.1:8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -e VLLM_USE_RUST_FRONTEND=1 \
  vllm/vllm-openai:qwen4 Qwen/Qwen4-35B-A3B-FP8 \
  --trust-remote-code --enable-prefix-caching \
  --tensor-parallel-size 1 --max-model-len auto \
  --disable-flashinfer-autotune \
  --kv-cache-dtype nvfp4 --attention-config.indexer_kv_dtype fp8 \
  --enable-auto-tool-choice --tool-call-parser qwen4 --reasoning-parser qwen4 \
  --api-key "$(cat ~/.llm-key)"

--max-model-len auto uses the full context when memory allows and otherwise lowers it to fit. --trust-remote-code runs code from the model's repository, so download only from Qwen. For HTTPS in front, see serving an LLM API.

3. Run Qwen3.8-27B With Ollama or vLLM

The quickest start is Ollama, an 18 GB download:

curl -fsSL https://ollama.com/install.sh | sh
ollama run qwen3.8:27b

On an RTX 5090, vLLM's recipe has tested settings. Two cards hold the FP8 version with its full 262,144-token context; one card holds a 4-bit build at a shorter context:

# two RTX 5090s
vllm serve Qwen/Qwen3.8-27B-FP8 \
  --tensor-parallel-size 2 --max-model-len 262144 --kv-cache-dtype fp8 \
  --reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder \
  --host 127.0.0.1 --api-key "$(cat ~/.llm-key)"

# one RTX 5090
vllm serve Inferact/Qwen3.8-27B-NVFP4 \
  --max-model-len 32768 --kv-cache-dtype fp8 --enforce-eager \
  --reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder \
  --host 127.0.0.1 --api-key "$(cat ~/.llm-key)"

On a single card, the recipe found that --enforce-eager decides whether it starts: without it, startup ends in torch.OutOfMemoryError: Tried to allocate 784.00 MiB while capturing CUDA graphs, and changing --gpu-memory-utilization does not help. More fixes in fixing CUDA out of memory.

Reasoning Effort and Settings

  • Sampling, thinking on: temperature=1.0, top_p=0.95, top_k=20. Thinking off: temperature=0.7, top_p=0.80, top_k=20, presence_penalty=1.5. Qwen recommends the same for both models.
  • Effort: send reasoning_effort with the request. Qwen warns that in agent work a lower effort can take longer overall, because of failed attempts and retries.
  • A chat interface: point Open WebUI at Ollama or at the OpenAI-compatible address above.
  • Is Qwen4 on Ollama? Qwen's card links to a page in Ollama's library, but that page was not live when we checked on December 4, 2026. Until it is, use llama.cpp.

Qwen, NVIDIA, GeForce and RTX are trademarks of their respective owners. Virteche is not affiliated with or endorsed by them. Details about their products come from their public documentation as of the date at the top of this guide.

Common Questions

  • How much VRAM does Qwen4-35B-A3B need?

    Unsloth lists about 21 to 25 GB for 4-bit weights and 41 GB for 8-bit when the n-gram table stays out of memory, plus room for the context. On vLLM, the official FP8 version puts 39.7 GB on the GPU and keeps a 20.5 GB table in system memory.

  • Why is the Qwen4-35B-A3B download so large for a 35B model?

    Because it holds more than 35 billion parameters: 20 billion more sit in an n-gram embedding table and 2 billion in the drafting head. Only a few rows of the table are read for each token, so engines keep it in system memory or on disk instead of on the GPU.

  • Should I run Qwen4-35B-A3B or Qwen3.8-27B?

    Qwen4-35B-A3B for long contexts, agents and servers without a large GPU: it uses about 3 billion parameters per token. Qwen3.8-27B is dense, needs about 18 to 20 GB at 4-bit, has been out since August 2026 and is supported by more tools, but is far slower on a processor.

  • Can I use Qwen4 commercially?

    Qwen4-35B-A3B and Qwen3.8-27B are both published under Apache 2.0. Other Qwen models use different licences, so check the card of the exact model you download.

Plans and prices

GPU Servers

Dedicated GPU servers with full root access, billed monthly.

See all plans
  • Intel Core Ultra 9 285K w/ NVIDIA Tesla P4

    NVIDIA Tesla P4 · 8 GB GPU

    24 Cores · 192 GB RAM · 2x 3.84TB NVMe Gen4

    Los Angeles, CA (LA1) · 50 TB transfer · 25 Gbps

    $589.00/mo

  • NVIDIA DGX Spark

    NVIDIA DGX Spark · 128 GB GPU

    20 Cores · 128 GB RAM · 4TB NVMe Gen4

    Ogden, UT (UT1) · 50 TB transfer · 10 Gbps

    $609.00/mo

    Sold out
  • AMD EPYC 7443P w/ NVIDIA RTX 3090

    NVIDIA RTX 3090 · 24 GB GPU

    24 Cores · 256 GB RAM · 3.84TB NVMe

    Ogden, UT (UT1) · 100 TB transfer · 10 Gbps

    $659.00/mo

  • AMD Ryzen 9 9950X w/ NVIDIA RTX 3050

    NVIDIA RTX 3050 · 6 GB GPU

    16 Cores · 192 GB RAM · 2x 2 TB NVMe

    Ashburn, VA (ASH1) · Dallas, TX (TX3) · New York, NY (NY2) · Charlotte, NC (NC1) · Bend, OR (OR1) · Unmetered transfer · 1 Gbps

    $699.00/mo

Keep Reading

All guides