Gemma-4 chat template uses wrong <|turn> tokens instead of correct <start_of_turn>/<end_of_turn> #21

Closed
opened 2026-05-09 02:07:57 +00:00 by Mark · 0 comments
Owner

chat_templates.py:164-191: _build_gemma_prompt uses <|turn> tokens. .jinja file has correct tokens. FAMILY_BUILDERS routes through buggy function, not .jinja. Gemma-4 models get garbled prompts.

chat_templates.py:164-191: _build_gemma_prompt uses <|turn> tokens. .jinja file has correct tokens. FAMILY_BUILDERS routes through buggy function, not .jinja. Gemma-4 models get garbled prompts.
Mark 2026-05-20 15:25:58 +00:00
Sign in to join this conversation.
No description provided.