davidrd123 commited on
Commit
5d3553e
·
verified ·
1 Parent(s): b0b4f5b

Upload 3 files

Browse files
step8500/adapter_config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": null,
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": false,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 64,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.0,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "qalora_group_size": 16,
24
+ "r": 64,
25
+ "rank_pattern": {},
26
+ "revision": null,
27
+ "target_modules": [
28
+ "k",
29
+ "q",
30
+ "ffn.0",
31
+ "v",
32
+ "ffn.2",
33
+ "o"
34
+ ],
35
+ "target_parameters": null,
36
+ "task_type": null,
37
+ "trainable_token_indices": null,
38
+ "use_dora": false,
39
+ "use_qalora": false,
40
+ "use_rslora": false
41
+ }
step8500/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75231f030e84c34e78c7371f13cffa6f4b830f2191ec8578c8c966b25267d1d9
3
+ size 613516752
step8500/wan_low.toml ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Output path for training runs. Each training run makes a new directory in here.
2
+ output_dir = '/root/diffusion-pipe/output/graffito_v1_low_noise'
3
+
4
+ # Dataset config file.
5
+ dataset = '/root/diffusion-pipe/my_configs/dataset_graffito.toml'
6
+ # You can have separate eval datasets. Give them a name for Tensorboard metrics.
7
+ # eval_datasets = [
8
+ # {name = 'something', config = 'path/to/eval_dataset.toml'},
9
+ # ]
10
+
11
+ # training settings
12
+
13
+ # I usually set this to a really high value because I don't know how long I want to train.
14
+ epochs = 1000
15
+ # Batch size of a single forward/backward pass for one GPU.
16
+ micro_batch_size_per_gpu = 2
17
+ image_micro_batch_size_per_gpu = 4
18
+ # Pipeline parallelism degree. A single instance of the model is divided across this many GPUs.
19
+ pipeline_stages = 1
20
+ # Number of micro-batches sent through the pipeline for each training step.
21
+ # If pipeline_stages > 1, a higher GAS means better GPU utilization due to smaller pipeline bubbles (where GPUs aren't overlapping computation).
22
+ gradient_accumulation_steps = 1
23
+ # Grad norm clipping.
24
+ gradient_clipping = 1.0
25
+ # Learning rate warmup.
26
+ warmup_steps = 100
27
+
28
+ # eval settings
29
+
30
+ eval_every_n_epochs = 1
31
+ eval_before_first_step = true
32
+ # Might want to set these lower for eval so that less images get dropped (eval dataset size is usually much smaller than training set).
33
+ # Each size bucket of images/videos is rounded down to the nearest multiple of the global batch size, so higher global batch size means
34
+ # more dropped images. Usually doesn't matter for training but the eval set is much smaller so it can matter.
35
+ eval_micro_batch_size_per_gpu = 1
36
+ eval_gradient_accumulation_steps = 1
37
+
38
+ # misc settings
39
+
40
+ # Probably want to set this a bit higher if you have a smaller dataset so you don't end up with a million saved models.
41
+ save_every_n_epochs = 100
42
+ save_every_n_steps = 250
43
+ # Can checkpoint the traiing state every n number of epochs or minutes. Set only one of these. You can resume from checkpoints using the --resume_from_checkpoint flag.
44
+ #checkpoint_every_n_epochs = 1
45
+ checkpoint_every_n_minutes = 30
46
+ # Always set to true unless you have a huge amount of VRAM.
47
+ activation_checkpointing = 'unsloth'
48
+
49
+ # Controls how Deepspeed decides how to divide layers across GPUs. Probably don't change this.
50
+ partition_method = 'parameters'
51
+ # dtype for saving the LoRA or model, if different from training dtype
52
+ save_dtype = 'bfloat16'
53
+ # Batch size for caching latents and text embeddings. Increasing can lead to higher GPU utilization during caching phase but uses more memory.
54
+ caching_batch_size = 16
55
+ # How often deepspeed logs to console.
56
+ steps_per_print = 1
57
+ # How to extract video clips for training from a single input video file.
58
+ # The video file is first assigned to one of the configured frame buckets, but then we must extract one or more clips of exactly the right
59
+ # number of frames for that bucket.
60
+ # single_beginning: one clip starting at the beginning of the video
61
+ # single_middle: one clip from the middle of the video (cutting off the start and end equally)
62
+ # multiple_overlapping: extract the minimum number of clips to cover the full range of the video. They might overlap some.
63
+ # default is single_middle
64
+ video_clip_mode = 'single_middle'
65
+
66
+ # blocks_to_swap = 10
67
+
68
+
69
+ [model]
70
+ type = 'wan'
71
+ # Can load Hunyuan Video entirely from the ckpt path set up for the official inference scripts.
72
+ #ckpt_path = '/home/anon/HunyuanVideo/ckpts'
73
+ ckpt_path = '/root/diffusion-pipe/imagegen_models/wan/Wan2.2-I2V-A14B'
74
+ transformer_path = '/root/diffusion-pipe/imagegen_models/wan/Wan2.2-I2V-A14B/low_noise_model'
75
+ # Or you can load it by pointing to all the ComfyUI files.
76
+ # transformer_path = '/notebooks/diffusion-pipe/imagegen_models/hunyuan_video_720_cfgdistill_fp8_e4m3fn.safetensors'
77
+ # vae_path = '/notebooks/diffusion-pipe/imagegen_models/hunyuan_video_vae_bf16.safetensors'
78
+ # llm_path = '/notebooks/diffusion-pipe/imagegen_models/llava-llama-3-8b-text-encoder-tokenizer'
79
+ # clip_path = '/notebooks/diffusion-pipe/imagegen_models/clip-vit-large-patch14'
80
+ # Base dtype used for all models.
81
+ dtype = 'bfloat16'
82
+
83
+ transformer_dtype = 'bfloat16'
84
+ min_t = 0
85
+ max_t = 0.875
86
+ # How to sample timesteps to train on. Can be logit_normal or uniform.
87
+ timestep_sample_method = 'logit_normal'
88
+
89
+ [adapter]
90
+ type = 'lora'
91
+ rank = 64
92
+ # Dtype for the LoRA weights you are training.
93
+ dtype = 'bfloat16'
94
+ # You can initialize the lora weights from a previously trained lora.
95
+ #init_from_existing = '/data/diffusion_pipe_training_runs/something/epoch50'
96
+ # init_from_existing = '/root/diffusion-pipe/output/akira_v1_low_noise/20250930_15-55-20/step13000'
97
+
98
+ [optimizer]
99
+ # AdamW from the optimi library is a good default since it automatically uses Kahan summation when training bfloat16 weights.
100
+ # Look at train.py for other options. You could also easily edit the file and add your own.
101
+ type = 'adamw_optimi'
102
+ # # type = 'adamw8bitkahan'
103
+ lr = 2e-5
104
+ # betas = [0.9, 0.99]
105
+ # weight_decay = 0.01
106
+ # eps = 1e-8
107
+
108
+ # type = 'automagic'
109
+ # lr = 1e-6 # Starting learning rate
110
+ # weight_decay = 0.001 # Weight decay
111
+ # lr_bump = 2e-6 # Amount to bump LR when adjusting