-
Notifications
You must be signed in to change notification settings - Fork 6.7k
[GLM-Image] New Models Support #12921
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
Closed
Closed
Changes from 19 commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
ec9a82f
init
zRzRzRzRzRzRzR b98decf
add
zRzRzRzRzRzRzR 57fd26d
add 1
zRzRzRzRzRzRzR bcc9c30
Update __init__.py
zRzRzRzRzRzRzR e13fb76
rename
zRzRzRzRzRzRzR adcc532
2
zRzRzRzRzRzRzR ec678a1
update
zRzRzRzRzRzRzR 22fe6c9
init with encoder
zRzRzRzRzRzRzR b3d1b55
merge2pipeline
zRzRzRzRzRzRzR acd13d8
Merge branch 'huggingface:main' into cogview
zRzRzRzRzRzRzR e2b31f8
Update pipeline_glm_image.py
zRzRzRzRzRzRzR 1cf277d
remove sop
zRzRzRzRzRzRzR 170d0ba
remove useless func
zRzRzRzRzRzRzR 144c075
Update pipeline_glm_image.py
zRzRzRzRzRzRzR 041ddec
Merge branch 'main' into cogview
zRzRzRzRzRzRzR 86f5ce4
up
yiyixuxu 64f3842
Merge branch 'cogview' of https://github.com/zRzRzRzRzRzRzR/diffusers…
zRzRzRzRzRzRzR c65f224
review for work only
zRzRzRzRzRzRzR 8d80b76
Merge branch 'main' into cogview
zRzRzRzRzRzRzR e70ebc0
change place
zRzRzRzRzRzRzR 762f9a3
Update pipeline_glm_image.py
zRzRzRzRzRzRzR 5a0a9fa
update
zRzRzRzRzRzRzR 2ae574a
Update transformer_glm_image.py
zRzRzRzRzRzRzR 264f930
1
zRzRzRzRzRzRzR e9b2c89
no negative_prompt for GLM-Image
zRzRzRzRzRzRzR e4f6549
remove CogView4LoraLoaderMixin
zRzRzRzRzRzRzR 51f8015
refactor attention processor.
sayakpaul 075b6a9
update
zRzRzRzRzRzRzR e2d4bda
fix
sayakpaul 854e861
use staticmethod
zRzRzRzRzRzRzR 7862217
update
zRzRzRzRzRzRzR 1226fcb
up
sayakpaul 68ebb42
up
sayakpaul 3b154cf
Merge pull request #4 from huggingface/zRzRzRzRzRzRzR-cogview
zRzRzRzRzRzRzR 40559ca
update
zRzRzRzRzRzRzR 19fc76b
Update glm_image.md
zRzRzRzRzRzRzR 2c21dad
Merge branch 'main' into cogview
sayakpaul d2a5146
1
zRzRzRzRzRzRzR 6cfc83b
Update pipeline_glm_image.py
zRzRzRzRzRzRzR d1373a9
Update transformer_glm_image.py
zRzRzRzRzRzRzR 961fd79
using new transformers impl
zRzRzRzRzRzRzR 6c39bcf
support
zRzRzRzRzRzRzR c77dee9
resolution change
zRzRzRzRzRzRzR 7aaef79
Merge branch 'main' into cogview
sayakpaul 95b88f9
fix-copies
sayakpaul c252ba1
Update src/diffusers/pipelines/glm_image/pipeline_glm_image.py
zRzRzRzRzRzRzR 2c9c740
Merge pull request #5 from huggingface/zRzRzRzRzRzRzR-cogview
zRzRzRzRzRzRzR 404689b
Update pipeline_glm_image.py
zRzRzRzRzRzRzR 908030f
use cogview4
zRzRzRzRzRzRzR 97f85ff
Update pipeline_glm_image.py
zRzRzRzRzRzRzR 906792f
Update pipeline_glm_image.py
zRzRzRzRzRzRzR 2f4c8d9
revert
zRzRzRzRzRzRzR 1520728
update
zRzRzRzRzRzRzR 9631b68
batch support
zRzRzRzRzRzRzR 008e5ea
update
zRzRzRzRzRzRzR 5bb959f
version guard glm image pipeline
sayakpaul 44803f5
Merge pull request #6 from huggingface/zRzRzRzRzRzRzR-cogview
zRzRzRzRzRzRzR 512529f
validate prompt_embeds and prior_token_ids
sayakpaul 4343f7f
Merge pull request #7 from huggingface/zRzRzRzRzRzRzR-cogview
zRzRzRzRzRzRzR 707a29a
try docs.
sayakpaul b20025a
Merge pull request #8 from huggingface/zRzRzRzRzRzRzR-cogview
zRzRzRzRzRzRzR b8febaa
4
zRzRzRzRzRzRzR 1633308
up
sayakpaul c87389b
up
sayakpaul bebf798
Merge pull request #9 from huggingface/zRzRzRzRzRzRzR-cogview
zRzRzRzRzRzRzR 1cd6d2d
skip properly
sayakpaul b71a19f
Merge pull request #10 from huggingface/zRzRzRzRzRzRzR-cogview
zRzRzRzRzRzRzR 97a751e
Merge branch 'main' into cogview
sayakpaul 8f62cac
fix tests
sayakpaul b5cc307
Merge pull request #11 from huggingface/zRzRzRzRzRzRzR-cogview
zRzRzRzRzRzRzR 1636b43
up
sayakpaul 806b232
Merge pull request #12 from huggingface/zRzRzRzRzRzRzR-cogview
zRzRzRzRzRzRzR File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <!--Copyright 2025 The HuggingFace Team. All rights reserved. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
| an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
| specific language governing permissions and limitations under the License. --> | ||
|
|
||
| # GlmImageTransformer2DModel | ||
|
|
||
| A Diffusion Transformer model for 2D data from [GlmImageTransformer2DModel]() | ||
|
|
||
| ## GlmImageTransformer2DModel | ||
|
|
||
| [[autodoc]] GlmImageTransformer2DModel |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| <!--Copyright 2025 The HuggingFace Team. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| --> | ||
|
|
||
| # GLM-Image | ||
|
|
||
| > [!TIP] | ||
| > Make sure to check out the Schedulers [guide](../../using-diffusers/schedulers) to learn how to explore the tradeoff between scheduler speed and quality, and see the [reuse components across pipelines](../../using-diffusers/loading#reuse-a-pipeline) section to learn how to efficiently load the same components into multiple pipelines. | ||
| This pipeline was contributed by [zRzRzRzRzRzRzR](https://github.com/zRzRzRzRzRzRzR). The original codebase can be found [here](https://huggingface.co/zai-org). The original weights can be found under [hf.co/zai-org](https://huggingface.co/zai-org). | ||
sayakpaul marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## GlmImagePipeline | ||
|
|
||
| [[autodoc]] GlmImagePipeline | ||
| - all | ||
| - __call__ | ||
|
|
||
| ## GlmImagePipelineOutput | ||
|
|
||
| [[autodoc]] pipelines.cogview4.pipeline_output.GlmImagePipelineOutput | ||
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.