Self-hosting Qwen3 and Qwen3-235B-A22B on vLLM

Planning a self-hosted Qwen3 deployment on vLLM means choosing accelerator, precision, tensor parallel layout, context length and parsers before buying capacity. This page covers those decisions and what to confirm.

On this page

Self-hosting Qwen3 on vLLM: what the work covers

A team that wants Qwen3 inside its own infrastructure is usually deciding two things at once: which model size and precision the hardware can carry, and who will run the serving stack after launch. This section sets out what that work covers. vLLM is an open-source inference and serving engine licensed under Apache-2.0, and it has no paid edition. The license cost is zero, so the money goes to accelerator capacity, the surrounding infrastructure such as networking, storage and monitoring, the implementation effort, and the engineers who operate the platform. Those are the lines to put into a budget and a quote.

The vLLM server, started with vllm serve, exposes OpenAI-compatible endpoints including /v1/completions, /v1/chat/completions and /v1/responses. Applications written for the OpenAI API can usually point at the self-hosted server with a changed base URL, which shifts integration work from the application team to the platform team. The vLLM recipe for Qwen3 covers Qwen3-235B-A22B in BF16 and in the FP8 checkpoint on AMD MI300X, MI325X and MI355X at tensor parallel size 4, and it also covers Qwen3-32B and Qwen3-4B on TPU Trillium. Those recipe combinations set the hardware baseline the rest of this page builds on, so confirm them against the current recipe before you size anything.

Your implementation scope should therefore start with a written decision on hardware family, precision and the API surface your applications need. Ask the implementation partner to confirm which recipe configuration matches your accelerators, which checkpoint you will serve, and which endpoints will be reachable by users. The vLLM project publishes a new minor release about every two weeks, so the scope should also name the version you will pin and the process for upgrades. Treat those three decisions as the inputs to any quote, because they determine the hardware, the test effort and the operating load.

Which Qwen3 layout fits which accelerator and precision

This table compares the Qwen3 combinations the vLLM recipe lists, by model, precision, accelerator and key serving flags. Read each row as a starting point to confirm against the current recipe, not as a sizing guarantee, since memory fit depends on your batch size, context length and vLLM version.

ConfigurationAccelerator and layoutKey settings in the recipeWhat to confirm before you commit
Qwen3-235B-A22B, BF16AMD MI300X, MI325X or MI355X at TP4TP4, --max-model-len 32768, --gpu-memory-utilization 0.8Total accelerator memory across four GPUs is enough for BF16 weights plus KV cache at your target concurrency
Qwen/Qwen3-235B-A22B-FP8, FP8AMD MI300X, MI325X or MI355X at TP4TP4, --max-model-len 32768, --gpu-memory-utilization 0.8Recipe lists the FP8 checkpoint on the same AMD parts, so compare memory headroom and throughput against BF16 on your own traffic
Qwen3-32BTPU TrilliumRecipe-specified TPU settingsConfirm the TPU vLLM build and topology the recipe targets for your region and quota
Qwen3-4BTPU TrilliumRecipe-specified TPU settingsConfirm the TPU vLLM build and topology the recipe targets for your region and quota
Maximum context lengthAny listed layout--max-model-len 32768 in the 235B AMD entriesLonger contexts need more KV cache memory; confirm any larger value in the current recipe before planning
Tool call parserAny listed layoutParser flag set per the vLLM tool calling docs and recipeConfirm the parser name matches the Qwen3 chat format in the version you deploy
Reasoning parserAny listed layoutParser flag set per the recipeConfirm whether the recipe enables a reasoning parser and how your clients handle reasoning output

How BF16, FP8 and tensor parallel size change the plan

The choice of precision and parallel layout decides which hardware can host Qwen3-235B-A22B and how the deployment behaves under load. The cards below cover the memory question, the difference between parallelism inside and across nodes, why data parallel matters for this mixture-of-experts model, and what changes when the recipe's TP4 layout moves to a different GPU count.

