Skip to content

Commit

Permalink
Add support for ScheduleFree Optimizer Type
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaltais committed Sep 17, 2024
1 parent 74a66d2 commit cee8636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kohya_gui/class_basic_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def init_lr_and_optimizer_controls(self) -> None:
label="Optimizer",
choices=[
"AdamW",
"AdamWScheduleFree",
"AdamW8bit",
"Adafactor",
"DAdaptation",
Expand All @@ -211,6 +212,7 @@ def init_lr_and_optimizer_controls(self) -> None:
"Prodigy",
"SGDNesterov",
"SGDNesterov8bit",
"SGDScheduleFree",
],
value=self.config.get("basic.optimizer", "AdamW8bit"),
interactive=True,
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ prodigyopt==1.0
pytorch-lightning==1.9.0
rich>=13.7.1
safetensors==0.4.4
schedulefree==1.2.7
scipy==1.11.4
# for T5XXL tokenizer (SD3/FLUX)
sentencepiece==0.2.0
Expand Down

0 comments on commit cee8636

Please sign in to comment.