Skip to content

Commit cd19df4

Browse files
authored
Merge pull request kohya-ss#1085 from kohya-ss/dev
Dev
2 parents d5ab97b + 736365b commit cd19df4

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,18 @@ ControlNet-LLLite, a novel method for ControlNet with SDXL, is added. See [docum
249249

250250
## Change History
251251

252+
### Jan 27, 2024 / 2024/1/27: v0.8.3
253+
254+
- Fixed a bug that the training crashes when `--fp8_base` is specified with `--save_state`. PR [#1079](https://github.com/kohya-ss/sd-scripts/pull/1079) Thanks to feffy380!
255+
- `safetensors` is updated. Please see [Upgrade](#upgrade) and update the library.
256+
- Fixed a bug that the training crashes when `network_multiplier` is specified with multi-GPU training. PR [#1084](https://github.com/kohya-ss/sd-scripts/pull/1084) Thanks to fireicewolf!
257+
- Fixed a bug that the training crashes when training ControlNet-LLLite.
258+
259+
- `--fp8_base` 指定時に `--save_state` での保存がエラーになる不具合が修正されました。 PR [#1079](https://github.com/kohya-ss/sd-scripts/pull/1079) feffy380 氏に感謝します。
260+
- `safetensors` がバージョンアップされていますので、[Upgrade](#upgrade) を参照し更新をお願いします。
261+
- 複数 GPU での学習時に `network_multiplier` を指定するとクラッシュする不具合が修正されました。 PR [#1084](https://github.com/kohya-ss/sd-scripts/pull/1084) fireicewolf 氏に感謝します。
262+
- ControlNet-LLLite の学習がエラーになる不具合を修正しました。
263+
252264
### Jan 23, 2024 / 2024/1/23: v0.8.2
253265

254266
- [Experimental] The `--fp8_base` option is added to the training scripts for LoRA etc. The base model (U-Net, and Text Encoder when training modules for Text Encoder) can be trained with fp8. PR [#1057](https://github.com/kohya-ss/sd-scripts/pull/1057) Thanks to KohakuBlueleaf!

library/train_util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,6 +1774,7 @@ def __init__(
17741774
tokenizer,
17751775
max_token_length,
17761776
resolution,
1777+
network_multiplier,
17771778
enable_bucket,
17781779
min_bucket_reso,
17791780
max_bucket_reso,

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ einops==0.6.1
88
pytorch-lightning==1.9.0
99
# bitsandbytes==0.39.1
1010
tensorboard==2.10.1
11-
safetensors==0.3.1
11+
safetensors==0.4.2
1212
# gradio==3.16.2
1313
altair==4.2.2
1414
easygui==0.98.3

train_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def remove_model(old_ckpt_name):
774774
else:
775775
raise NotImplementedError("multipliers for each sample is not supported yet")
776776
# print(f"set multiplier: {multipliers}")
777-
network.set_multiplier(multipliers)
777+
accelerator.unwrap_model(network).set_multiplier(multipliers)
778778

779779
with torch.set_grad_enabled(train_text_encoder), accelerator.autocast():
780780
# Get the text embedding for conditioning

0 commit comments

Comments
 (0)