BF16 and FP8 weight footprint

Qwen3-235B-A22B in BF16 holds far more weights than the FP8 checkpoint, and that gap decides whether the model fits on a single node at all. Ask the model card and the vLLM recipe for the published weight sizes, then add KV cache, activations and CUDA graph overhead on top. The recipe pairs the FP8 checkpoint with a 0.8 GPU memory utilization target, so confirm that headroom against your own accelerator memory before you buy capacity.

Qwen3 recipe

Tensor parallel size within a node

Tensor parallelism splits each layer across GPUs, so every token needs communication between devices on every step. Keeping the TP group inside one node uses fast intra-node links and is the layout the recipe uses for TP4 on AMD Instinct accelerators. Check that your node exposes the GPU count you plan to use and that the TP size divides the model's attention head layout.

Pipeline parallelism across nodes

Pipeline parallelism places consecutive layer groups on different nodes, so only activations cross the network between stages. vLLM uses Ray or its own multiprocessing backend for multi-node runs, and the security docs state that inter-node traffic is unauthenticated and unencrypted by default. Plan an isolated network for those links before you spread the model across hosts, and confirm the cross-node latency your workload can tolerate.

Parallelism docs

Data parallel for the MoE layers

Qwen3-235B-A22B activates a subset of experts per token, so running several full replicas can raise total throughput when the model fits in each replica's memory. vLLM supports data parallel deployment for mixture-of-experts models, which suits high request volume more than single-request latency. Measure concurrency and tokens per second on a pilot before choosing between one large TP group and several smaller replicas, since each replica needs its own full set of weights.

Moving the TP4 layout to another GPU count

The recipe's TP4 layout assumes four accelerators per model instance with the stated context limit of 32768 tokens. Changing the GPU count changes the TP size, the per-GPU weight share and the KV cache left for concurrent requests, so the recipe's flags do not transfer unchanged. Re-verify the memory fit, the max model length and the throughput for each new layout, and ask your hardware or integration partner to document the tested configuration.

Confirming figures before procurement

Memory figures for both precisions depend on the exact checkpoint, the vLLM release and the accelerator driver stack, so none of them should go into a budget unverified. Confirm the weight sizes on the model card, run the recipe on the target hardware, and record the vLLM version used, since releases ship about every two weeks. Treat any sizing you have not measured on your own hardware as an open item in the quote.

Context limits, tool parsers and reasoning parsers

The recipe for Qwen3-235B-A22B sets --max-model-len 32768 on AMD Instinct MI300X, MI325X and MI355X at TP4, and that value is a starting point, not a ceiling you should raise on faith. The KV cache grows with every token each active request holds, so a longer --max-model-len leaves less memory for concurrent requests once --gpu-memory-utilization 0.8 is fixed. Before you raise the limit, run a load test with your real prompt lengths, concurrency and output lengths, then watch KV cache usage and queue time on the /metrics endpoint. Ask your hardware vendor and the vLLM release notes for the context behavior of the exact vLLM version you deploy, since the recipe may lag the engine.

Tool calling and reasoning output are both configured on the server, so they belong in the deployment plan rather than in application code. Tool calls depend on a tool parser that matches the model's output format, and the vLLM tool calling documentation explains how to enable automatic tool choice and select a parser. Reasoning content also needs a matching parser if your applications should receive it separately from the final answer. Confirm the parser name for your vLLM version in the documentation, then test tool calls end to end with the same prompts your applications send, including malformed or refused tool requests.

The chat completions endpoint, /v1/chat/completions, needs a chat template. Qwen3 checkpoints from the model repository normally carry one in the tokenizer configuration, but if the template is missing or your checkpoint is a repackaged copy, supply one with --chat-template and check the rendered prompt against the model card before going live. Treat template choice as a change control item: a different template or a vLLM upgrade can change tool and reasoning output without any change to your application. Keep a fixed set of regression prompts for tool calls, reasoning and long inputs, and rerun them after every model, template or engine change.

