Skip to content

Add template-only overrides for RL checkpoint exports - #1905

Open
abhishekraok wants to merge 2 commits into
kda-think-sftfrom
codex/export-think-template
Open

abhishekraok wants to merge 2 commits into
kda-think-sftfrom
codex/export-think-template

Conversation

@abhishekraok

Copy link
Copy Markdown
Collaborator

Codex · codex://threads/01a0bc67-0eac-7681-babe-a1a745942f39

The KDA SFT converter exports an instruct-dev chat template, so RL prompts do not force <think>. Add --export-chat-template to replace only the saved template and any embedded template metadata, plus a CPU-only command for existing HF exports. The override leaves tokenizer segmentation, special tokens, and weights untouched.

The new convert_rl launcher mode requires the saved training tokenizer directory and writes a separate -think export using the checked-in think-dev template pinned to cf6d9298ed2f5d53f098f1785b58a23a24dff8ed. Ordinary conversion defaults are unchanged. This is a temporary template choice until Kevin Farhat's Olmo 3.5 template is ready; it does not change the converter's existing tokenizer serialization behavior.

Stacked on kda-think-sft (#1886), which contains the converter and launcher. Addresses the RL export handoff in dolci-think-sft-anchor (#1895).

Validation: 15 CPU tests passed, covering template rendering, tokenizer/weight preservation, linked metadata, CLI integration, and launcher arguments. make style quality, script Ruff checks, shell syntax, and git diff --check passed using the existing local environment without dependency sync. Weight conversion was mocked in the integration tests; no compute was launched and no existing checkpoint was modified.

GPU_TESTS=bypass — template metadata and launcher changes; no model computation changes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 20, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-20T03:02:56.507850Z fa97e89 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fa97e8971b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CHANGELOG.md Outdated


### Added
- Add an optional template-only override for MoE HF exports, a CPU-only command for existing exports, and a pinned think-dev template selected by the KDA launcher's `convert_rl` mode. Tokenizer serialization and ordinary SFT conversion defaults are unchanged.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add the PR URL to the changelog entry

When this change is submitted as a PR, the changelog CI check will reject it because the commit modifies open_instruct/ but the new entry does not contain the PR's own URL. Append the PR link to this entry once the PR exists, as required by the repository workflow.

AGENTS.md reference: AGENTS.md:L10-L12

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
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.

1 participant