Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5149be5
feat: initial commit for HunyuanImage-2.1 inference
kohya-ss Sep 11, 2025
7f983c5
feat: block swap for inference and initial impl for HunyuanImage LoRA…
kohya-ss Sep 11, 2025
a0f0afb
fix: revert constructor signature update
kohya-ss Sep 11, 2025
cbc9e1a
feat: add byt5 to the list of recognized words in typos configuration
kohya-ss Sep 11, 2025
209c02d
feat: HunyuanImage LoRA training
kohya-ss Sep 12, 2025
aa0af24
Merge branch 'sd3' into feat-hunyuan-image-2.1-inference
kohya-ss Sep 12, 2025
7a651ef
feat: add 'tak' to recognized words and update block swap method to s…
kohya-ss Sep 12, 2025
9a61d61
feat: avoid unet type casting when fp8_scaled
kohya-ss Sep 12, 2025
bae7fa7
Merge branch 'sd3' into feat-hunyuan-image-2.1-inference
kohya-ss Sep 13, 2025
d831c88
fix: sample generation doesn't work with block swap
kohya-ss Sep 13, 2025
4e2a80a
refactor: update imports to use safetensors_utils for memory-efficien…
kohya-ss Sep 13, 2025
29b0500
fix: restore files section in _typos.toml for exclusion configuration
kohya-ss Sep 13, 2025
e04b9f0
docs: add LoRA training guide for HunyuanImage-2.1 model (by Gemini CLI)
kohya-ss Sep 13, 2025
1a73b5e
feat: add script to convert LoRA format to ComfyUI format
kohya-ss Sep 14, 2025
2732be0
Merge branch 'feat-hunyuan-image-2.1-inference' of https://github.com…
kohya-ss Sep 14, 2025
39458ec
fix: update default values for guidance_scale, image_size, infer_step…
kohya-ss Sep 16, 2025
f318dda
docs: update HunyuanImage-2.1 training guide with model download inst…
kohya-ss Sep 16, 2025
cbe2a9d
feat: add conversion script for LoRA models to ComfyUI format with re…
kohya-ss Sep 16, 2025
f5b0040
fix: correct tensor indexing in HunyuanVAE2D class for blending and e…
kohya-ss Sep 17, 2025
2ce506e
fix: fp8 casting not working
kohya-ss Sep 18, 2025
f6b4bdc
feat: block-wise fp8 quantization
kohya-ss Sep 18, 2025
f834b2e
fix: --fp8_vl to work
kohya-ss Sep 18, 2025
b090d15
feat: add multi backend attention and related update for HI2.1 models…
kohya-ss Sep 20, 2025
8f20c37
feat: add --text_encoder_cpu option to reduce VRAM usage by running t…
kohya-ss Sep 20, 2025
f41e9e2
feat: add vae_chunk_size argument for memory-efficient VAE decoding a…
kohya-ss Sep 21, 2025
e7b8e9a
doc: add --vae_chunk_size option for training and inference
kohya-ss Sep 21, 2025
9621d9d
feat: add Adaptive Projected Guidance parameters and noise rescaling
kohya-ss Sep 21, 2025
040d976
feat: add guidance rescale options for Adaptive Projected Guidance in…
kohya-ss Sep 21, 2025
3876343
fix: remove print statement for guidance rescale in AdaptiveProjected…
kohya-ss Sep 21, 2025
806d535
fix: block-wise scaling is overwritten by per-tensor scaling
kohya-ss Sep 21, 2025
e7b8982
Update library/custom_offloading_utils.py
kohya-ss Sep 21, 2025
753c794
Update hunyuan_image_train_network.py
kohya-ss Sep 21, 2025
31f7df3
doc: add --network_train_unet_only option for HunyuanImage-2.1 training
kohya-ss Sep 23, 2025
58df9df
doc: update README with HunyuanImage-2.1 LoRA training details and re…
kohya-ss Sep 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ If you are using DeepSpeed, please install DeepSpeed with `pip install deepspeed

### Recent Updates

Sep 23, 2025:
- HunyuanImage-2.1 LoRA training is supported. [PR #2198](https://github.com/kohya-ss/sd-scripts/pull/2198) for details.
- Please see [HunyuanImage-2.1 Training](./docs/hunyuan_image_train_network.md) for details.
- __HunyuanImage-2.1 training does not support LoRA modules for Text Encoders, so `--network_train_unet_only` is required.__
- The training script is `hunyuan_image_train_network.py`.
- This includes changes to `train_network.py`, the base of the training script. Please let us know if you encounter any issues.

Sep 13, 2025:
- The loading speed of `.safetensors` files has been improved for SD3, FLUX.1 and Lumina. See [PR #2200](https://github.com/kohya-ss/sd-scripts/pull/2200) for more details.
- Model loading can be up to 1.5 times faster.
Expand Down
4 changes: 3 additions & 1 deletion _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ koo="koo"
yos="yos"
wn="wn"
hime="hime"

OT="OT"
byt="byt"
tak="tak"

[files]
extend-exclude = ["_typos.toml", "venv"]
525 changes: 525 additions & 0 deletions docs/hunyuan_image_train_network.md

Large diffs are not rendered by default.

Loading