[GH-ISSUE #15514] Qwen Models Produce Corrupted / “Stuttering” JSON Output in Ollama 0.20.5 #9914

Open
opened 2026-04-12 22:45:41 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @crazyingen on GitHub (Apr 12, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15514

What is the issue?

When running Qwen 3.x models (e.g., qwen3:8b) with ollama run --format json or via the API, Ollama 0.20.5 produces corrupted JSON output.
The model “stutters”, inserts line breaks inside tokens, duplicates words, and emits ANSI cursor control sequences.
This makes the output impossible to parse as JSON.

Downgrading to Ollama 0.18.4 immediately resolves the issue.

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @crazyingen on GitHub (Apr 12, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15514 ### What is the issue? When running Qwen 3.x models (e.g., qwen3:8b) with ollama run --format json or via the API, Ollama 0.20.5 produces corrupted JSON output. The model “stutters”, inserts line breaks inside tokens, duplicates words, and emits ANSI cursor control sequences. This makes the output impossible to parse as JSON. Downgrading to Ollama 0.18.4 immediately resolves the issue. ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-12 22:45:41 -05:00
Author
Owner

@rick-github commented on GitHub (Apr 12, 2026):

Can you provide an example?

$ ollama -v
ollama version is 0.20.5
$ ollama run qwen3:8b --format json name 3 colours | jq
{
  "status": "success",
  "response": [
    "Red",
    "Blue",
    "Green"
  ]
}
<!-- gh-comment-id:4232713203 --> @rick-github commented on GitHub (Apr 12, 2026): Can you provide an example? ```console $ ollama -v ollama version is 0.20.5 $ ollama run qwen3:8b --format json name 3 colours | jq { "status": "success", "response": [ "Red", "Blue", "Green" ] } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#9914