Image-to-Video
Cosmos
world-model
autonomous-driving
video-prediction
thermal
lidar
adverse-weather
lora
Daishi974 commited on
Commit
6ac1161
·
verified ·
1 Parent(s): 0ff5cfa

Upload folder using huggingface_hub

Browse files
config/experiment.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "experiment": "dsert_lora",
3
+ "job_name": "tri_lora",
4
+ "model_opts": [
5
+ "model.config.use_lora=true",
6
+ "model.config.lora_rank=16",
7
+ "model.config.lora_alpha=32",
8
+ "model.config.lora_target_modules='q_proj,k_proj,v_proj,output_proj,mlp.layer1,mlp.layer2'",
9
+ "model.config.init_lora_weights=true",
10
+ "model.config.min_num_conditional_frames=2",
11
+ "model.config.max_num_conditional_frames=2",
12
+ "model.config.conditional_frames_probs=null",
13
+ "model.config.conditional_frame_timestep=0.1"
14
+ ],
15
+ "train_opts": [
16
+ "job.project='dsert_wm'",
17
+ "job.group='lora'",
18
+ "job.name='tri_lora'",
19
+ "dataloader_train.dataset.plan_file='<repo_root>/dataset/dsert_work/runs/tri_lora/plan_train.json'",
20
+ "dataloader_train.sampler.plan_file='<repo_root>/dataset/dsert_work/runs/tri_lora/plan_train.json'",
21
+ "dataloader_train.sampler.seed=0",
22
+ "dataloader_train.batch_size=1",
23
+ "dataloader_val.dataset.plan_file='<repo_root>/dataset/dsert_work/runs/tri_lora/plan_val.json'",
24
+ "trainer.max_iter=500",
25
+ "trainer.grad_accum_iter=1",
26
+ "trainer.seed=0",
27
+ "trainer.run_validation=true",
28
+ "trainer.validation_iter=100",
29
+ "trainer.max_val_iter=null",
30
+ "trainer.callbacks.dsert_csv.out_file='<repo_root>/dataset/dsert_work/runs/tri_lora/train_log.csv'",
31
+ "checkpoint.save_iter=100",
32
+ "optimizer.lr=0.0001",
33
+ "optimizer.weight_decay=0.001",
34
+ "scheduler.warm_up_steps=[50]",
35
+ "scheduler.cycle_lengths=[500]",
36
+ "scheduler.f_max=[1.0]",
37
+ "scheduler.f_min=[0.1]",
38
+ "model.config.text_encoder_config.compute_online=false",
39
+ "dataloader_train.dataset.text_cache_dir='<repo_root>/dataset/dsert_work/runs/tri_lora/text_embeddings'",
40
+ "dataloader_val.dataset.text_cache_dir='<repo_root>/dataset/dsert_work/runs/tri_lora/text_embeddings'"
41
+ ],
42
+ "checkpoint_uuid": "81edfebe-bd6a-4039-8c1d-737df1a790bf",
43
+ "pinned_commit": "a2c298b0a3df3778b973fe65e9e58877b292d8a7",
44
+ "imaginaire_root": "<repo_root>/dataset/dsert_work/runs/tri_lora/imaginaire",
45
+ "train_config": "configs/train_tri_lora.yaml"
46
+ }
config/export.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "checkpoint": "tricosmos_ema_bf16.pt",
3
+ "iteration": "iter_000000500"
4
+ }
config/train_tri_lora.yaml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Tri-sensor LoRA: RGB, thermal and LiDAR as one 2x2 grid video (configs/tri.yaml).
2
+ # Same recipe as train_rgb/thermal/lidar_lora.yaml (rank 16, alpha 32, lr 1e-4, 500 steps,
3
+ # effective batch 4); only the data source, the output dir and the batch layout differ:
4
+ # 4 GPUs x micro-batch 1 x grad_accum 1 instead of 1 GPU x 1 x 4 (same effective batch).
5
+ # GPU=1,2,3,4 bash scripts/tri/train.sh
6
+
7
+ model:
8
+ family: cosmos-predict2.5
9
+ variant: 2B-video2world
10
+ checkpoint: nvidia/Cosmos-Predict2.5-2B/base/post-trained # same as train_rgb_lora.yaml
11
+ checkpoint_uuid: 81edfebe-bd6a-4039-8c1d-737df1a790bf
12
+ checkpoint_hf_revision: 15a82a2ec231bc318692aa0456a36537c806e7d4
13
+ pinned_commit: a2c298b0a3df3778b973fe65e9e58877b292d8a7
14
+
15
+ lora:
16
+ rank: 16
17
+ alpha: 32
18
+ target_modules: q_proj,k_proj,v_proj,output_proj,mlp.layer1,mlp.layer2
19
+
20
+ conditioning:
21
+ min_latent_frames: 2
22
+ max_latent_frames: 2
23
+ conditional_frame_timestep: 0.1
24
+
25
+ data:
26
+ clip_root: tri/train
27
+ manifest: manifest.csv
28
+ split: train
29
+ val_split: val
30
+ include_clear: true
31
+ sampling: weather_balanced
32
+ balance_power: 0.5
33
+ weather_multipliers: {}
34
+
35
+ train:
36
+ gpus: 4 # with grad_accum 1: effective batch 4, as in the other runs
37
+ precision: bf16
38
+ micro_batch_size: 1
39
+ grad_accum: 1
40
+ # 500 steps x effective batch 4 = 2000 clip passes (about 5 passes over the clips).
41
+ # Smoke test 2026-09-29: about 300 s per step on one RTX 6000 Ada (75 s per 93-frame
42
+ # 720p clip), so 500 steps take about 42 h; the first plan (4000) would take 14 days.
43
+ max_steps: 500
44
+ lr: 1.0e-4
45
+ weight_decay: 0.001
46
+ warmup_steps: 50
47
+ final_lr_ratio: 0.1
48
+ save_every_steps: 100
49
+ val_every_steps: 100
50
+ val_max_batches: null
51
+ seed: 0
52
+ # Embed the ~10 distinct captions once before training (dsert_wm.cosmos.text_cache) instead of
53
+ # keeping the 7B text encoder on the GPU (about 16 GB); needed to fit one 48 GB GPU.
54
+ precompute_text_embeddings: true
55
+
56
+ logging:
57
+ out_dir: runs/tri_lora
58
+ log_train_curves: true