Conversation
* 'main' of https://github.com/huggingface/diffusers: (327 commits) downcast MiniMax-H3 position_ids at the device transfer on fp64-less backends (huggingface#14767) Fix TaylorSeer cache crash when the feature shape changes between steps (huggingface#14831) [docs] Adapters (huggingface#14842) [LoRA] add LoRA training for Qwen Image 2.1 (huggingface#14808) Pin GitHub Actions to commit SHAs (huggingface#14853) Scope GITHUB_TOKEN permissions per job (huggingface#14852) test and docs for xet dedup based file sharing. (huggingface#14835) Add single file support for Qwen 2.1 (huggingface#14836) Fix Wuerstchen LoRA scheduler steps for distributed epochs (huggingface#14748) [docs] Fix legacy hf CLI references (diffusers) (huggingface#14830) [docs] Using diffusion pipelines (huggingface#14805) [docs] Fix docstring arguments that don't match the signatures (huggingface#14778) [docs] typo with hyperlink (huggingface#14826) Fix Ascend NPU RMSNorm and fused-attention mask shapes (huggingface#14288) [core] Fix component device placement for split-device pipelines (huggingface#14739) Fix flash/sage varlen prep under torch.compile with dynamic shapes (huggingface#14568) Synchronize the compute stream before offloading to disk (huggingface#14657) extend tests/others/test_cli_commands.py::TestRunCommand::test_group_… (huggingface#14697) Add SeaCache support for Cosmos3 pipelines (huggingface#14663) Add Qwen-Image 2.1 (huggingface#14804) ...
…` prefix instead of `.net` prefix, and remove unused `llm_adapter` keys
This branch has not been deployed
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.
What does this PR do?
Removes the
model.diffusion_modelprefix from the tensor keys in theCosmosTransformer3DModel.from_single_file()method.While the Anima base-v1.0 version (and the 3 older preview versions) use the
netprefix, the later aesthetic and turbo versions all use themodel.diffusion_modelprefix, which is not currently supported by theCosmosTransformer3DModel.from_single_file()method.This also removes all keys with
llm_adapter, which removes the warning about these keys not being used. In Diffusers, theAnimaTextConditioneris a separate part of the pipeline undertext_conditioner, but all single file checkpoints contain both thetransformerandllm_adaptertensors, which leads to the warning appearing.I decided to add this extra change to my PR about the
model.diffusion_modelprefix because I felt the scope of the changes is rather trivial, but do let me know if I need to put it in a separate PR.Fixes #14929
Before submitting
self-reviewskill on the diff?documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@DN6