How a Qwen3 vLLM deployment is set up

The sequence moves from choosing the Qwen3 variant and its recipe to a measured, OpenAI-compatible server on accelerators you control, with each step closed by a check that the previous one held.

  1. Confirm the model variant and recipe

    Before any hardware is bought or reserved, the team picks the exact checkpoint, such as the BF16 Qwen3-235B-A22B or the Qwen/Qwen3-235B-A22B-FP8 variant, and reads the vLLM Qwen3 recipe for that checkpoint. The recipe sets the accelerator families it covers, the tensor parallel size, the context limit and the memory utilization used in the reference run. Owners: the platform lead with the model owner. Done when the chosen checkpoint, precision, accelerator family and recipe revision are written into the design record, and any gap between the recipe and the target hardware is listed as an open question.

  2. Match the accelerator and driver stack

    Confirm that the target hosts run a supported stack for the accelerator family: ROCm for AMD Instinct, CUDA for NVIDIA, or the TPU software path for TPU Trillium. Check the vLLM installation documentation for the accelerator and operating system pair, then pin the driver, runtime and vLLM versions together. The vLLM release cadence is roughly every two weeks, so the team should pin a specific release rather than track the latest one. Done when a node reports the expected accelerator count, memory per device and driver version, and a minimal vLLM import runs on that node without errors.

  3. Start the server with the chosen layout

    Launch the model with vllm serve, setting the tensor parallel size to match the recipe for the accelerator, along with --max-model-len and --gpu-memory-utilization from the same recipe. Add the tool-call and reasoning parser flags only after confirming the parser names in the vLLM tool calling documentation for this model version. Keep the server on an internal interface and place it behind the access layer described later. Done when the server log reports the model fully loaded on every expected device, the process stays up through the first requests, and no out-of-memory messages appear during warm-up.

  4. Check the chat completions endpoint

    Send a short test prompt to /v1/chat/completions with an OpenAI-compatible client, using the exact model name the server reports. Include a request that uses the tool-call path if the application needs it, and a request with a long prompt near the configured context limit. Confirm the response is well formed and the reasoning output, if enabled, is separated as the application expects. Done when both test requests return complete responses, the model name matches the deployment record, and the long-context request succeeds without truncation errors.

  5. Confirm the endpoint exposure

    Before any user traffic, the platform team checks which routes the server exposes. The vLLM security documentation states that the --api-key option does not protect every route, including /metrics and /health, so a reverse proxy should allowlist only the endpoints users need. Run a probe from outside the approved network to confirm the blocked routes are unreachable. Done when the proxy policy is recorded, unauthenticated requests to user routes are rejected, and the internal routes are reachable only from the monitoring network.

  6. Load test and record the metrics

    Run a load test that mirrors the expected prompt length, output length and concurrency, using a tool the team already trusts. During the run, scrape the /metrics endpoint to record request counts, token throughput, latency histograms and KV cache use. Save the baseline values with the vLLM version, accelerator layout and flags, so later changes can be compared. Done when the team has a documented baseline for throughput, latency and KV cache pressure at the target load, and the scrape job feeds the monitoring system.

How client requests reach the Qwen3 server

Requests start in client applications and pass through a reverse proxy that allowlists only the user-facing endpoints. The proxy forwards them to the vLLM API server, which hands work to the tensor-parallel GPU group on one node. The /metrics endpoint is scraped by Prometheus on the private network, not exposed to users. Check that /metrics, /health and the other operator endpoints are blocked at the proxy, because --api-key alone does not protect them.

Client traffic crosses one trust boundary and reaches the GPU group through the API server.

Securing the endpoint and the multi-node network

A self-hosted Qwen3-235B-A22B server exposes more than its chat endpoint, and a multi-node deployment carries traffic between nodes that vLLM does not protect by default. The cards below cover what the API key covers, what a reverse proxy should allow through, how node traffic should be isolated, and which operational outputs to review before go-live.

