-
Notifications
You must be signed in to change notification settings - Fork 6k
Fix loading if unexpected keys are present #3720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
patrickvonplaten
merged 2 commits into
main
from
fix_unidiffusers_loading_with_new_transformer
Jun 8, 2023
Merged
Fix loading if unexpected keys are present #3720
patrickvonplaten
merged 2 commits into
main
from
fix_unidiffusers_loading_with_new_transformer
Jun 8, 2023
Conversation
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
The documentation is not available anymore as the PR was closed or merged. |
patrickvonplaten
added a commit
that referenced
this pull request
Jun 8, 2023
* Fix loading * make style
stevhliu
pushed a commit
that referenced
this pull request
Jul 18, 2023
* feat) optimization kr translation * fix) typo, italic setting * feat) dreambooth, text2image kr * feat) lora kr * fix) LoRA * fix) fp16 fix * fix) doc-builder style * fix) fp16 일부 단어 수정 * fix) fp16 style fix * fix) opt, training docs update * merge conflict * Fix community pipelines (#3266) * Allow disabling torch 2_0 attention (#3273) * Allow disabling torch 2_0 attention * make style * Update src/diffusers/models/attention.py * Release: v0.16.1 * feat) toctree update * feat) toctree update * Fix custom releases (#3708) * Fix custom releases * make style * Fix loading if unexpected keys are present (#3720) * Fix loading * make style * Release: v0.17.0 * opt_overview * commit * Create pipeline_overview.mdx * unconditional_image_generatoin_1stDraft * ✨ Add translation for write_own_pipeline.mdx * conditional-직역, 언컨디셔널 * unconditional_image_generation first draft * reviese * Update pipeline_overview.mdx * revise-2 * ♻️ translation fixed for write_own_pipeline.mdx * complete translate basic_training.mdx * other-formats.mdx 번역 완료 * fix tutorials/basic_training.mdx * other-formats 수정 * inpaint 한국어 번역 * depth2img translation * translate training/adapt-a-model.mdx * revised_all * feedback taken * using_safetensors.mdx_first_draft * custom_pipeline_examples.mdx_first_draft * img2img 한글번역 완료 * tutorial_overview edit * reusing_seeds * torch2.0 * translate complete * fix) 용어 통일 규약 반영 * [fix] 피드백을 반영해서 번역 보정 * 오탈자 정정 + 컨벤션 위배된 부분 정정 * typo, style fix * toctree update * copyright fix * toctree fix * Update _toctree.yml --------- Co-authored-by: Chanran Kim <[email protected]> Co-authored-by: apolinário <[email protected]> Co-authored-by: Patrick von Platen <[email protected]> Co-authored-by: Lee, Hongkyu <[email protected]> Co-authored-by: hyeminan <[email protected]> Co-authored-by: movie5 <[email protected]> Co-authored-by: idra79haza <[email protected]> Co-authored-by: Jihwan Kim <[email protected]> Co-authored-by: jungwoo <[email protected]> Co-authored-by: jjuun0 <[email protected]> Co-authored-by: szjung-test <[email protected]> Co-authored-by: idra79haza <[email protected]> Co-authored-by: howsmyanimeprofilepicture <[email protected]> Co-authored-by: hoswmyanimeprofilepicture <[email protected]>
orpatashnik
pushed a commit
to orpatashnik/diffusers
that referenced
this pull request
Aug 1, 2023
* feat) optimization kr translation * fix) typo, italic setting * feat) dreambooth, text2image kr * feat) lora kr * fix) LoRA * fix) fp16 fix * fix) doc-builder style * fix) fp16 일부 단어 수정 * fix) fp16 style fix * fix) opt, training docs update * merge conflict * Fix community pipelines (huggingface#3266) * Allow disabling torch 2_0 attention (huggingface#3273) * Allow disabling torch 2_0 attention * make style * Update src/diffusers/models/attention.py * Release: v0.16.1 * feat) toctree update * feat) toctree update * Fix custom releases (huggingface#3708) * Fix custom releases * make style * Fix loading if unexpected keys are present (huggingface#3720) * Fix loading * make style * Release: v0.17.0 * opt_overview * commit * Create pipeline_overview.mdx * unconditional_image_generatoin_1stDraft * ✨ Add translation for write_own_pipeline.mdx * conditional-직역, 언컨디셔널 * unconditional_image_generation first draft * reviese * Update pipeline_overview.mdx * revise-2 * ♻️ translation fixed for write_own_pipeline.mdx * complete translate basic_training.mdx * other-formats.mdx 번역 완료 * fix tutorials/basic_training.mdx * other-formats 수정 * inpaint 한국어 번역 * depth2img translation * translate training/adapt-a-model.mdx * revised_all * feedback taken * using_safetensors.mdx_first_draft * custom_pipeline_examples.mdx_first_draft * img2img 한글번역 완료 * tutorial_overview edit * reusing_seeds * torch2.0 * translate complete * fix) 용어 통일 규약 반영 * [fix] 피드백을 반영해서 번역 보정 * 오탈자 정정 + 컨벤션 위배된 부분 정정 * typo, style fix * toctree update * copyright fix * toctree fix * Update _toctree.yml --------- Co-authored-by: Chanran Kim <[email protected]> Co-authored-by: apolinário <[email protected]> Co-authored-by: Patrick von Platen <[email protected]> Co-authored-by: Lee, Hongkyu <[email protected]> Co-authored-by: hyeminan <[email protected]> Co-authored-by: movie5 <[email protected]> Co-authored-by: idra79haza <[email protected]> Co-authored-by: Jihwan Kim <[email protected]> Co-authored-by: jungwoo <[email protected]> Co-authored-by: jjuun0 <[email protected]> Co-authored-by: szjung-test <[email protected]> Co-authored-by: idra79haza <[email protected]> Co-authored-by: howsmyanimeprofilepicture <[email protected]> Co-authored-by: hoswmyanimeprofilepicture <[email protected]>
orpatashnik
pushed a commit
to orpatashnik/diffusers
that referenced
this pull request
Aug 1, 2023
* feat) optimization kr translation * fix) typo, italic setting * feat) dreambooth, text2image kr * feat) lora kr * fix) LoRA * fix) fp16 fix * fix) doc-builder style * fix) fp16 일부 단어 수정 * fix) fp16 style fix * fix) opt, training docs update * merge conflict * Fix community pipelines (huggingface#3266) * Allow disabling torch 2_0 attention (huggingface#3273) * Allow disabling torch 2_0 attention * make style * Update src/diffusers/models/attention.py * Release: v0.16.1 * feat) toctree update * feat) toctree update * Fix custom releases (huggingface#3708) * Fix custom releases * make style * Fix loading if unexpected keys are present (huggingface#3720) * Fix loading * make style * Release: v0.17.0 * opt_overview * commit * Create pipeline_overview.mdx * unconditional_image_generatoin_1stDraft * ✨ Add translation for write_own_pipeline.mdx * conditional-직역, 언컨디셔널 * unconditional_image_generation first draft * reviese * Update pipeline_overview.mdx * revise-2 * ♻️ translation fixed for write_own_pipeline.mdx * complete translate basic_training.mdx * other-formats.mdx 번역 완료 * fix tutorials/basic_training.mdx * other-formats 수정 * inpaint 한국어 번역 * depth2img translation * translate training/adapt-a-model.mdx * revised_all * feedback taken * using_safetensors.mdx_first_draft * custom_pipeline_examples.mdx_first_draft * img2img 한글번역 완료 * tutorial_overview edit * reusing_seeds * torch2.0 * translate complete * fix) 용어 통일 규약 반영 * [fix] 피드백을 반영해서 번역 보정 * 오탈자 정정 + 컨벤션 위배된 부분 정정 * typo, style fix * toctree update * copyright fix * toctree fix * Update _toctree.yml --------- Co-authored-by: Chanran Kim <[email protected]> Co-authored-by: apolinário <[email protected]> Co-authored-by: Patrick von Platen <[email protected]> Co-authored-by: Lee, Hongkyu <[email protected]> Co-authored-by: hyeminan <[email protected]> Co-authored-by: movie5 <[email protected]> Co-authored-by: idra79haza <[email protected]> Co-authored-by: Jihwan Kim <[email protected]> Co-authored-by: jungwoo <[email protected]> Co-authored-by: jjuun0 <[email protected]> Co-authored-by: szjung-test <[email protected]> Co-authored-by: idra79haza <[email protected]> Co-authored-by: howsmyanimeprofilepicture <[email protected]> Co-authored-by: hoswmyanimeprofilepicture <[email protected]>
orpatashnik
pushed a commit
to orpatashnik/diffusers
that referenced
this pull request
Aug 1, 2023
* feat) optimization kr translation * fix) typo, italic setting * feat) dreambooth, text2image kr * feat) lora kr * fix) LoRA * fix) fp16 fix * fix) doc-builder style * fix) fp16 일부 단어 수정 * fix) fp16 style fix * fix) opt, training docs update * merge conflict * Fix community pipelines (huggingface#3266) * Allow disabling torch 2_0 attention (huggingface#3273) * Allow disabling torch 2_0 attention * make style * Update src/diffusers/models/attention.py * Release: v0.16.1 * feat) toctree update * feat) toctree update * Fix custom releases (huggingface#3708) * Fix custom releases * make style * Fix loading if unexpected keys are present (huggingface#3720) * Fix loading * make style * Release: v0.17.0 * opt_overview * commit * Create pipeline_overview.mdx * unconditional_image_generatoin_1stDraft * ✨ Add translation for write_own_pipeline.mdx * conditional-직역, 언컨디셔널 * unconditional_image_generation first draft * reviese * Update pipeline_overview.mdx * revise-2 * ♻️ translation fixed for write_own_pipeline.mdx * complete translate basic_training.mdx * other-formats.mdx 번역 완료 * fix tutorials/basic_training.mdx * other-formats 수정 * inpaint 한국어 번역 * depth2img translation * translate training/adapt-a-model.mdx * revised_all * feedback taken * using_safetensors.mdx_first_draft * custom_pipeline_examples.mdx_first_draft * img2img 한글번역 완료 * tutorial_overview edit * reusing_seeds * torch2.0 * translate complete * fix) 용어 통일 규약 반영 * [fix] 피드백을 반영해서 번역 보정 * 오탈자 정정 + 컨벤션 위배된 부분 정정 * typo, style fix * toctree update * copyright fix * toctree fix * Update _toctree.yml --------- Co-authored-by: Chanran Kim <[email protected]> Co-authored-by: apolinário <[email protected]> Co-authored-by: Patrick von Platen <[email protected]> Co-authored-by: Lee, Hongkyu <[email protected]> Co-authored-by: hyeminan <[email protected]> Co-authored-by: movie5 <[email protected]> Co-authored-by: idra79haza <[email protected]> Co-authored-by: Jihwan Kim <[email protected]> Co-authored-by: jungwoo <[email protected]> Co-authored-by: jjuun0 <[email protected]> Co-authored-by: szjung-test <[email protected]> Co-authored-by: idra79haza <[email protected]> Co-authored-by: howsmyanimeprofilepicture <[email protected]> Co-authored-by: hoswmyanimeprofilepicture <[email protected]>
yoonseokjin
pushed a commit
to yoonseokjin/diffusers
that referenced
this pull request
Dec 25, 2023
* Fix loading * make style
AmericanPresidentJimmyCarter
pushed a commit
to AmericanPresidentJimmyCarter/diffusers
that referenced
this pull request
Apr 26, 2024
* Fix loading * make style
AmericanPresidentJimmyCarter
pushed a commit
to AmericanPresidentJimmyCarter/diffusers
that referenced
this pull request
Apr 26, 2024
* feat) optimization kr translation * fix) typo, italic setting * feat) dreambooth, text2image kr * feat) lora kr * fix) LoRA * fix) fp16 fix * fix) doc-builder style * fix) fp16 일부 단어 수정 * fix) fp16 style fix * fix) opt, training docs update * merge conflict * Fix community pipelines (huggingface#3266) * Allow disabling torch 2_0 attention (huggingface#3273) * Allow disabling torch 2_0 attention * make style * Update src/diffusers/models/attention.py * Release: v0.16.1 * feat) toctree update * feat) toctree update * Fix custom releases (huggingface#3708) * Fix custom releases * make style * Fix loading if unexpected keys are present (huggingface#3720) * Fix loading * make style * Release: v0.17.0 * opt_overview * commit * Create pipeline_overview.mdx * unconditional_image_generatoin_1stDraft * ✨ Add translation for write_own_pipeline.mdx * conditional-직역, 언컨디셔널 * unconditional_image_generation first draft * reviese * Update pipeline_overview.mdx * revise-2 * ♻️ translation fixed for write_own_pipeline.mdx * complete translate basic_training.mdx * other-formats.mdx 번역 완료 * fix tutorials/basic_training.mdx * other-formats 수정 * inpaint 한국어 번역 * depth2img translation * translate training/adapt-a-model.mdx * revised_all * feedback taken * using_safetensors.mdx_first_draft * custom_pipeline_examples.mdx_first_draft * img2img 한글번역 완료 * tutorial_overview edit * reusing_seeds * torch2.0 * translate complete * fix) 용어 통일 규약 반영 * [fix] 피드백을 반영해서 번역 보정 * 오탈자 정정 + 컨벤션 위배된 부분 정정 * typo, style fix * toctree update * copyright fix * toctree fix * Update _toctree.yml --------- Co-authored-by: Chanran Kim <[email protected]> Co-authored-by: apolinário <[email protected]> Co-authored-by: Patrick von Platen <[email protected]> Co-authored-by: Lee, Hongkyu <[email protected]> Co-authored-by: hyeminan <[email protected]> Co-authored-by: movie5 <[email protected]> Co-authored-by: idra79haza <[email protected]> Co-authored-by: Jihwan Kim <[email protected]> Co-authored-by: jungwoo <[email protected]> Co-authored-by: jjuun0 <[email protected]> Co-authored-by: szjung-test <[email protected]> Co-authored-by: idra79haza <[email protected]> Co-authored-by: howsmyanimeprofilepicture <[email protected]> Co-authored-by: hoswmyanimeprofilepicture <[email protected]>
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.
In
transformers >= 4.30
, the GPT2 model removes the persistency flag for weights which means that when someone does:We fix this in
diffusers
by using the same:_keys_to_ignore_on_load_unexpected
logic that is used intransformers
:huggingface/transformers#23256
Need to do a release before end of day so sadly no time.