Skip to content

Commit af04ddd

Browse files
authored
Merge branch 'main' into feat/mag-cache
2 parents a9d736e + b712042 commit af04ddd

163 files changed

Lines changed: 21486 additions & 2373 deletions

File tree

Some content is hidden

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

.github/workflows/build_docker_images.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
if: github.event_name == 'pull_request'
2626
steps:
2727
- name: Set up Docker Buildx
28-
uses: docker/setup-buildx-action@v1
28+
uses: docker/setup-buildx-action@v3
2929

3030
- name: Check out code
3131
uses: actions/checkout@v6
@@ -101,14 +101,14 @@ jobs:
101101
- name: Checkout repository
102102
uses: actions/checkout@v6
103103
- name: Set up Docker Buildx
104-
uses: docker/setup-buildx-action@v1
104+
uses: docker/setup-buildx-action@v3
105105
- name: Login to Docker Hub
106-
uses: docker/login-action@v2
106+
uses: docker/login-action@v3
107107
with:
108108
username: ${{ env.REGISTRY }}
109109
password: ${{ secrets.DOCKERHUB_TOKEN }}
110110
- name: Build and push
111-
uses: docker/build-push-action@v3
111+
uses: docker/build-push-action@v6
112112
with:
113113
no-cache: true
114114
context: ./docker/${{ matrix.image-name }}

.github/workflows/pr_modular_tests.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,27 @@ jobs:
7575
if: ${{ failure() }}
7676
run: |
7777
echo "Repo consistency check failed. Please ensure the right dependency versions are installed with 'pip install -e .[quality]' and run 'make fix-copies'" >> $GITHUB_STEP_SUMMARY
78+
check_auto_docs:
79+
runs-on: ubuntu-22.04
80+
steps:
81+
- uses: actions/checkout@v6
82+
- name: Set up Python
83+
uses: actions/setup-python@v6
84+
with:
85+
python-version: "3.10"
86+
- name: Install dependencies
87+
run: |
88+
pip install --upgrade pip
89+
pip install .[quality]
90+
- name: Check auto docs
91+
run: make modular-autodoctrings
92+
- name: Check if failure
93+
if: ${{ failure() }}
94+
run: |
95+
echo "Auto docstring checks failed. Please run `python utils/modular_auto_docstring.py --fix_and_overwrite`." >> $GITHUB_STEP_SUMMARY
7896
7997
run_fast_tests:
80-
needs: [check_code_quality, check_repository_consistency]
98+
needs: [check_code_quality, check_repository_consistency, check_auto_docs]
8199
name: Fast PyTorch Modular Pipeline CPU tests
82100

83101
runs-on:

.github/workflows/typos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
- uses: actions/checkout@v6
1212

1313
- name: typos-action
14-
uses: crate-ci/typos@v1.12.4
14+
uses: crate-ci/typos@v1.42.1

CONTRIBUTING.md

Lines changed: 0 additions & 506 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/source/en/conceptual/contribution.md

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ fix-copies:
7070
python utils/check_copies.py --fix_and_overwrite
7171
python utils/check_dummies.py --fix_and_overwrite
7272

73+
# Auto docstrings in modular blocks
74+
modular-autodoctrings:
75+
python utils/modular_auto_docstring.py
76+
7377
# Run tests for the library
7478

7579
test:

docker/diffusers-pytorch-cuda/Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM nvidia/cuda:12.1.0-runtime-ubuntu20.04
1+
FROM nvidia/cuda:12.9.1-runtime-ubuntu24.04
22
LABEL maintainer="Hugging Face"
33
LABEL repository="diffusers"
44

5-
ARG PYTHON_VERSION=3.12
5+
ARG PYTHON_VERSION=3.10
66
ENV DEBIAN_FRONTEND=noninteractive
77

88
RUN apt-get -y update \
@@ -32,10 +32,17 @@ RUN uv venv --python ${PYTHON_VERSION} --seed ${VIRTUAL_ENV}
3232
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
3333

3434
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
35+
# Install torch, torchvision, and torchaudio together to ensure compatibility
3536
RUN uv pip install --no-cache-dir \
3637
torch \
3738
torchvision \
38-
torchaudio
39+
torchaudio \
40+
--index-url https://download.pytorch.org/whl/cu129
41+
42+
# Install compatible versions of numba/llvmlite for Python 3.10+
43+
RUN uv pip install --no-cache-dir \
44+
"llvmlite>=0.40.0" \
45+
"numba>=0.57.0"
3946

4047
RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"
4148

docker/diffusers-pytorch-xformers-cuda/Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM nvidia/cuda:12.1.0-runtime-ubuntu20.04
1+
FROM nvidia/cuda:12.9.1-runtime-ubuntu24.04
22
LABEL maintainer="Hugging Face"
33
LABEL repository="diffusers"
44

5-
ARG PYTHON_VERSION=3.12
5+
ARG PYTHON_VERSION=3.10
66
ENV DEBIAN_FRONTEND=noninteractive
77

88
RUN apt-get -y update \
@@ -32,10 +32,17 @@ RUN uv venv --python ${PYTHON_VERSION} --seed ${VIRTUAL_ENV}
3232
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
3333

3434
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
35+
# Install torch, torchvision, and torchaudio together to ensure compatibility
3536
RUN uv pip install --no-cache-dir \
3637
torch \
3738
torchvision \
38-
torchaudio
39+
torchaudio \
40+
--index-url https://download.pytorch.org/whl/cu129
41+
42+
# Install compatible versions of numba/llvmlite for Python 3.10+
43+
RUN uv pip install --no-cache-dir \
44+
"llvmlite>=0.40.0" \
45+
"numba>=0.57.0"
3946

4047
RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"
4148

docs/source/en/_toctree.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,8 @@
496496
title: Bria 3.2
497497
- local: api/pipelines/bria_fibo
498498
title: Bria Fibo
499+
- local: api/pipelines/bria_fibo_edit
500+
title: Bria Fibo Edit
499501
- local: api/pipelines/chroma
500502
title: Chroma
501503
- local: api/pipelines/cogview3
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--Copyright 2025 The HuggingFace Team. All rights reserved.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
4+
the License. You may obtain a copy of the License at
5+
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
8+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
9+
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
10+
specific language governing permissions and limitations under the License.
11+
-->
12+
13+
# Bria Fibo Edit
14+
15+
Fibo Edit is an 8B parameter image-to-image model that introduces a new paradigm of structured control, operating on JSON inputs paired with source images to enable deterministic and repeatable editing workflows.
16+
Featuring native masking for granular precision, it moves beyond simple prompt-based diffusion to offer explicit, interpretable control optimized for production environments.
17+
Its lightweight architecture is designed for deep customization, empowering researchers to build specialized "Edit" models for domain-specific tasks while delivering top-tier aesthetic quality
18+
19+
## Usage
20+
_As the model is gated, before using it with diffusers you first need to go to the [Bria Fibo Hugging Face page](https://huggingface.co/briaai/Fibo-Edit), fill in the form and accept the gate. Once you are in, you need to login so that your system knows you’ve accepted the gate._
21+
22+
Use the command below to log in:
23+
24+
```bash
25+
hf auth login
26+
```
27+
28+
29+
## BriaFiboEditPipeline
30+
31+
[[autodoc]] BriaFiboEditPipeline
32+
- all
33+
- __call__

0 commit comments

Comments
 (0)