API key scope is narrow

The --api-key option protects the /v1, /v2, /inference and /cohere endpoints, but not /invocations, /pause, /resume, /abort_requests, /metrics or /health. Teams often assume a key on the server covers everything, so a /pause or /abort_requests call could go unauthenticated. Do not rely on the key alone. Check each unprotected route against your threat model before the server is reachable from user networks.

vLLM security docs

Allowlist user endpoints at a proxy

The vLLM security guidance recommends a reverse proxy that forwards only the endpoints meant for users, such as /v1/chat/completions and /v1/responses, and drops everything else. For a Qwen3 deployment, the proxy is also the natural place to enforce TLS, request size limits and client identity. Confirm in a test environment that a request to a blocked path returns an error and never reaches the engine.

Isolate inter-node traffic

In a multi-node deployment, communication between nodes is insecure by default, with no authorization or encryption. The docs say it must be protected by placing nodes on an isolated network. For the 235B MoE layout, this means the links carrying tensor and expert traffic between hosts sit on a private segment, with no route from user networks. Ask your network team to show the segmentation before the cluster is connected to Ray or the multiprocessing backend.

Parallelism and scaling docs

Review the metrics endpoint

The /metrics endpoint publishes Prometheus-format data on request counts, token throughput, latency histograms and KV cache use. Because the API key does not cover it, anyone who can reach the port can read operational detail about traffic patterns and capacity. Restrict scraping to your monitoring network, and confirm the Prometheus job uses an internal address rather than a public route.

vLLM metrics docs

Check prompt and response logging

Access logs and application logs for a chat server can capture request bodies, which for a deployed Qwen3 model may include confidential prompts, personal data or tool outputs. Decide which fields your log pipeline keeps, who can read them and how long they are retained. Confirm the exact logging behavior of the vLLM release you pin, since defaults change between releases, and test it with a sample prompt containing a synthetic identifier.

Confirm health checks stay internal

The /health endpoint is unauthenticated, which is useful for load balancers and Kubernetes probes but tells an outside caller that the server is up and accepting requests. Route probes over the cluster network, and do not publish /health through the public proxy. Record the probe paths in your runbook so that an operator changing the proxy rules does not break failover.

Questions buyers ask before self-hosting Qwen3 on vLLM

What drives the cost of running Qwen3-235B-A22B on vLLM?

Most of the cost comes from accelerator capacity, the surrounding infrastructure and the people who operate the stack, because vLLM itself has no paid edition and is licensed under Apache-2.0. The Qwen3 recipe for the 235B model runs at TP4 on AMD MI300X, MI325X or MI355X, so the GPU count, GPU generation and whether you own or rent the hardware set the largest line items. Other drivers include storage for weights, load balancers and reverse proxies, monitoring, backups, and engineering time for upgrades. Ask any partner for a quote that separates one-time work such as design, build and testing from recurring work such as upgrades, retesting and on-call support, and that states who pays for each accelerator hour.

How long does a Qwen3 on vLLM deployment take?

Duration depends on how much of the platform is new to your organization: the hardware access, network design, identity and gateway integration, and the approval path for the model weights. A deployment that reuses existing GPU nodes and an approved gateway moves faster than one that needs new clusters or a security review of the serving layer. Model choice also matters, since the 235B MoE needs a multi-GPU node layout while smaller Qwen3 variants have lighter requirements. Ask for a written schedule tied to the agreed scope, with named dependencies on your side, and confirm the vLLM release you will pin, since vLLM ships new minor releases about every two weeks.

Can an internal team deploy Qwen3 on vLLM without a partner?

A team with GPU operations experience, Linux and container skills and a working knowledge of the OpenAI-compatible API can usually stand up a single-node test. The harder parts are production-grade: correct tensor parallel settings for your accelerators, a tuned context limit, a reverse proxy that exposes only user-facing endpoints, network isolation for any multi-node run, metrics collection and a repeatable upgrade path. The vLLM security documentation notes that the --api-key option does not protect every endpoint, so the proxy allowlist is required work, not an option. Assess your team against each of these items, and decide whether the gap is a hiring question, a training question or a scope you want a partner to carry.

