Repository navigation
Studio: show image generation time - #16462
Merged
danielhanchen merged 5 commits intoNov 3, 2026
Merged
Conversation
[skip ci]
This was referenced Nov 3, 2026
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 3, 2026
Member
|
Review record for #16462, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#713. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|
danielhanchen
added a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 3, 2026
danielhanchen
added a commit
to Etherll/unsloth
that referenced
this pull request
Nov 3, 2026
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 3, 2026
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 3, 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.
Summary
Fixes #16164. Record the elapsed generation time in gallery metadata and show it in the image recipe. The timer ends before saving and may include waiting and processing. When a request produces several images, each record shows the shared time as a batch time rather than claiming it is a per-image measurement.
The local Studio route, external-provider route and OpenAI-compatible route all record the measurement. Existing gallery images without timing metadata continue to work, and the image importer recognizes the new informational fields.
Verification
test_save_many_writes_what_a_save_loop_writesexcluded.The broader initial backend run had 286 passes and 27 failures. Its new metadata-import failure was fixed; other failures included unavailable PyTorch and an image-order test that also failed on the unchanged upstream checkout. The initial contributor checks did not include live GPU image generation or external-provider calls.
Current-head validation
dc3fff70c4against merge base69f489dc6: four behavioral base-fail/head-pass checks and 302 unchanged passes. Six existing cancellation/unload test failures occur on both arms.Before and after
Two independent Studio installs at merge base
69f489dc6and PR headdc3fff70c4show the same persisted PNG recipe. The Time row reads 2.3 s (batch of 2) on the PR; an older image without timing omits the row on both builds. This deterministic 2.25-second fixture demonstrates metadata serialization and display, not GPU performance.