Model guides

Run Qwen3-Coder on a cloud GPU

Which GPU Qwen3-Coder-30B-A3B and Qwen3-Coder-Next need, how to serve them with vLLM or Ollama, and how to point a coding tool at your own private endpoint.

The Qwen3-Coder model for one GPU is Qwen3-Coder-30B-A3B. It is 61.07 GB in BF16, which an 80 GB card holds with about 12 GB left, and 31.18 GB in Qwen's official FP8 build, which fits a 48 GB Ada card. Qwen3-Coder-Next is the larger 80B model at 159.36 GB and takes 2x H200 or 4x 80 GB GPUs. Both are Apache-2.0, and an SSH tunnel is how a coding tool on your own machine reaches either one.

Two coder models: 61 and 159 GB

The 30B-A3B card lists 30.5B parameters with 3.3B active, 48 layers, 4 KV heads and a native context of 262,144 tokens. The Next card lists 80B parameters with 3B active, 48 layers in a hybrid of Gated DeltaNet and attention, and the same context. Both models run in non-thinking mode only. Sizes are the summed safetensors files and tag sizes come from Ollama's library, checked 1 October 2026.

ModelCheckpointSmallest VM that holds it (calculated)Closest Ollama tag
30B-A3B, BF1661.07 GBOne 80 GB GPU, about 12 GB left, or an RTX PRO 6000, about 27 GB leftqwen3-coder:30b, 19 GB
30B-A3B, FP831.18 GBOne 48 GB Ada card, about 13 GB leftqwen3-coder:30b-a3b-q8_0, 32 GB
Next, BF16159.36 GB2x H200, about 100 GB left, or 4x 80 GB, about 135 GB leftqwen3-coder-next, 52 GB
Next, FP880.38 GBOne H200, about 49 GB leftqwen3-coder-next:q8_0, 85 GB

The left-over figures are 92% of the VM's memory minus the checkpoint, so they leave out activations. FP8 runs natively on the Ada cards in the 48 GB tier but not on the RTX A6000. The 30B costs 96 KiB of KV cache per token, which is 3 GiB for a 32,000-token session and 12 GiB for a 128,000-token one (calculated from its config), so the 12 GB left on an 80 GB card is a few short sessions and the 27 GB on an RTX PRO 6000 is one session near the full context. Next has 12 attention layers and costs 24 KiB per token, plus a fixed state for its DeltaNet layers. The KV cache explainer has the method, and an FP8 KV cache halves them where the model supports it.

Serve the 30B-A3B with vLLM

Qwen's README says Qwen3-Coder function calling relies on a dedicated tool parser in vLLM and SGLang. The flags for it come from the Next card and vLLM's recipe for the 480B coder. This is the 30B in Docker, with the port bound to loopback and a 64K context to start with:

Code example
sudo docker run -d --name vllm --gpus all --ipc=host \
  -p 127.0.0.1:8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  vllm/vllm-openai:latest \
  --model Qwen/Qwen3-Coder-30B-A3B-Instruct \
  --max-model-len 65536 \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder

The card recommends temperature=0.7, top_p=0.8, top_k=20 and repetition_penalty=1.05, and an output length of 65,536 tokens for most queries, so set those in the coding tool. Raise --max-model-len only once sudo docker logs vllm shows the KV cache has room.

See 80 GB GPU offers for Qwen3-Coder-30B-A3B

Serve Qwen3-Coder-Next on 2x H200

The Next card's vLLM command uses a tensor parallel size of 2 and needs vLLM 0.15.0 or newer. It says to reduce the context to 32,768 if you hit out-of-memory errors, with --max-model-len 32768. The card also gives an SGLang command with the same tool parser and a tensor parallel size of 2, and it needs SGLang 0.5.8 or newer. In Docker:

Code example
sudo docker run -d --name vllm --gpus all --ipc=host \
  -p 127.0.0.1:8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  vllm/vllm-openai:latest \
  --model Qwen/Qwen3-Coder-Next \
  --tensor-parallel-size 2 \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder

