Skip to content

[Bug]: Text output degenerates into a repetitive subword loop until max_tokens #53

Closed

Description

@arker2

TUFF version

9.4.0

How did you install TUFF?

Release download or in-app update

Area

Chat and generation

Mac, chip and memory

Mac17,3, Apple M5, 16 GB

macOS version

26.7.1

Model

Gemma 4 26B-A4B

Steps to reproduce

  1. Load a model
  2. Write a prompt, even "hi".
  3. After the first or second prompt, expect "Setting changed. Reload the model to continue."
  4. Reload the model and submit another prompt, even "hi".
  5. Prefill will start (takes minutes)
  6. Wait for the output

What you expected

A normal text output

What happened instead

After the refill, I get as output a look of something like:
@m_f_s_s_m_f_s_s_m_f_s_s_m_f_s_s_m_f_s_s_m_f_s_s_m_f_s_s_m_f_s_s_m_f_s_s_m_f_s_s_s_m_f_s_s_s_s or
> _b_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s

It happens with Gemma 4 26B-A4B and Gemma 4 26B-A4B Heretic for sure. I don't remember if it happens also with Qwen 35B-A3B, as today I was able to reproduce this bug only on Gemma.

Diagnostic summary (optional)

TUFF 9.4.0
macOS: 26.7.1
Mac: Mac17,3
Chip: Apple M5
Unified memory: 17179869184 bytes
Model: qwen3.6-35b-a3b
Context: 16384 tokens
Sampling: temperature 0.2, top-k 64, top-p 0.95
Expert cache: 8 slots (lfu)
Prefill: off, chunk 128
Image residency: on-demand

Logs or crash report (optional)

Before submitting

  • I removed credentials, private paths, personal prompts and chat content from this report.

Activity

  1. added
    bugSomething isn't working
    needs-triageNot yet reviewed by a maintainer
    on Oct 16, 2026
  2. rexmhall09 commented on Oct 20, 2026

    @rexmhall09
    Collaborator

    I am investigating, expect a patch soon.

  3. rexmhall09 commented on Oct 20, 2026

    @rexmhall09
    Collaborator

    Hey @arker2 I was unable to successfully reproduce it, but found a bug that may have caused it. Try updating to the latest version and seeing if it still happens.

  4. arker2 commented on Oct 23, 2026

    @arker2
    Author

    Thanks! I'll close this meanwhile, and let you know if it recurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: chatChat, prompts and generation in the appbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions