Qwen3-VL Syntax Constraint Causes Infinite Repetition

mattjcoles · reddit · 2026-07-14

The author discovered that when using GBNF grammar-constrained decoding, Qwen3-VL-30B-A3B gets stuck in a repetition loop, endlessly outputting the same valid JSON entry until the context window is exhausted.

Multiple tests were conducted:

Conclusion: Simply checking for JSON validity is insufficient; extraction tasks must also verify the actual count and content of the generated entries.

Related event: Qwen3-VL Gets Stuck in Repetition Loops Under GBNF Constraints(2 posts)→

Original post →

More from Models

Models channel →