Repository navigation
Print the MODEL_REVISIONS entry after pushing a tiny model - #8531
Merged
Merged
Conversation
|
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
qgallouedec
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes the tiny model generation scripts print the
MODEL_REVISIONSentry 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 intests/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
--create-pr, print the temporary entry with its PR ref (e.g."refs/pr/5"), to test it in a TRL PRscripts/generate_tiny_models/README.mdStep 4 of the procedure in
tests/testing_utils.pystays manual: merging the Hub PR creates a new commit onmain, 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_hubnow prints a ready-to-pasteMODEL_REVISIONSline: when--create-propens 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.