Update config.env
Browse files- config.env +56 -52
config.env
CHANGED
@@ -1,52 +1,56 @@
|
|
1 |
-
export MODEL_TYPE='lora'
|
2 |
-
export TRAINING_SEED=420
|
3 |
-
|
4 |
-
export CHECKPOINTING_STEPS=500
|
5 |
-
export CHECKPOINTING_LIMIT=10
|
6 |
-
|
7 |
-
export LEARNING_RATE=1e-4
|
8 |
-
|
9 |
-
export FLUX=true
|
10 |
-
export MODEL_NAME="black-forest-labs/FLUX.1-dev"
|
11 |
-
|
12 |
-
export VALIDATION_SEED=420
|
13 |
-
export VALIDATION_PROMPT="a photograph of Walter White and Jesse Pinkman"
|
14 |
-
export VALIDATION_NEGATIVE_PROMPT=""
|
15 |
-
|
16 |
-
# How frequently we will save and run a pipeline for validations.
|
17 |
-
export VALIDATION_STEPS=500
|
18 |
-
|
19 |
-
# Validation image settings.
|
20 |
-
export VALIDATION_GUIDANCE=3.5
|
21 |
-
export VALIDATION_GUIDANCE_REAL=1.0
|
22 |
-
export VALIDATION_NUM_INFERENCE_STEPS=28
|
23 |
-
export VALIDATION_GUIDANCE_RESCALE=0
|
24 |
-
export VALIDATION_RESOLUTION=1024x1024
|
25 |
-
|
26 |
-
export ALLOW_TF32=true
|
27 |
-
export PURE_BF16=true
|
28 |
-
|
29 |
-
export CAPTION_DROPOUT_PROBABILITY=0
|
30 |
-
|
31 |
-
export MAX_NUM_STEPS=0
|
32 |
-
export NUM_EPOCHS=1000
|
33 |
-
|
34 |
-
export OPTIMIZER="adamw_bf16"
|
35 |
-
export LR_SCHEDULE="constant"
|
36 |
-
export LR_WARMUP_STEPS=500
|
37 |
-
|
38 |
-
export TRAIN_BATCH_SIZE=1
|
39 |
-
|
40 |
-
export RESOLUTION=512
|
41 |
-
export RESOLUTION_TYPE=pixel
|
42 |
-
|
43 |
-
export GRADIENT_ACCUMULATION_STEPS=2
|
44 |
-
export MIXED_PRECISION="bf16"
|
45 |
-
export TRAINING_DYNAMO_BACKEND='inductor'
|
46 |
-
|
47 |
-
export USE_XFORMERS=false
|
48 |
-
export USE_GRADIENT_CHECKPOINTING=true
|
49 |
-
export VAE_BATCH_SIZE=8
|
50 |
-
export TRAINER_EXTRA_ARGS="--max_grad_norm=1.0 --gradient_precision=fp32 --base_model_default_dtype=bf16 --lora_init_type=default --flux_lora_target=all+ffs --flux_guidance_value=1 --user_prompt_library=user_prompt_library.json"
|
51 |
-
|
52 |
-
export USE_EMA=false
|
|
|
|
|
|
|
|
|
|
1 |
+
export MODEL_TYPE='lora'
|
2 |
+
export TRAINING_SEED=420
|
3 |
+
|
4 |
+
export CHECKPOINTING_STEPS=500
|
5 |
+
export CHECKPOINTING_LIMIT=10
|
6 |
+
|
7 |
+
export LEARNING_RATE=1e-4
|
8 |
+
|
9 |
+
export FLUX=true
|
10 |
+
export MODEL_NAME="black-forest-labs/FLUX.1-dev"
|
11 |
+
|
12 |
+
export VALIDATION_SEED=420
|
13 |
+
export VALIDATION_PROMPT="a photograph of Walter White and Jesse Pinkman"
|
14 |
+
export VALIDATION_NEGATIVE_PROMPT=""
|
15 |
+
|
16 |
+
# How frequently we will save and run a pipeline for validations.
|
17 |
+
export VALIDATION_STEPS=500
|
18 |
+
|
19 |
+
# Validation image settings.
|
20 |
+
export VALIDATION_GUIDANCE=3.5
|
21 |
+
export VALIDATION_GUIDANCE_REAL=1.0
|
22 |
+
export VALIDATION_NUM_INFERENCE_STEPS=28
|
23 |
+
export VALIDATION_GUIDANCE_RESCALE=0
|
24 |
+
export VALIDATION_RESOLUTION=1024x1024
|
25 |
+
|
26 |
+
export ALLOW_TF32=true
|
27 |
+
export PURE_BF16=true
|
28 |
+
|
29 |
+
export CAPTION_DROPOUT_PROBABILITY=0
|
30 |
+
|
31 |
+
export MAX_NUM_STEPS=0
|
32 |
+
export NUM_EPOCHS=1000
|
33 |
+
|
34 |
+
export OPTIMIZER="adamw_bf16"
|
35 |
+
export LR_SCHEDULE="constant"
|
36 |
+
export LR_WARMUP_STEPS=500
|
37 |
+
|
38 |
+
export TRAIN_BATCH_SIZE=1
|
39 |
+
|
40 |
+
export RESOLUTION=512
|
41 |
+
export RESOLUTION_TYPE=pixel
|
42 |
+
|
43 |
+
export GRADIENT_ACCUMULATION_STEPS=2
|
44 |
+
export MIXED_PRECISION="bf16"
|
45 |
+
export TRAINING_DYNAMO_BACKEND='inductor'
|
46 |
+
|
47 |
+
export USE_XFORMERS=false
|
48 |
+
export USE_GRADIENT_CHECKPOINTING=true
|
49 |
+
export VAE_BATCH_SIZE=8
|
50 |
+
export TRAINER_EXTRA_ARGS="--max_grad_norm=1.0 --gradient_precision=fp32 --base_model_default_dtype=bf16 --lora_init_type=default --flux_lora_target=all+ffs --flux_guidance_value=1 --user_prompt_library=user_prompt_library.json"
|
51 |
+
|
52 |
+
export USE_EMA=false
|
53 |
+
|
54 |
+
export PUSH_TO_HUB="true"
|
55 |
+
export PUSH_CHECKPOINTS="true"
|
56 |
+
export HUB_MODEL_NAME="breaking-bad-flux"
|