davidrd123 commited on
Commit
b9f5376
·
verified ·
1 Parent(s): 5fd5b03

Upload 3 files

Browse files
step1500/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
+ "ffn.0",
29
+ "k",
30
+ "ffn.2",
31
+ "v",
32
+ "q",
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
+ }
step1500/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56f0b5de8e4a8d3f7e3d33200b43b8e691fbd987d78ac299f682cd3463145424
3
+ size 613516752
step1500/wan_low.toml ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Output path for training runs. Each training run makes a new directory in here.
2
+ output_dir = '/root/diffusion-pipe/output/akira_v1_low_noise'
3
+
4
+ # Dataset config file.
5
+ dataset = '/root/diffusion-pipe/my_configs/dataset_akira.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
+ # Controls how Deepspeed decides how to divide layers across GPUs. Probably don't change this.
49
+ partition_method = 'parameters'
50
+ # dtype for saving the LoRA or model, if different from training dtype
51
+ save_dtype = 'bfloat16'
52
+ # Batch size for caching latents and text embeddings. Increasing can lead to higher GPU utilization during caching phase but uses more memory.
53
+ caching_batch_size = 16
54
+ # How often deepspeed logs to console.
55
+ steps_per_print = 1
56
+ # How to extract video clips for training from a single input video file.
57
+ # 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
58
+ # number of frames for that bucket.
59
+ # single_beginning: one clip starting at the beginning of the video
60
+ # single_middle: one clip from the middle of the video (cutting off the start and end equally)
61
+ # multiple_overlapping: extract the minimum number of clips to cover the full range of the video. They might overlap some.
62
+ # default is single_middle
63
+ video_clip_mode = 'single_middle'
64
+
65
+ # blocks_to_swap = 10
66
+
67
+
68
+ [model]
69
+ type = 'wan'
70
+ # Can load Hunyuan Video entirely from the ckpt path set up for the official inference scripts.
71
+ #ckpt_path = '/home/anon/HunyuanVideo/ckpts'
72
+ ckpt_path = '/root/diffusion-pipe/imagegen_models/wan/Wan2.2-T2V-A14B'
73
+ transformer_path = '/root/diffusion-pipe/imagegen_models/wan/Wan2.2-T2V-A14B/low_noise_model'
74
+ # Or you can load it by pointing to all the ComfyUI files.
75
+ # transformer_path = '/notebooks/diffusion-pipe/imagegen_models/hunyuan_video_720_cfgdistill_fp8_e4m3fn.safetensors'
76
+ # vae_path = '/notebooks/diffusion-pipe/imagegen_models/hunyuan_video_vae_bf16.safetensors'
77
+ # llm_path = '/notebooks/diffusion-pipe/imagegen_models/llava-llama-3-8b-text-encoder-tokenizer'
78
+ # clip_path = '/notebooks/diffusion-pipe/imagegen_models/clip-vit-large-patch14'
79
+ # Base dtype used for all models.
80
+ dtype = 'bfloat16'
81
+
82
+ transformer_dtype = 'float8'
83
+ min_t = 0
84
+ max_t = 0.875
85
+ # How to sample timesteps to train on. Can be logit_normal or uniform.
86
+ timestep_sample_method = 'logit_normal'
87
+
88
+ [adapter]
89
+ type = 'lora'
90
+ rank = 64
91
+ # Dtype for the LoRA weights you are training.
92
+ dtype = 'bfloat16'
93
+ # You can initialize the lora weights from a previously trained lora.
94
+ #init_from_existing = '/data/diffusion_pipe_training_runs/something/epoch50'
95
+ # init_from_existing = '/root/diffusion-pipe/output/akira_v1_low_noise/20250930_15-55-20/step13000'
96
+
97
+ [optimizer]
98
+ # AdamW from the optimi library is a good default since it automatically uses Kahan summation when training bfloat16 weights.
99
+ # Look at train.py for other options. You could also easily edit the file and add your own.
100
+ type = 'adamw_optimi'
101
+ # # type = 'adamw8bitkahan'
102
+ lr = 2e-5
103
+ # betas = [0.9, 0.99]
104
+ # weight_decay = 0.01
105
+ # eps = 1e-8
106
+
107
+ # type = 'automagic'
108
+ # lr = 1e-6 # Starting learning rate
109
+ # weight_decay = 0.001 # Weight decay
110
+ # lr_bump = 2e-6 # Amount to bump LR when adjusting