Skip to content

Commit ca363b0

Browse files
authored
Merge branch 'main' into fix_syntax_qwenimageEditPlus
2 parents 911dc79 + c3675d4 commit ca363b0

File tree

266 files changed

+2589
-2796
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+2589
-2796
lines changed

.github/workflows/pr_modular_tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,8 @@ jobs:
110110
run: |
111111
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
112112
python -m uv pip install -e [quality,test]
113-
# Stopping this update temporarily until the Hub RC is fully shipped and integrated.
114-
# pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
115-
# pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
113+
pip uninstall transformers -y && pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
114+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
116115
117116
- name: Environment
118117
run: |

.github/workflows/pr_tests.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,8 @@ jobs:
116116
run: |
117117
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
118118
python -m uv pip install -e [quality,test]
119-
# Stopping this update temporarily until the Hub RC is fully shipped and integrated.
120-
# pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
121-
# pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
119+
pip uninstall transformers -y && pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
120+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
122121
123122
- name: Environment
124123
run: |
@@ -254,10 +253,9 @@ jobs:
254253
python -m uv pip install -e [quality,test]
255254
# TODO (sayakpaul, DN6): revisit `--no-deps`
256255
python -m pip install -U peft@git+https://github.com/huggingface/peft.git --no-deps
257-
# Stopping this update temporarily until the Hub RC is fully shipped and integrated.
258-
# python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
259-
# python -m uv pip install -U tokenizers
260-
# pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
256+
python -m uv pip install -U tokenizers
257+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
258+
pip uninstall transformers -y && pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
261259
262260
- name: Environment
263261
run: |

.github/workflows/pr_tests_gpu.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,8 @@ jobs:
132132
run: |
133133
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
134134
python -m uv pip install -e [quality,test]
135-
# Stopping this update temporarily until the Hub RC is fully shipped and integrated.
136-
# pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
137-
# pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
135+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
136+
pip uninstall transformers -y && pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
138137
139138
- name: Environment
140139
run: |
@@ -204,9 +203,8 @@ jobs:
204203
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
205204
python -m uv pip install -e [quality,test]
206205
python -m uv pip install peft@git+https://github.com/huggingface/peft.git
207-
# Stopping this update temporarily until the Hub RC is fully shipped and integrated.
208-
# pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
209-
# pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
206+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
207+
pip uninstall transformers -y && pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
210208
211209
- name: Environment
212210
run: |
@@ -268,8 +266,7 @@ jobs:
268266
- name: Install dependencies
269267
run: |
270268
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
271-
# Stopping this update temporarily until the Hub RC is fully shipped and integrated.
272-
# pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
269+
pip uninstall transformers -y && pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
273270
python -m uv pip install -e [quality,test,training]
274271
275272
- name: Environment

docs/source/en/_toctree.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@
7070
title: Reduce memory usage
7171
- local: optimization/speed-memory-optims
7272
title: Compiling and offloading quantized models
73-
- local: api/parallel
74-
title: Parallel inference
7573
- title: Community optimizations
7674
sections:
7775
- local: optimization/pruna
@@ -282,6 +280,8 @@
282280
title: Outputs
283281
- local: api/quantization
284282
title: Quantization
283+
- local: api/parallel
284+
title: Parallel inference
285285
- title: Modular
286286
sections:
287287
- local: api/modular_diffusers/pipeline

docs/source/en/api/configuration.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ specific language governing permissions and limitations under the License.
1414

1515
Schedulers from [`~schedulers.scheduling_utils.SchedulerMixin`] and models from [`ModelMixin`] inherit from [`ConfigMixin`] which stores all the parameters that are passed to their respective `__init__` methods in a JSON-configuration file.
1616

17-
<Tip>
18-
19-
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with `hf auth login`.
20-
21-
</Tip>
17+
> [!TIP]
18+
> To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with `hf auth login`.
2219
2320
## ConfigMixin
2421

docs/source/en/api/loaders/ip_adapter.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ specific language governing permissions and limitations under the License.
1414

