Merge pull request #628 from KohakuBlueleaf/full_bf16

Full bf16 support
This commit is contained in:
Kohya S
2023-07-09 14:22:44 +09:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

@@ -2422,6 +2422,7 @@ def add_training_arguments(parser: argparse.ArgumentParser, support_dreambooth:
"--mixed_precision", type=str, default="no", choices=["no", "fp16", "bf16"], help="use mixed precision / 混合精度を使う場合、その精度"
)
parser.add_argument("--full_fp16", action="store_true", help="fp16 training including gradients / 勾配も含めてfp16で学習する")
parser.add_argument("--full_bf16", action="store_true", help="bf16 training including gradients / 勾配も含めてbf16で学習する")
parser.add_argument(
"--clip_skip",
type=int,