Qwen is the large language model family of the Qwen team at Alibaba Group, and part of it is released with open weights. That makes it one of the model families a brand can run on its own GPUs, inside its own cloud account, so prompts and documents stay private. This answer sets out which Qwen models are open, how the Qwen documentation says to serve them, how much GPU memory they use and the settings that matter, as read on 29 and 30 November 2026. It covers deployment, not cost.
Open-weight Qwen and hosted Qwen are two routes
The Qwen documentation draws the line itself: "There is the proprietary/closed source version and the open-weight version." The proprietary models are offered through Alibaba Cloud Model Studio, a hosted API. The open-weight models can be downloaded and run anywhere.
For a private deployment the difference is where the data goes. With the hosted API, each request is sent to Alibaba Cloud's service. With the open weights on your own servers, the model runs inside your account and prompts are processed on your own GPUs. Our Alibaba Cloud vs AWS comparison covers the hosted side.
Which Qwen models are open
The Qwen3 launch post, dated 29 April 2025, lists two mixture-of-experts (MoE) models with open weights: Qwen3-235B-A22B, with 235 billion total parameters and 22 billion activated, and Qwen3-30B-A3B, with 30 billion total and 3 billion activated. It adds six dense models, Qwen3-32B, 14B, 8B, 4B, 1.7B and 0.6B, released "under Apache 2.0 license." The Qwen3 repository on GitHub says "All our open-weight models are licensed under Apache 2.0" and notes "You can find the license files in the respective Hugging Face repositories."
The Qwen docs explain the line-up: "The mixture-of-experts (MoE) models are reintroduced with the Qwen3-30B-A3B and Qwen3-235B-A22B. The largest dense models are now Qwen3-32B." Model names carry a type: Instruct models for conversations, Thinking models that reason step by step, Base models for fine-tuning, and models with no type that switch between both modes. On that last group the docs say: "Hybrid thinking mode is designed so that thinking and non-thinking (instruct) can be achieved without changing models, simplifying deployment and making alternating thinking and non-thinking in a single chat possible." The docs also say Qwen3 covers 119 languages and dialects.
For coding work there is a separate family. The Qwen3-Coder repository describes Qwen3-Coder-Next as "an open-weight language model designed specifically for coding agents and local development," with native support for 256K tokens, extendable to 1M.
How the Qwen docs say to serve it
The launch post says "For deployment, we recommend using frameworks like" SGLang and vLLM, and for local use it names Ollama, LM Studio, MLX, llama.cpp and KTransformers. In our view the split is simple: vLLM or SGLang on the GPU servers that answer real traffic, and llama.cpp or Ollama on a laptop or a single test machine. We compare the serving engines on our vLLM vs SGLang vs Ollama page.
- vLLM. The Qwen vLLM guide covers an OpenAI-compatible server, tool calling and reasoning output. It notes that vLLM "can also be directly used as a Python library, which is convenient for offline batch inference but lack some API-only features, such as parsing model generation to structure messages." It warns that vLLM reserves GPU memory up front: "vLLM will pre-allocate this much GPU memory." The default setting is 0.9 of the GPU.
- SGLang. The Qwen SGLang guide says "SGLang supports structured/JSON output." It also notes that "SGLang implements static YaRN, which means the scaling factor remains constant regardless of input length".
- llama.cpp. llama.cpp runs models in the GGUF format, which the Qwen docs describe as one that "is a file format for storing information needed to run a model, including but not limited to model weights, model hyperparameters, default generation configuration, and tokenizer." The docs add that "The fp16 model could be a bit heavy for running locally, and you can quantize the model as needed." One limit to know: "Regarding switching between thinking and non-thinking modes, while the soft switch is always available, the hard switch implemented in the chat template is not exposed in llama.cpp."
- Ollama. The Qwen3 repository warns that Ollama's default 2,048-token context window "could lead to trouble for Qwen3 models." Raise it before testing.
For agents, the Qwen3 repository says "Tool use with Qwen3 can also be conducted with SGLang, vLLM, Transformers, llama.cpp, Ollama, etc." It also flags that vLLM drops the thinking content from earlier turns, which can make multi-step tool use with Qwen3 thinking models less reliable. In our view, test any agent flow on the engine you will run in production, not only on a local tool.
Quantized Qwen models and GPU memory
The Qwen team publishes its own quantized versions. Both the vLLM and SGLang guides say "Qwen3 comes with two types of pre-quantized models, FP8 and AWQ." The vLLM guide says the FP8 models run on Ada Lovelace, Hopper and later NVIDIA GPUs, and that from vLLM v0.9.0 they can also run on Ampere cards. The AWQ page claims "AutoAWQ speeds up models by 3x and reduces memory requirements by 3x compared to FP16", though the page itself still says "To be updated for Qwen3." and uses Qwen2.5 examples.
Qwen's own speed benchmark shows what quantization does to memory. These figures are for a one-token input on one GPU, as published by Qwen and read on 29 November 2026:
| Model (Transformers) | BF16 | FP8 | AWQ-INT4 |
|---|---|---|---|
| Qwen3-8B | 15,947 MB | 9,323 MB | 6,177 MB |
| Qwen3-32B | 62,751 MB | 33,379 MB | 19,109 MB |
Memory grows with the input. For Qwen3-32B in BF16 the same benchmark shows 70,728 MB at a 30,720-token input. Our page on GPU memory for private inference explains how weights and the KV cache add up, and which GPUs fit each size.
Context length and YaRN
The Qwen vLLM guide says "The context length for Qwen3 models in pretraining is up to 32,768 tokens." The launch post lists 128K context for Qwen3-8B, Qwen3-32B and both MoE models, and 32K for Qwen3-4B. Going past 32,768 tokens uses a technique called YaRN, which the docs show how to switch on in vLLM, SGLang and llama.cpp.
The guide is clear that YaRN has a cost: "If the average context length does not exceed 32,768 tokens, we do not recommend enabling YaRN in this scenario, as it may potentially degrade model performance." It also notes that the default maximum length is 40,960 tokens, which leaves room for long answers and thinking, and that a longer maximum length needs more memory.
How we set up a private Qwen deployment: our view
- Pick the size from the task. Qwen3-8B handles most classification, extraction and short answers. Qwen3-32B or Qwen3-30B-A3B suits drafting and reasoning. We test the smaller model first.
- Use the official quantized weights. The Qwen FP8 and AWQ releases save memory without a separate quantization step. Test the quantized version on your own work before choosing it.
- Keep the default context. Turn on YaRN only when real prompts are longer than about 32,000 tokens, and set its factor to the length you actually need.
- Choose the mode per job. Use thinking mode where reasoning helps and non-thinking mode where speed matters. The hybrid models let one deployment do both.
- Keep the model inside your account. Download the weights once, store them with the rest of your private data and serve them on a private network. Check the license file in each model's repository.
Frequently asked questions
Is Qwen free to use commercially?
The Qwen team says its open-weight models are licensed under Apache 2.0, with the license file in each Hugging Face repository. Read the file for the exact model you plan to use, because licenses can differ between releases.
Does running Qwen myself send data to Alibaba?
Not when you run the open weights on your own servers. The model runs where you deploy it. The hosted Qwen models on Alibaba Cloud Model Studio are a separate service where requests go to Alibaba Cloud.
Which engine should I use?
The Qwen team recommends SGLang and vLLM for deployment, and llama.cpp, Ollama and similar tools for local use.
How much GPU memory does Qwen3-32B need?
Qwen's benchmark shows 62,751 MB in BF16, 33,379 MB in FP8 and 19,109 MB in AWQ-INT4 for a one-token input on one GPU, rising with longer inputs.