1515
[IP-Adapter](https://hf.co/papers/2308.06721) is a lightweight adapter that enables prompting a diffusion model with an image. This method decouples the cross-attention layers of the image and text features. The image features are generated from an image encoder.
1616

17-
<Tip>
18-
19-
Learn how to load an IP-Adapter checkpoint and image in the IP-Adapter [loading](../../using-diffusers/loading_adapters#ip-adapter) guide, and you can see how to use it in the [usage](../../using-diffusers/ip_adapter) guide.
20-
21-
</Tip>
17+
> [!TIP]
18+
> Learn how to load an IP-Adapter checkpoint and image in the IP-Adapter [loading](../../using-diffusers/loading_adapters#ip-adapter) guide, and you can see how to use it in the [usage](../../using-diffusers/ip_adapter) guide.
2219
2320
## IPAdapterMixin
2421

docs/source/en/api/loaders/lora.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ LoRA is a fast and lightweight training method that inserts and trains a signifi
3333
- [`QwenImageLoraLoaderMixin`] provides similar functions for [Qwen Image](https://huggingface.co/docs/diffusers/main/en/api/pipelines/qwen)
3434
- [`LoraBaseMixin`] provides a base class with several utility methods to fuse, unfuse, unload, LoRAs and more.
3535

36-
<Tip>
37-
38-
To learn more about how to load LoRA weights, see the [LoRA](../../using-diffusers/loading_adapters#lora) loading guide.
39-
40-
</Tip>
36+
> [!TIP]
37+
> To learn more about how to load LoRA weights, see the [LoRA](../../using-diffusers/loading_adapters#lora) loading guide.
4138
4239
## LoraBaseMixin
4340

docs/source/en/api/loaders/peft.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ specific language governing permissions and limitations under the License.
1414

1515
Diffusers supports loading adapters such as [LoRA](../../using-diffusers/loading_adapters) with the [PEFT](https://huggingface.co/docs/peft/index) library with the [`~loaders.peft.PeftAdapterMixin`] class. This allows modeling classes in Diffusers like [`UNet2DConditionModel`], [`SD3Transformer2DModel`] to operate with an adapter.
1616

17-
<Tip>
18-
19-
Refer to the [Inference with PEFT](../../tutorials/using_peft_for_inference.md) tutorial for an overview of how to use PEFT in Diffusers for inference.
20-
21-
</Tip>
17+
> [!TIP]
18+
> Refer to the [Inference with PEFT](../../tutorials/using_peft_for_inference.md) tutorial for an overview of how to use PEFT in Diffusers for inference.
2219
2320
## PeftAdapterMixin
2421

docs/source/en/api/loaders/textual_inversion.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ Textual Inversion is a training method for personalizing models by learning new
1616

1717
[`TextualInversionLoaderMixin`] provides a function for loading Textual Inversion embeddings from Diffusers and Automatic1111 into the text encoder and loading a special token to activate the embeddings.
1818

19-
<Tip>
20-
21-
To learn more about how to load Textual Inversion embeddings, see the [Textual Inversion](../../using-diffusers/loading_adapters#textual-inversion) loading guide.
22-
23-
</Tip>
19+
> [!TIP]
20+
> To learn more about how to load Textual Inversion embeddings, see the [Textual Inversion](../../using-diffusers/loading_adapters#textual-inversion) loading guide.
2421
2522
## TextualInversionLoaderMixin
2623

docs/source/en/api/loaders/transformer_sd3.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ This class is useful when *only* loading weights into a [`SD3Transformer2DModel`
1616

1717
The [`SD3Transformer2DLoadersMixin`] class currently only loads IP-Adapter weights, but will be used in the future to save weights and load LoRAs.
1818

19-
<Tip>
20-
21-
To learn more about how to load LoRA weights, see the [LoRA](../../using-diffusers/loading_adapters#lora) loading guide.
22-
23-
</Tip>
19+
> [!TIP]
20+
> To learn more about how to load LoRA weights, see the [LoRA](../../using-diffusers/loading_adapters#lora) loading guide.
2421
2522
## SD3Transformer2DLoadersMixin
2623

0 commit comments

Comments
 (0)