Skip to content

Add Muse Glimmer chat template - #6739

Merged
qgallouedec merged 2 commits into
mainfrom
add-muse-glimmer-chat-template
Aug 18, 2026
Merged

Add Muse Glimmer chat template#6739
qgallouedec merged 2 commits into
mainfrom
add-muse-glimmer-chat-template

Conversation

@qgallouedec

@qgallouedec qgallouedec commented Aug 13, 2026

Copy link
Copy Markdown
Member

Stacked on add-muse-glimmer.

  • Vendored muse_glimmer.jinja (as shipped by meta-models/Muse-Glimmer-30B) and muse_glimmer_training.jinja, registered in get_training_chat_template.
  • The training variant wraps the whole assistant branch — every ATEM channel of the turn — in {% generation %} / {% endgeneration %}, same treatment as gptoss_training.jinja, which shares the <|start|>assistant cue and one-block-per-channel layout. Rendering is byte-identical to the original.
  • No add_response_schema entry: the checkpoint ships its own response_template, which TRL already leaves alone.
  • Tests: added to the tool-calling, training-template and parse-response lists in test_chat_template_utils.py. test_parse_response_tool_call_with_content gets a Muse Glimmer branch next to the existing GPT-OSS one — a turn with tool calls has no to=user channel, so text alongside a tool call belongs in the to=self channel.
  • pytest tests/test_chat_template_utils.py -k muse_glimmer: 21 passed, 1 skipped.

Note

Low Risk
Additive templates, registry wiring, and tests only; no changes to training loops or auth/data paths.

Overview
Adds Muse Glimmer as a supported chat-template family so TRL can recognize the model and swap in a training template for SFT/GRPO.

Vendored muse_glimmer.jinja (ATEM: to=self reasoning, per-tool channels with <atem:function_calls>, to=user content, multimodal placeholders) and muse_glimmer_training.jinja, which wraps the full assistant turn—all ATEM channels—in {% generation %} / {% endgeneration %} (same pattern as GPT-OSS). get_training_chat_template maps the reference template to the training variant; docs list Muse Glimmer among supported families.

Tests cover tool calling, training-template behavior, and response parsing (including reasoning_content alongside tool calls, since tool turns have no to=user channel). No add_response_schema hook—the checkpoint already ships response_template.

Reviewed by Cursor Bugbot for commit dd63c49. Bugbot is set up for automated code reviews on this repo. Configure here.

@bot-ci-comment

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Base automatically changed from add-muse-glimmer to main August 17, 2026 19:45
@qgallouedec
qgallouedec force-pushed the add-muse-glimmer-chat-template branch from 8d5e1c3 to a32797c Compare August 18, 2026 03:22
@qgallouedec
qgallouedec merged commit df7ed8e into main Aug 18, 2026
12 of 13 checks passed
@qgallouedec
qgallouedec deleted the add-muse-glimmer-chat-template branch August 18, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants