noisy(16) + mask(4) + cond(16)), dual-expert MoE (transformer + transformer_2, boundary_ratio=0.875).432→H_lat=54 OK, 216→27 NG).기존 robocasa 학습 backbone은 Wan 2.1 T2V 1.3B + frame-0 clean clamp trick으로 i2v를 흉내내는 구조였다.
Phase A (RGB-only T2V smoke)는 i2v 마이그레이션 전에 현 코드 RGB-only path가 살아있는지 확인하기 위한 사전 검증. Phase B에서 Wan 2.2 I2V A14B로 backbone을 교체하고, Phase C (cache 3-way split)는 Phase B 완료 후 적용하는 A→B→C 순서를 확정했다.
신규 config configs/robocasa_t2v_smoke_rgbonly.yaml (use_pointmap: false)로 T2V 1.3B RGB-only 경로 검증. 코드 수정 0줄.
train_resolution: 81x216x768에서 step 0 shape mismatch — target[H]=27, input[H]=26. Wan transformer spatial patch_size=2 → H_lat 홀수면 patch embed가 truncate. 216/8=27(홀수). 수정: 81x432x768 (H_lat=54, 짝수) 로 변경.HCPT smoke 첫 시도에서 first_frame_latent shape (1,16,1,54,96) ≠ expected (B,16,1,108,96) 에러. 원인: dataset은 self.height=432를 per-cell 픽셀 높이로 사용 (H_lat=54), first_frame 헬퍼는 height를 total grid 높이로 해석해 per-row=216→H_lat=27로 계산. Fix: dataset이 헬퍼 호출 시 effective_height = self.height * 2 if use_pointmap 전달.
| 검증 항목 | RGB-only | HCPT |
|---|---|---|
| 4-step loss 범위 | 0.85 / 1.38 / 0.82 / 0.92 | 1.29 / 1.73 / 1.38 / 1.64 |
| grad_norm 범위 | 0.13 / 0.29 / 0.09 / 0.22 | 0.24 / 0.37 / 0.28 / 0.35 |
| NaN 발생 | 없음 | 없음 |
| Peak GPU memory | 134 GB / 188 GB | 156 GB / 188 GB |
| Step 시간 | 9 s/step | 22 s/step (2.4×) |
| Validation 시간 | ~3분 (50-step CFG) | ~3분 |
| Trainable params | 105M (rank=16, transformer + transformer_2 양쪽) | |
| Total wall-clock | 7분 | 12분 |
| Validation mp4 | 628 KB, 81 frame, 432×768 | 567 KB |
| 파일 | 종류 |
|---|---|
core/finetune/models/_base/width_concat.py | build_wan_i2v_full_grid_mask 추가 |
core/finetune/utils/robocasa_grid.py | start_frame 파라미터 추가 |
core/finetune/datasets/robocasa_hdf5.py | first_frame_latent slot, effective_height 패치 |
core/finetune/models/wan_i2v_robocasa/sft_trainer.py | 신규 ~370 lines |
core/finetune/models/wan_i2v_robocasa/lora_trainer.py | 신규 (SFT 상속) |
configs/robocasa_i2v*.yaml | 신규 3개 (full, smoke_rgbonly, smoke_hcpt) |
scripts/run_robocasa_i2v.sh | 신규 launcher |
Wan 2.2 I2V A14B가 robocasa 2-view 데이터에 대해 RGB-only + HCPT 양 모드에서 36-ch 입력 forward, 50-step CFG inference, checkpoint 저장까지 e2e 동작을 확인했다. 기존 T2V 1.3B 대비 capacity 14× 증가와 native first-frame conditioning이 추가됐다.
HCPT step 시간이 RGB-only 대비 2.4× (22s vs 9s)지만 peak VRAM이 156 GB로 4-GPU B200 (188 GB × 4) 범위 내. 본격 LoRA rank=64 학습에서 rank=16 대비 trainable params 4× 증가가 예상되지만 OOM 위험은 낮다.
Validation 비용은 50-step × CFG × dual-expert로 3분/sample. 학습 1 step ~9s 기준 500 step마다 val 3min × 2 sample = 6min으로 전체 학습 시간의 ~8%.
Phase C (cache 3-way split) 완료 후 sbm 제출:
dual-expert dispatch는 timestep마다 한쪽 expert만 사용 → unused param 발생 → DDP find_unused_parameters=True 필수. ~10-15% throughput 손실 예상.
HCPT 학습은 H_lat=108에서 일어나지만 validation pipe는 H_lat=54에서 sample. crash는 없음, visualization 품질만 약간 손해. 우선순위 낮음.