On four 80 GB GPUs, set the tensor parallel size to 4. Pick an H200 offer whose Interconnect column says NVLink, as the H200 page explains.

GPUGPUsProviderRegionvCPU / RAM / DiskInterconnectPer GPU-hrPer hourLaunch
H200 SXM 141 GB2xVerdaHelsinki, FI88 / 340 GB / -NVLink (SXM)$5.38$10.77Launch
H200 SXM 141 GB4xVerdaHelsinki, FI176 / 680 GB / -NVLink (SXM)$5.38$21.54Launch
H200 SXM 141 GB8xVerdaHelsinki, FI176 / 1360 GB / -NVLink (SXM)$5.38$43.07Launch
3 H200 VM offers available, checked 2026-10-14 16:57 UTC. Prices include any platform fee. The deploy page shows the full breakdown before you pay. See all in the marketplace.

Point a coding tool at your own endpoint

Open the tunnel from your own machine with the user, host and port from the SSH command on your deployment, and leave it running. Qwen Code's authentication docs list OPENAI_API_KEY, OPENAI_BASE_URL and OPENAI_MODEL for any OpenAI-compatible endpoint, and any tool with a base URL setting works the same way:

Code example
ssh -N -L 8000:127.0.0.1:8000 ubuntu@YOUR_VM_IP -p 22

export OPENAI_BASE_URL="http://localhost:8000/v1"
export OPENAI_API_KEY="EMPTY"
export OPENAI_MODEL="Qwen/Qwen3-Coder-30B-A3B-Instruct"

The server has no key, so the placeholder is enough. Check the model name with curl http://localhost:8000/v1/models. The port forwarding guide covers keeping a tunnel alive, and the vLLM guide has the rest of the server setup. Qwen's README lists Qwen Code, Cline and Claude Code among the tools the models are built for, and each tool has its own way to set a custom endpoint, so check its documentation.

Ollama, GGUF and the license

For chat, qwen3-coder:30b is a 19 GB download with a 256K context window and runs on a 48 GB card:

Launch Open WebUI + Ollama for Qwen3-Coder 30B

Opens the deploy page on the cheapest 1x 48 GB GPUs offer at 2026-10-14 16:57 UTC: QuantaCloud, $0.48/hr. You can pick another GPU there before paying.

Qwen publishes official GGUF files for Next in Qwen/Qwen3-Coder-Next-GGUF, where the Q4_K_M files total about 48 GB, and llama.cpp registers both the Qwen3 MoE and Qwen3-Next architectures. Both models are Apache-2.0, so commercial use and fine-tuning need no separate agreement. Stopping a DeployGPU instance deletes its disk, so each launch downloads the weights again, and the stop guide covers what to copy off first. The Qwen page covers the general-purpose models in the same family.

Frequently asked questions

Which GPU runs Qwen3-Coder-30B-A3B?

One 80 GB GPU runs the 61.07 GB BF16 checkpoint with about 12 GB left, and a 96 GB RTX PRO 6000 leaves about 27 GB. The official FP8 build is 31.18 GB and fits a 48 GB Ada card.

What does Qwen3-Coder-Next need?

2x H200 or 4x 80 GB GPUs in BF16, because the checkpoint is 159.36 GB. The official FP8 build is 80.38 GB and fits one H200.

Can a coding tool use my own endpoint?

Yes, if the tool accepts an OpenAI-compatible base URL, as Qwen Code does. Run the server on 127.0.0.1 of a GPU VM, open an SSH tunnel and point the base URL at the local port. DeployGPU app links cannot be used for this.

Why does the Next card say to reduce the context?

The default context is 256K tokens, which can run out of memory. The card suggests 32,768 as a starting point if the server fails to start.

Is Qwen3-Coder free for commercial use?

Yes. Both models are released under Apache-2.0, with no separate commercial license required.