You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed repetitive/looping text generation when using `{{@AI:}}` tags with the Qwen 3.5 0.8B model. Stories and other generated content would enter infinite repetition loops due to missing anti-repetition parameters.
5
+
6
+
## Root Cause
7
+
The main `ai-worker.js` lacked `repetition_penalty` and `no_repeat_ngram_size` in its generation config, while all other workers (Florence, Docling, GLM-OCR) already used `repetition_penalty: 1.2–1.5`. Small models like Qwen 0.8B are especially prone to degenerate repetition without these parameters.
8
+
9
+
## Changes
10
+
-**`public/ai-worker.js`** — Added anti-repetition parameters to both generation paths (multimodal + text-only):
0 commit comments