Skip to content

Print the MODEL_REVISIONS entry after pushing a tiny model - #8531

Merged
albertvillanova merged 2 commits into
mainfrom
print-model-revisions-line
Nov 25, 2026
Merged

albertvillanova merged 2 commits into
mainfrom
print-model-revisions-line

Conversation

@albertvillanova

@albertvillanova albertvillanova commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

This PR makes the tiny model generation scripts print the MODEL_REVISIONS entry for what they just pushed, as suggested in #8262 (comment).

Motivation

Since #8262, the tests pin every tiny model in MODEL_REVISIONS, so each push to the Hub needs a matching entry in tests/testing_utils.py. The scripts already know it when they push, so they print it instead of leaving it to be looked up on the Hub.

Changes

  • After opening a Hub PR with --create-pr, print the temporary entry with its PR ref (e.g. "refs/pr/5"), to test it in a TRL PR
  • After creating a new tiny model repo, print the entry with the commit sha of its first upload
  • Mention it in scripts/generate_tiny_models/README.md

Step 4 of the procedure in tests/testing_utils.py stays manual: merging the Hub PR creates a new commit on main, whose sha is read from the Hub afterwards.


Note

Low Risk
Console output and documentation only; no changes to push logic, tests, or runtime behavior.

Overview
After a successful Hub push, push_dir_to_hub now prints a ready-to-paste MODEL_REVISIONS line: when --create-pr opens a PR it shows the repo id and PR ref for testing in TRL CI; when a new tiny model repo is created it shows the commit sha to pin.

The tiny-models README documents that post-push output so maintainers don’t have to look up refs on the Hub manually.

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

@github-actions github-actions Bot added the 🔧 maintenance CI, tooling, tests, or repo upkeep label Nov 23, 2026
@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.

…ns-line

# Conflicts:
#	scripts/generate_tiny_models/README.md
@albertvillanova
albertvillanova merged commit e6c272b into main Nov 25, 2026
5 checks passed
@albertvillanova
albertvillanova deleted the print-model-revisions-line branch November 25, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔧 maintenance CI, tooling, tests, or repo upkeep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants