Understanding Qwen Model Outputs | Generated by AI

Home 2026.07

The output is structured like this (broken down for clarity):


1️⃣ The progress bar

Generating: 100% | ... | 2/2 [00:47<00:00, 23.84s/it, Prefill=535tok/s, Decode=4tok/s]

2️⃣ The two completions (separated by ---)

Completion 1 — “introduce yourself”

---
Completion: <think>
...introduces itself...
</think>

Hello! I'm a language model...
---

Completion 2 — “list all prime numbers within 100”

---
Completion: <think>
Okay, so I need to list all the prime numbers between 100. Let me start...
...

❓ The flash_attn error

ModuleNotFoundError: No module named 'flash_attn'

💡 How to read the answers

Part Meaning
<think>...</think> Model’s internal reasoning (like a scratchpad)
Text after </think> The final answer the model outputs to the user

To get clean output (strip the thinking), you could modify the script:

text = output['text']
if '</think>' in text:
    text = text.split('</think>', 1)[-1].strip()
print(f"Completion (clean): {text}")

Want me to apply that change?


Generated by AI. Curating and sharing still takes effort. If you find it useful, feel free to donate. WeChat: @lzwjavaWeChat QR · X: @lzwjava · Say hi 👋

Back Donate