Skip to content

Rewrite the gpt-oss example: fine-tune on chess puzzles, then back to MXFP4 - #8085

Merged
qgallouedec merged 6 commits into
mainfrom
gpt-oss-chess-example
Nov 3, 2026
Merged

qgallouedec merged 6 commits into
mainfrom
gpt-oss-chess-example

Conversation

@qgallouedec

@qgallouedec qgallouedec commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Replaces examples/sft_gpt_oss with examples/sft_gpt_oss_chess, told as a story: measure gpt-oss-20b on Lichess puzzles, build the dataset, fully fine-tune it on 500k puzzles, quantize its experts back to MXFP4 so it serves like the original, and measure again. The script takes no arguments, and evaluate.py reports the puzzles solved and a puzzle rating.

@qgallouedec
qgallouedec marked this pull request as ready for review November 3, 2026 11:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 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-11-03T11:05:43.474923Z 99be66f Draft marked ready
ℹ️ 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.

@sergiopaniego sergiopaniego left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! I've applied the same README structure to the Sudoku (#8097) and Wordle (#8099) examples, and I think we can start writing examples this way.

A few small things:

  • Could the fine-tuned model be pushed to the Hub and linked from the README?
  • #8070 edits examples/sft_gpt_oss/sft_gpt_oss.py, which this PR deletes, so whichever lands second will conflict.
  • Removing examples/sft_gpt_oss breaks external links to it (blog posts, cookbook), worth a quick search before merging.

@qgallouedec

Copy link
Copy Markdown
Member Author

Thanks! Agree!

@bot-ci-comment

bot-ci-comment Bot commented Nov 3, 2026

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.

@qgallouedec
qgallouedec merged commit 3885117 into main Nov 3, 2026
12 checks passed
@qgallouedec
qgallouedec deleted the gpt-oss-chess-example branch November 3, 2026 23:38
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