Skip to content

bug : WebUI regenerate breaks message order #16385

Closed

Description

@ggerganov

Happens with certain models such as Gemma3:

Image

Repro:

make -j && ./bin/llama-server -hf ggml-org/gemma-3-1b-it-qat-GGUF --jinja
  • Start new conv
  • Type "Hello"
  • Wait for response to finish
  • Click regenerate
  • Wait for response to finish
  • Type "Test"
  • Observe error

Activity

  1. ggerganov commented on Oct 2, 2025

    @ggerganov
    MemberAuthor

    Looking more into it, I think it happens for all models. It's just that only Gemma's template detects the incorrect order of the roles and throws an error.

  2. ddh0 commented on Oct 2, 2025

    @ddh0
    Contributor

    cc @allozaur :)

    (Oops, I see he was already assigned. My bad.)

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions