Skip to content

Commit b0544d9

Browse files
authored
chore: update the qwen-image-edit-2509 example (#804)
1 parent 4f91dd9 commit b0544d9

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/build-docs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ jobs:
3232
source $(conda info --base)/etc/profile.d/conda.sh
3333
conda activate nunchaku-docs || { echo "Failed to activate conda env"; exit 1; }
3434
which python
35+
pip install uv
3536
conda install -c conda-forge gxx=11 gcc=11
3637
echo "Installing dependencies"
37-
pip install -e ".[dev,docs]"
38+
uv pip install -e ".[dev,docs]"
3839
- name: Build docs
3940
run: |
4041
source $(conda info --base)/etc/profile.d/conda.sh

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
default_stages: [pre-commit, pre-push, manual]
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v5.0.0
5+
rev: v6.0.0
66
hooks:
77
- id: check-symlinks
88
- id: destroyed-symlinks
@@ -19,25 +19,25 @@ repos:
1919
# - id: debug-statements
2020
# - id: no-commit-to-branch
2121
- repo: https://github.com/PyCQA/isort
22-
rev: 5.13.2
22+
rev: 7.0.0
2323
hooks:
2424
- id: isort
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.11.2
26+
rev: v0.14.5
2727
hooks:
2828
- id: ruff
2929
args: [--fixable=F401]
3030
files: ^(nunchaku/|examples/|tests/|app/)
3131
exclude: \.ipynb$
3232
- repo: https://github.com/psf/black
33-
rev: 24.10.0
33+
rev: 25.11.0
3434
hooks:
3535
- id: black-jupyter
3636
- id: black
3737
args: [-l, "120"]
3838
files: ^(nunchaku/|examples/|tests/|app/)
3939
- repo: https://github.com/pre-commit/mirrors-clang-format
40-
rev: v20.1.3
40+
rev: v21.1.5
4141
hooks:
4242
- id: clang-format
4343
types_or: [c++, cuda]
@@ -50,7 +50,7 @@ repos:
5050
- '--keep-output'
5151
- '--extra-keys=metadata.kernelspec metadata.language_info.version'
5252
- repo: https://github.com/google/yamlfmt
53-
rev: v0.17.0
53+
rev: v0.20.0
5454
hooks:
5555
- id: yamlfmt
5656
- repo: https://github.com/hukkin/mdformat
@@ -68,11 +68,11 @@ repos:
6868
- id: doc8
6969
additional_dependencies: []
7070
- repo: https://github.com/rstcheck/rstcheck
71-
rev: main # should be replaced with the current verison
71+
rev: v6.2.5 # should be replaced with the current verison
7272
hooks:
7373
- id: rstcheck
7474
additional_dependencies: ['rstcheck[sphinx,toml]']
7575
- repo: https://github.com/tox-dev/pyproject-fmt
76-
rev: "v2.6.0"
76+
rev: "v2.11.1"
7777
hooks:
7878
- id: pyproject-fmt

examples/v1/qwen-image-edit-2509-lightning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
}
2727
scheduler = FlowMatchEulerDiscreteScheduler.from_config(scheduler_config)
2828

29-
num_inference_steps = 4 # you can also use the 8-step model to improve the quality
29+
num_inference_steps = 8 # you can also use the 8-step model to improve the quality
3030
rank = 32 # you can also use the rank=128 model to improve the quality
31-
model_path = f"nunchaku-tech/nunchaku-qwen-image-edit-2509/svdq-{get_precision()}_r{rank}-qwen-image-edit-2509-lightningv2.0-{num_inference_steps}steps.safetensors"
31+
model_path = f"nunchaku-tech/nunchaku-qwen-image-edit-2509/lightning-251115/svdq-{get_precision()}_r{rank}-qwen-image-edit-2509-lightning-{num_inference_steps}steps-251115.safetensors"
3232

3333
# Load the model
3434
transformer = NunchakuQwenImageTransformer2DModel.from_pretrained(model_path)

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ classifiers = [
1818
"Programming Language :: Python :: 3.11",
1919
"Programming Language :: Python :: 3.12",
2020
"Programming Language :: Python :: 3.13",
21+
"Programming Language :: Python :: 3.14",
2122
]
2223
dynamic = [ "version" ]
2324
dependencies = [

0 commit comments

Comments
 (0)