forked from ByteDance-Seed/VeOmni
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwan_sft.yaml
More file actions
58 lines (56 loc) · 1.44 KB
/
Copy pathwan_sft.yaml
File metadata and controls
58 lines (56 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
model:
model_path: Wan-AI/Wan2.1-I2V-14B-480P
config_path: ./configs/model_configs/wan/wani2v_14b.json
attn_implementation: flash_attention_2
data:
train_path: Wanmini480
train_size: 1000000000000
dataloader_type: native
datasets_type: iterable
data_type: diffusion
max_seq_len: 8192
text_keys: text
drop_last: true
train:
output_dir: wan2.1-i2v-14b-480p
train_architecture: full
data_parallel_mode: fsdp1
data_parallel_replicate_size: 1
ulysses_parallel_size: 4
global_batch_size: 8
micro_batch_size: 1
rmpad: false
rmpad_with_pos_ids: false
bsz_warmup_ratio: 0.007
dyn_bsz_margin: 0
dyn_bsz_buffer_size: 200
optimizer: adamw
vit_lr: 5.0e-5
lr: 1.0e-4
lr_warmup_ratio: 0.007
lr_decay_style: constant
lr_decay_ratio: 1.0
weight_decay: 0.01
max_grad_norm: 1.0
enable_mixed_precision: false
enable_gradient_checkpointing: true
enable_full_shard: true
enable_fsdp_offload: false
enable_activation_offload: false
init_device: cuda
enable_full_determinism: false
empty_cache_steps: 500
ckpt_manager: dcp
load_checkpoint_path: ""
max_steps: 500
save_epochs: 20
num_train_epochs: 100
save_hf_weights: true
use_wandb: false
wandb_project: Wan2.1-I2V-14B-480P
wandb_name: sft_wan_i2v_14b
ops_to_save:
# - aten.addmm.default
- torch.ops.flash_attn._flash_attn_forward.default
- aten._scaled_dot_product_flash_attention.default
- torch.ops.flash_attn_3.fwd.default