Back to Model Catalog
Model OpenAI-compatible

Qwen3-14B-AWQ

XIM Only
AC410C0A-F022-44CA-AE56-6CFED22E8E35
Parameters18.3B
Context40K
LicenseApache-2.0
Architectureqwen3

Description

---
libraryname: transformers
license: apache-2.0
license
link: https://huggingface.co/Qwen/Qwen3-14B/blob/main/LICENSE
pipelinetag: text-generation
base
model: Qwen/Qwen3-14B
---

Qwen3-14B-AWQ

<a href="https://chat.qwen.ai/" target="blank" style="margin: 2px;"> <img alt="Chat" src="https://img.shields.io/badge/%F0%9F%92%9C%EF%B8%8F%20Qwen%20Chat%20-536af5" style="display: inline-block; vertical-align: middle;"/> </a>

Qwen3 Highlights

Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Built upon extensive training, Qwen3 delivers groundbreaking advancements in reasoning, instruction-following, agent capabilities, and multilingual support, with the following key features:

  • Uniquely support of seamless switching between thinking mode (for complex logical reasoning, math, and coding) and non-thinking mode (for efficient, general-purpose dialogue) within single model, ensuring optimal performance across various scenarios.
  • Significantly enhancement in its reasoning capabilities, surpassing previous QwQ (in thinking mode) and Qwen2.5 instruct models (in non-thinking mode) on mathematics, code generation, and commonsense logical reasoning.
  • Superior human preference alignment, excelling in creative writing, role-playing, multi-turn dialogues, and instruction following, to deliver a more natural, engaging, and immersive conversational experience.
  • Expertise in agent capabilities, enabling precise integration with external tools in both thinking and unthinking modes and achieving leading performance among open-source models in complex agent-based tasks.
  • Support of 100+ languages and dialects with strong capabilities for multilingual instruction following and translation.

Model Overview

Qwen3-14B has the following features:

  • Type: Causal Language Models
  • Training Stage: Pretraining & Post-training
  • Number of Parameters: 14.8B
  • Number of Paramaters (Non-Embedding): 13.2B
  • Number of Layers: 40
  • Number of Attention Heads (GQA): 40 for Q and 8 for KV
  • Context Length: 32,768 natively and 131,072 tokens with YaRN.

  • Quantization: AWQ 4-bit

For more details, including benchmark evaluation, hardware requirements, and inference performance, please refer to our blog, GitHub, and Documentation.

Quickstart

The code of Qwen3 has been in the latest Hugging Face INLINECODE0DAA76A9F and we advise you to use the latest version of INLINECODE185C917F1.

With INLINECODE24A9575AB, you will encounter the following error:
CODEBLOCK
08846DF42

The following contains a code snippet illustrating how to use the model generate content based on given inputs.
CODEBLOCK
17972D670

For deployment, you can use INLINECODE3A88B4FF7 or INLINECODE4AB443D5A or to create an OpenAI-compatible API endpoint:

  • SGLang:

INLINECODE
7742EDE12
  • vLLM:

INLINECODE
10AB6D3B98

Also check out our AWQ documentation for more usage guide.

Switching Between Thinking and Non-Thinking Mode

> [!TIP]
> The INLINECODE11F994F47F switch is also available in APIs created by SGLang and vLLM.
> Please refer to our documentation for SGLang and vLLM users.

INLINECODE1241454DE5

By default, Qwen3 has thinking capabilities enabled, similar to QwQ-32B. This means the model will use its reasoning abilities to enhance the quality of generated responses. For example, when explicitly setting INLINECODE1334413948 or leaving it as the default value in INLINECODE141428CBE1, the model will engage its thinking mode.

CODEBLOCK2E6F6CD87

In this mode, the model will generate think content wrapped in a INLINECODE15F1C15E33 block, followed by the final response.

> [!NOTE]
> For thinking mode, use INLINECODE16F7A29C11, INLINECODE17DE244AA3, INLINECODE181763AC53, and INLINECODE199B2C2A26 (the default setting in INLINECODE20C6163DA7). DO NOT use greedy decoding, as it can lead to performance degradation and endless repetitions. For more detailed guidance, please refer to the Best Practices section.