What does the work need from our side?

Expect to provide access to the accelerator hosts or cloud accounts, a network design that places serving nodes on an isolated segment, and a named owner who can approve the model source and its license. Security teams should confirm how user traffic reaches the API, which identity provider handles sign-in, and where logs and metrics go. For multi-node layouts, the vLLM security docs state that inter-node traffic is insecure by default, so your network team must confirm isolation before the build starts. Agree these inputs in writing at the start, because late approvals are a common source of schedule slip.

Should we run Qwen3-235B-A22B in BF16 or FP8?

The choice is a trade-off between memory footprint and fidelity to the reference weights, and the recipe covers both paths: BF16 and the Qwen/Qwen3-235B-A22B-FP8 checkpoint, both on AMD MI300X, MI325X and MI355X at TP4 with --max-model-len 32768 and --gpu-memory-utilization 0.8. FP8 reduces the memory needed for weights, which can change how many accelerators or how much context headroom you need, while BF16 keeps the original precision. Validate the choice on your own prompts and tasks, comparing answer quality, latency and throughput, and record the result in your model approval file. Confirm the exact checkpoint and recipe flags against the current vLLM recipe before you order hardware.

Which tool and reasoning parser settings should we plan for?

Parser choices decide whether tool calls and reasoning output reach applications in the structure they expect, so decide them before integration testing. vLLM documents tool calling as a server feature, and the parser setting must match the model's output format. Test every tool your applications call, including malformed or partial outputs, and confirm how reasoning content is returned to clients and logged. Keep these settings in version control with the rest of the serving configuration so that an upgrade to a newer vLLM release is checked against the same behavior.

What ongoing work follows the first deployment?

After go-live, recurring work includes tracking vLLM releases, retesting the model and parsers on each version change, reviewing metrics such as request counts, token throughput, latency and KV cache use, and rotating credentials and API keys. Patching the host operating system, drivers and container images also recurs, along with capacity reviews as demand grows. Ask for these items as a separate recurring scope with defined response expectations, and confirm who holds on-call duty for accelerator failures. Support can be run in-house, under a retainer, or split between the two.

How DeployOpen scopes and delivers a Qwen3 vLLM deployment

DeployOpen approaches self-hosting Qwen3 and Qwen3-235B-A22B on vLLM as a planned engagement inside infrastructure you control, whether that is your cloud accounts, data centers or an air-gapped network. Each stage produces written decisions and evidence your platform, security and compliance teams can review before and after go-live.

How we scope

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Scope confirms the target accelerators, the BF16 or FP8 checkpoint choice, tensor parallel layout and the context length you need.
  • Scope also records the API surface your applications call, the parsers for tools and reasoning, and the users who will reach the endpoint.

How we build

  • We deploy vLLM in your environment with the server flags and hardware settings agreed in scope, checked against the vLLM Qwen3 recipe.
  • We place an authenticated reverse proxy in front of the server so only user-facing endpoints are exposed, not /metrics or /health.
  • We test the deployment for prompt injection, tool permissions, data exposure and access control before it serves real users.

How we hand over

  • You receive the deployed configuration, runbooks for startup, scaling and model changes, and a record of the tests performed.
  • Metrics from the Prometheus endpoint are wired into your monitoring, with alert thresholds agreed with your operations team.
  • Documentation covers evidence your compliance team can use for access control, audit logging and data handling reviews, without DeployOpen issuing any attestation.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so vLLM releases and Qwen3 changes are reviewed on a schedule.
  • Upgrade work covers moving between vLLM minor releases, retesting the Qwen3 configuration and rolling back if results change.
  • You confirm ownership of on-call duties, capacity reviews and security patching before the retainer or handover begins.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.