[GH-ISSUE #4504] [Issue]: Conversation formatting breaks with Gemma 4 26B A4B #2450

Closed
opened 2026-10-21 05:48:19 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Aug 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4504

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When using Gemma 4 26B A4B locally through Koboldcpp in a grouped multi-character conversation, character responses are not consistently rendered in their own text bubbles. The same setup works correctly with Gemma 4 12B.

Expected behavior

Each character's response should retain the correct formatting and appear in that character's own text bubble when Grouped mode and Character Exchanges are enabled.

Actual behavior

Formatting breaks with Gemma 4 26B A4B, and responses may appear in another character's text bubble. An extra newline after a response or character name appears to break the conversation formatting.

Steps to reproduce

  1. Run Gemma 4 26B A4B locally through Koboldcpp.
  2. Start a conversation with multiple characters.
  3. Set group chat mode to Grouped rather than individual.
  4. Enable Character Exchanges.
  5. Generate responses and observe the formatting and character text bubbles.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs or video provided. Comparison screenshots: working with Gemma 4 12B: https://cdn.discordapp.com/attachments/1533731103829917696/1533731104144625685/Working_with_Gemma_4_12b.jpg?ex=6a718de6&is=6a703c66&hm=96291d55e1ed7ea58d3d1ec0b658176054a10ea26f36864acf70109194d6d5cc&; not working with Gemma 4 26B: https://cdn.discordapp.com/attachments/1533731103829917696/1533731104744542308/Not_working_with_Gemma_4_26b.jpg?ex=6a718de6&is=6a703c66&hm=7092bd975024ccfee826ba1e1e28f18b3872602baeed4daa78c86abdc385fd6c&

Additional context

The reporter states that Gemma 4 12B works correctly under the same conversation settings. Marinara identified that a newline after producing a response, including after the name, breaks the format and indicated that this handling would be changed.

Discord thread: Conversation formatting off with Gemma 4 26b a4b
Discord thread link: https://discord.com/channels/1417099416812392641/1533731103829917696
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (4 messages)
[2026-08-03T06:59:50.499Z] Das: I'll admit, I'm a noob so this is probably a skill issue or a local config issue, but I'd like to try and understand what is happening. When I run **Gemma 4 12B** locally with Koboldcpp, in conversations with multiple characters and group chat mode is Grouped (not individual) and Character Exchanges is on, everything looks good. Everyone replies in their separate txt bubbles. 

However, when I run **Gemma 4 26b a4b** locally, the formatting seems to be messed up and each character's replies might be in a different character's txt bubbles. Any suggestions to get **Gemma 4 26b a4b** to look normal and each reply to be in their own txt bubble? Thx and appreciate you all!

[attached image 1: https://cdn.discordapp.com/attachments/1533731103829917696/1533731104144625685/Working_with_Gemma_4_12b.jpg?ex=6a718de6&is=6a703c66&hm=96291d55e1ed7ea58d3d1ec0b658176054a10ea26f36864acf70109194d6d5cc&]
[attached image 2: https://cdn.discordapp.com/attachments/1533731103829917696/1533731104744542308/Not_working_with_Gemma_4_26b.jpg?ex=6a718de6&is=6a703c66&hm=7092bd975024ccfee826ba1e1e28f18b3872602baeed4daa78c86abdc385fd6c&]
[Discord message: https://discord.com/channels/1417099416812392641/1533731103829917696/1533731103829917696]

[2026-08-03T08:14:01.723Z] Marinara: It does new lines after producing a response for some reason.
[Discord message: https://discord.com/channels/1417099416812392641/1533731103829917696/1533749773616680970]

[2026-08-03T08:14:10.116Z] Marinara: That breaks the format.
[Discord message: https://discord.com/channels/1417099416812392641/1533731103829917696/1533749808819343391]

[2026-08-03T08:15:01.360Z] Marinara: I’ll make it so the new line after the name doesn’t break it.
[Discord message: https://discord.com/channels/1417099416812392641/1533731103829917696/1533750023752253543]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4504 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When using Gemma 4 26B A4B locally through Koboldcpp in a grouped multi-character conversation, character responses are not consistently rendered in their own text bubbles. The same setup works correctly with Gemma 4 12B. ## Expected behavior Each character's response should retain the correct formatting and appear in that character's own text bubble when Grouped mode and Character Exchanges are enabled. ## Actual behavior Formatting breaks with Gemma 4 26B A4B, and responses may appear in another character's text bubble. An extra newline after a response or character name appears to break the conversation formatting. ## Steps to reproduce 1. Run Gemma 4 26B A4B locally through Koboldcpp. 2. Start a conversation with multiple characters. 3. Set group chat mode to Grouped rather than individual. 4. Enable Character Exchanges. 5. Generate responses and observe the formatting and character text bubbles. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs or video provided. Comparison screenshots: working with Gemma 4 12B: https://cdn.discordapp.com/attachments/1533731103829917696/1533731104144625685/Working_with_Gemma_4_12b.jpg?ex=6a718de6&is=6a703c66&hm=96291d55e1ed7ea58d3d1ec0b658176054a10ea26f36864acf70109194d6d5cc&; not working with Gemma 4 26B: https://cdn.discordapp.com/attachments/1533731103829917696/1533731104744542308/Not_working_with_Gemma_4_26b.jpg?ex=6a718de6&is=6a703c66&hm=7092bd975024ccfee826ba1e1e28f18b3872602baeed4daa78c86abdc385fd6c& ## Additional context The reporter states that Gemma 4 12B works correctly under the same conversation settings. Marinara identified that a newline after producing a response, including after the name, breaks the format and indicated that this handling would be changed. Discord thread: Conversation formatting off with Gemma 4 26b a4b Discord thread link: https://discord.com/channels/1417099416812392641/1533731103829917696 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-08-03T06:59:50.499Z] Das: I'll admit, I'm a noob so this is probably a skill issue or a local config issue, but I'd like to try and understand what is happening. When I run **Gemma 4 12B** locally with Koboldcpp, in conversations with multiple characters and group chat mode is Grouped (not individual) and Character Exchanges is on, everything looks good. Everyone replies in their separate txt bubbles. However, when I run **Gemma 4 26b a4b** locally, the formatting seems to be messed up and each character's replies might be in a different character's txt bubbles. Any suggestions to get **Gemma 4 26b a4b** to look normal and each reply to be in their own txt bubble? Thx and appreciate you all! [attached image 1: https://cdn.discordapp.com/attachments/1533731103829917696/1533731104144625685/Working_with_Gemma_4_12b.jpg?ex=6a718de6&is=6a703c66&hm=96291d55e1ed7ea58d3d1ec0b658176054a10ea26f36864acf70109194d6d5cc&] [attached image 2: https://cdn.discordapp.com/attachments/1533731103829917696/1533731104744542308/Not_working_with_Gemma_4_26b.jpg?ex=6a718de6&is=6a703c66&hm=7092bd975024ccfee826ba1e1e28f18b3872602baeed4daa78c86abdc385fd6c&] [Discord message: https://discord.com/channels/1417099416812392641/1533731103829917696/1533731103829917696] [2026-08-03T08:14:01.723Z] Marinara: It does new lines after producing a response for some reason. [Discord message: https://discord.com/channels/1417099416812392641/1533731103829917696/1533749773616680970] [2026-08-03T08:14:10.116Z] Marinara: That breaks the format. [Discord message: https://discord.com/channels/1417099416812392641/1533731103829917696/1533749808819343391] [2026-08-03T08:15:01.360Z] Marinara: I’ll make it so the new line after the name doesn’t break it. [Discord message: https://discord.com/channels/1417099416812392641/1533731103829917696/1533750023752253543] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:48:19 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 3, 2026):

Claimed for implementation by @SpicyMarinara in draft PR #4507. The focused fix will make grouped speaker parsing tolerate a line break after a recognized character name.

<!-- gh-comment-id:5164053985 --> @SpicyMarinara commented on GitHub (Aug 3, 2026): Claimed for implementation by @SpicyMarinara in draft PR #4507. The focused fix will make grouped speaker parsing tolerate a line break after a recognized character name.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2450
No description provided.