# Behavior of \<think\> Tag in QwQ-32B Model Responses

**URL:** <https://community.sambanova.ai/t/behavior-of-think-tag-in-qwq-32b-model-responses/1059>\
**Category:** Knowledge Articles\
**Created:** [April 16, 2025, 2:35am UTC](https://community.sambanova.ai/t/behavior-of-think-tag-in-qwq-32b-model-responses/1059 "2025-04-16T02:35:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![durgesh.ojha](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/durgesh.ojha/32/413_2.png) [@durgesh.ojha](https://community.sambanova.ai/u/durgesh.ojha)\
**Post date:** [April 16, 2025, 2:35am UTC](https://community.sambanova.ai/t/behavior-of-think-tag-in-qwq-32b-model-responses/1059/1 "2025-04-16T02:35:56Z")

</div>

**Issue Summary** :  
Users may observe that responses from the QwQ-32B model (also referred to as the “thinking model”) contain a closing `</think>` tag without a corresponding opening `<think>` tag. This may cause issues in parsing logic or structured post-processing pipelines.

**Root Cause** :  
This is **expected behavior** when the model is used with the `apply_chat_template` function and the `add_generation_prompt=True` parameter is enabled. As per the official [QwQ-32B usage guidelines](https://huggingface.co/Qwen/QwQ-32B#usage-guidelines) provided by Hugging Face:

> **Enforce Thoughtful Output:** Ensure the model starts with `<think>\n` to prevent generating empty thinking content, which can degrade output quality. If you use `apply_chat_template` and set `add_generation_prompt=True`, this is already automatically implemented, but it may cause the response to lack the `<think>` tag at the beginning. **This is normal behavior.**

**Explanation** :  
When `add_generation_prompt=True` is used:

- The system template assumes the presence of a `<think>` block implicitly.
- Therefore, the model may skip outputting the opening `<think>` tag, even though the thinking content is still generated and closed properly with `</think>`.
- This results in only a closing `</think>` tag being visible in the output.

This behavior is **by design** and does **not** indicate a malfunction or model issue.
