fix(diffusers): forward original config for single files - #11227
Open
localai-org-maint-bot wants to merge 2 commits into
Open
fix(diffusers): forward original config for single files#11227localai-org-maint-bot wants to merge 2 commits into
localai-org-maint-bot wants to merge 2 commits into
Conversation
localai-org-maint-bot
force-pushed
the
bot/issue-3250-original-config
branch
from
July 31, 2026 01:07
28a3bd0 to
029a953
Compare
Assisted-by: Codex:gpt-5
localai-org-maint-bot
force-pushed
the
bot/issue-3250-original-config
branch
from
July 31, 2026 12:05
029a953 to
cc3472b
Compare
Expose original_config_file through the model configuration metadata registry so registry completeness checks and generated configuration surfaces stay in sync. Assisted-by: Codex:gpt-5 [systematic-debugging]
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.
Description
Closes #3250.
Adds a typed
diffusers.original_config_filemodel setting and forwards it to Diffusers only when loading a single-file checkpoint. Directory and Hubfrom_pretrainedloads keep their existing arguments, and an unset value remains backward-compatible.The load-argument decision lives in a dependency-free helper so it can be tested without installing the full Diffusers runtime. The model configuration reference and image-generation guide now document the field and include an offline single-file example.
Notes for Reviewers
The new proto3
ModelOptions.OriginalConfigFileuses field number 76. Core does not validate or rewrite the configured path because it is interpreted in the backend worker filesystem/URL context.Verification:
make protogen-gogo test ./core/backendpython3 -m unittest backend/python/diffusers/test_load_options.pypython3 -m py_compile backend/python/diffusers/backend.pySigned commits