INLINECODE216C83CEB3

We provide a hard switch to strictly disable the model's thinking behavior, aligning its functionality with the previous Qwen2.5-Instruct models. This mode is particularly useful in scenarios where disabling thinking is essential for enhancing efficiency.

CODEBLOCK364664D5C

In this mode, the model will not generate any think content and will not include a INLINECODE22D50F3D11 block.

> [!NOTE]
> For non-thinking mode, we suggest using INLINECODE
23CE2DD4EA, INLINECODE24C9822D6B, INLINECODE251728B696, and INLINECODE269C753840. For more detailed guidance, please refer to the Best Practices section.

Advanced Usage: Switching Between Thinking and Non-Thinking Modes via User Input

We provide a soft switch mechanism that allows users to dynamically control the model's behavior when INLINECODE274DD44765. Specifically, you can add INLINECODE2855FD7C5B and INLINECODE292A56C52D to user prompts or system messages to switch the model's thinking mode from turn to turn. The model will follow the most recent instruction in multi-turn conversations.

Here is an example of a multi-turn conversation:

CODEBLOCK47374DE15

> [!NOTE]
> For API compatibility, when INLINECODE30B24BF481, regardless of whether the user uses INLINECODE31B79B22C3 or INLINECODE32D88653B9, the model will always output a block wrapped in INLINECODE33BB68F60E. However, the content inside this block may be empty if thinking is disabled.
> When INLINECODE3420CC4118, the soft switches are not valid. Regardless of any INLINECODE3531B17C74 or INLINECODE361E38A9D0 tags input by the user, the model will not generate think content and will not include a INLINECODE37A36E88CB block.

Agentic Use

Qwen3 excels in tool calling capabilities. We recommend using Qwen-Agent to make the best use of agentic ability of Qwen3. Qwen-Agent encapsulates tool-calling templates and tool-calling parsers internally, greatly reducing coding complexity.

To define the available tools, you can use the MCP configuration file, use the integrated tool of Qwen-Agent, or integrate other tools by yourself.
INLINECODE
4098AE831CINLINECODE413F61F5ECtransformersINLINECODE42744D04F8vllmINLINECODE43A92C39F3sglangINLINECODE44C87DE081config.jsonINLINECODE45912FD216ropescalingINLINECODE46B9CCC0A3INLINECODE48F93A1ED9INLINECODE497943F3D3vllmINLINECODE501E2C0824INLINECODE5265C1A1CEINLINECODE53EE7B75CCsglangINLINECODE54E66D3CE5INLINECODE566BBF5CFDINLINECODE57C2371FF2INLINECODE5912B5C634 for 'ropetype'='yarn': {'originalmaxpositionembeddings'}
> INLINECODE62EC502000ropescalingINLINECODE638A2683BEfactorINLINECODE64785513C5factorINLINECODE65529FDB65maxpositionembeddingsINLINECODE6621FE1958config.jsonINLINECODE676115B88Eenablethinking=TrueINLINECODE689BA0E4FDTemperature=0.6INLINECODE690FB066C4TopP=0.95INLINECODE7090F67523TopK=20INLINECODE71DA8783CCMinP=0INLINECODE72AE083667enablethinking=FalseINLINECODE733BF6EE34Temperature=0.7INLINECODE743A40A522TopP=0.8INLINECODE75FF1D7F74TopK=20INLINECODE76AAA604CAMinP=0INLINECODE77606D4741presencepenaltyINLINECODE788E586BC3answerINLINECODE791651C817"answer": "C"`."

  1. No Thinking Content in History: In multi-turn conversations, the historical model output should only include the final output part and does not need to include the thinking content. It is implemented in the provided chat template in Jinja2. However, for frameworks that do not directly use the Jinja2 chat template, it is up to the developers to ensure that the best practice is followed.

Citation

If you find our work helpful, feel free to give us a cite.

CODEBLOCK5E5A0DA5D

Specifications

Parameters 18.3B
Context Length 40K
Architecture qwen3
License Apache-2.0

Tags

chat code multilingual reasoning