File size: 59,472 Bytes
533920b | 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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 | [run.sh] distributed_sharded auto-set NUM_PROCESSES=1 (all visible GPUs)
[run.sh] Launch mode=distributed_sharded (DeepSpeed ZeRO-3)
2026-04-07 13:37:34.662042: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2026-04-07 13:37:37.839913: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F AVX512_VNNI AVX512_BF16 AVX512_FP16 AVX_VNNI AMX_TILE AMX_INT8 AMX_BF16 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2026-04-07 13:37:42.467616: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2026-04-07 13:37:42.473892: I external/local_xla/xla/tsl/cuda/cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.
[train.py] Disabled flash/mem-efficient SDP kernels; using math SDP backend.
[2026-04-07 13:38:10,838][root][INFO] - /g/data/rr81/aev/bin/x86_64-conda-linux-gnu-cc -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /g/data/rr81/aev/include -I/g/data/rr81/aev/targets/x86_64-linux/include -I/g/data/rr81/aev/targets/x86_64-linux/include/cccl -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /g/data/rr81/aev/include -I/g/data/rr81/aev/targets/x86_64-linux/include -I/g/data/rr81/aev/targets/x86_64-linux/include/cccl -fPIC -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /g/data/rr81/aev/include -I/g/data/rr81/aev/targets/x86_64-linux/include -I/g/data/rr81/aev/targets/x86_64-linux/include/cccl -c /scratch/rr81/ma5430/tmp/tmpspb_o7mh/test.c -o /scratch/rr81/ma5430/tmp/tmpspb_o7mh/test.o
[2026-04-07 13:38:24,727][root][INFO] - /g/data/rr81/aev/bin/x86_64-conda-linux-gnu-cc -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/g/data/rr81/aev/lib -Wl,-rpath-link,/g/data/rr81/aev/lib -L/g/data/rr81/aev/lib -L/g/data/rr81/aev/targets/x86_64-linux/lib -L/g/data/rr81/aev/targets/x86_64-linux/lib/stubs /scratch/rr81/ma5430/tmp/tmpspb_o7mh/test.o -laio -o /scratch/rr81/ma5430/tmp/tmpspb_o7mh/a.out
[2026-04-07 13:38:25,328][root][INFO] - /g/data/rr81/aev/bin/x86_64-conda-linux-gnu-cc -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /g/data/rr81/aev/include -I/g/data/rr81/aev/targets/x86_64-linux/include -I/g/data/rr81/aev/targets/x86_64-linux/include/cccl -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /g/data/rr81/aev/include -I/g/data/rr81/aev/targets/x86_64-linux/include -I/g/data/rr81/aev/targets/x86_64-linux/include/cccl -fPIC -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /g/data/rr81/aev/include -I/g/data/rr81/aev/targets/x86_64-linux/include -I/g/data/rr81/aev/targets/x86_64-linux/include/cccl -c /scratch/rr81/ma5430/tmp/tmp6efs5r08/test.c -o /scratch/rr81/ma5430/tmp/tmp6efs5r08/test.o
[2026-04-07 13:38:25,385][root][INFO] - /g/data/rr81/aev/bin/x86_64-conda-linux-gnu-cc -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/g/data/rr81/aev/lib -Wl,-rpath-link,/g/data/rr81/aev/lib -L/g/data/rr81/aev/lib -L/g/data/rr81/aev/targets/x86_64-linux/lib -L/g/data/rr81/aev/targets/x86_64-linux/lib/stubs /scratch/rr81/ma5430/tmp/tmp6efs5r08/test.o -L/g/data/rr81/aev -L/g/data/rr81/aev/lib64 -lcufile -o /scratch/rr81/ma5430/tmp/tmp6efs5r08/a.out
[2026-04-07 13:38:25,551][root][INFO] - /g/data/rr81/aev/bin/x86_64-conda-linux-gnu-cc -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /g/data/rr81/aev/include -I/g/data/rr81/aev/targets/x86_64-linux/include -I/g/data/rr81/aev/targets/x86_64-linux/include/cccl -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /g/data/rr81/aev/include -I/g/data/rr81/aev/targets/x86_64-linux/include -I/g/data/rr81/aev/targets/x86_64-linux/include/cccl -fPIC -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /g/data/rr81/aev/include -I/g/data/rr81/aev/targets/x86_64-linux/include -I/g/data/rr81/aev/targets/x86_64-linux/include/cccl -c /scratch/rr81/ma5430/tmp/tmp0ddzq53f/test.c -o /scratch/rr81/ma5430/tmp/tmp0ddzq53f/test.o
[2026-04-07 13:38:25,609][root][INFO] - /g/data/rr81/aev/bin/x86_64-conda-linux-gnu-cc -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/g/data/rr81/aev/lib -Wl,-rpath-link,/g/data/rr81/aev/lib -L/g/data/rr81/aev/lib -L/g/data/rr81/aev/targets/x86_64-linux/lib -L/g/data/rr81/aev/targets/x86_64-linux/lib/stubs /scratch/rr81/ma5430/tmp/tmp0ddzq53f/test.o -laio -o /scratch/rr81/ma5430/tmp/tmp0ddzq53f/a.out
[2026-04-07 13:38:28,753][accelerate.utils.other][WARNING] - Detected kernel version 4.18.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
[2026-04-07 13:38:28,754][trainer.accelerators.base_accelerator][INFO] - Setting seed 42
[2026-04-07 13:38:28,771][trainer.accelerators.base_accelerator][INFO] - Initialized accelerator: rank=0
[2026-04-07 13:38:28,777][__main__][INFO] - Config can be found in logs/v5/reward_model/step_sana_sana_sprint_0_6b_1024_variable-t_lr1e-5_step-8000_filter2_time951/config.yaml
[2026-04-07 13:38:28,778][__main__][INFO] - Loading task
[2026-04-07 13:38:29,730][__main__][INFO] - Loading model
`torch_dtype` is deprecated! Use `dtype` instead!
Loading checkpoint shards: 0%| | 0/2 [00:00<?, ?it/s]
Loading checkpoint shards: 50%|βββββ | 1/2 [00:01<00:01, 1.82s/it]
Loading checkpoint shards: 100%|ββββββββββ| 2/2 [00:01<00:00, 1.22it/s]
Loading checkpoint shards: 100%|ββββββββββ| 2/2 [00:01<00:00, 1.03it/s]
[2026-04-07 13:38:33,300][__main__][INFO] - Loading criterion
[2026-04-07 13:38:33,301][__main__][INFO] - Loading optimizer
[2026-04-07 13:38:33,305][__main__][INFO] - Loading lr scheduler
[2026-04-07 13:38:33,306][__main__][INFO] - Loading dataloaders
[2026-04-07 13:38:33,307][trainer.datasets.step_sana_hf_dataset][INFO] - Using step-aware datasets
[2026-04-07 13:38:33,307][trainer.datasets.step_sana_hf_dataset][INFO] - Loading train dataset
[2026-04-07 13:38:33,307][trainer.datasets.step_sana_hf_dataset][INFO] - Batch size is 4
[2026-04-07 13:38:33,309][trainer.datasets.step_sana_hf_dataset][INFO] - Loading cached offline split 'train' from 387 parquet shards
[2026-04-07 13:38:34,488][trainer.datasets.step_sana_hf_dataset][INFO] - Loaded 583747 examples from train dataset
[2026-04-07 13:38:35,043][trainer.datasets.step_sana_hf_dataset][INFO] - Keeping only examples with pesudo preference, filter_strategy: 2
[2026-04-07 13:38:35,050][trainer.datasets.step_sana_hf_dataset][INFO] - Loaded 583747 examples from train dataset
[2026-04-07 13:38:35,241][trainer.datasets.step_sana_hf_dataset][INFO] - Kept 177076 examples from train dataset
[2026-04-07 13:38:35,242][trainer.datasets.step_sana_hf_dataset][INFO] - Loaded 177076 examples from train dataset
[2026-04-07 13:38:36,181][trainer.datasets.step_sana_hf_dataset][INFO] - Using step-aware datasets
[2026-04-07 13:38:36,181][trainer.datasets.step_sana_hf_dataset][INFO] - Loading validation_unique dataset
[2026-04-07 13:38:36,181][trainer.datasets.step_sana_hf_dataset][INFO] - Batch size is 4
[2026-04-07 13:38:36,182][trainer.datasets.step_sana_hf_dataset][INFO] - Loading cached offline split 'validation_unique' from 1 parquet shards
[2026-04-07 13:38:36,193][trainer.datasets.step_sana_hf_dataset][INFO] - Loaded 500 examples from validation_unique dataset
[2026-04-07 13:38:36,194][trainer.datasets.step_sana_hf_dataset][INFO] - Keeping only examples with label in validation_unique split
Filter: 0%| | 0/500 [00:00<?, ? examples/s]
Filter: 100%|ββββββββββ| 500/500 [00:00<00:00, 3601.50 examples/s]
Filter: 100%|ββββββββββ| 500/500 [00:00<00:00, 3530.07 examples/s]
[2026-04-07 13:38:36,359][trainer.datasets.step_sana_hf_dataset][INFO] - Kept 425 examples from validation_unique dataset
[2026-04-07 13:38:36,360][trainer.datasets.step_sana_hf_dataset][INFO] - Loaded 425 examples from validation_unique dataset
[2026-04-07 13:38:37,357][trainer.datasets.step_sana_hf_dataset][INFO] - Using step-aware datasets
[2026-04-07 13:38:37,357][trainer.datasets.step_sana_hf_dataset][INFO] - Loading test_unique dataset
[2026-04-07 13:38:37,357][trainer.datasets.step_sana_hf_dataset][INFO] - Batch size is 4
[2026-04-07 13:38:37,358][trainer.datasets.step_sana_hf_dataset][INFO] - Loading cached offline split 'test_unique' from 1 parquet shards
[2026-04-07 13:38:37,369][trainer.datasets.step_sana_hf_dataset][INFO] - Loaded 500 examples from test_unique dataset
[2026-04-07 13:38:37,369][trainer.datasets.step_sana_hf_dataset][INFO] - Keeping only examples with label in test_unique split
Filter: 0%| | 0/500 [00:00<?, ? examples/s]
Filter: 100%|ββββββββββ| 500/500 [00:00<00:00, 3381.00 examples/s]
Filter: 100%|ββββββββββ| 500/500 [00:00<00:00, 3311.47 examples/s]
[2026-04-07 13:38:37,545][trainer.datasets.step_sana_hf_dataset][INFO] - Kept 432 examples from test_unique dataset
[2026-04-07 13:38:37,545][trainer.datasets.step_sana_hf_dataset][INFO] - Loaded 432 examples from test_unique dataset
[2026-04-07 13:38:38,482][accelerate.accelerator][INFO] - Since you passed both train and evaluation dataloader, `is_train_batch_min` (here True will decide the `train_batch_size` (4).
[2026-04-07 13:38:44,136] [WARNING] [lr_schedules.py:690:get_lr] Attempting to get learning rate from scheduler before it has started
[2026-04-07 13:38:44,144][trainer.accelerators.base_accelerator][INFO] - num_update_steps_per_epoch = 44269
[2026-04-07 13:38:44,144][trainer.accelerators.base_accelerator][INFO] - num_batches = 44269
[2026-04-07 13:38:44,144][trainer.accelerators.base_accelerator][INFO] - num_epochs = 1
[2026-04-07 13:38:44,182][trainer.accelerators.base_accelerator][INFO] - Initializing trackers
[2026-04-07 13:38:44,182][trainer.accelerators.base_accelerator][INFO] - Training config:
CONFIG
βββ accelerator
β βββ _target_: trainer.accelerators.deepspeed_accelerator.DeepSpeedAccelerator
β output_dir: logs/v5/reward_model/step_sana_sana_sprint_0_6b_1024_variable-t_lr1e-5_step-8000_filter2_time951
β mixed_precision: BF16
β gradient_accumulation_steps: 1
β log_with: null
β debug:
β activate: false
β port: 5900
β seed: 42
β resume_from_checkpoint: false
β max_steps: 8000
β num_epochs: 1
β validate_steps: 100
β generalization_validate_steps: 500
β eval_on_start: false
β project_name: reward_model
β run_name: step_sana_sana_sprint_0_6b_1024_variable-t_lr1e-5_step-8000_filter2_time951
β max_grad_norm: 1.0
β save_steps: 100
β metric_name: accuracy
β metric_mode: MAX
β limit_num_checkpoints: 1
β save_only_if_best: true
β dynamo_backend: 'NO'
β keep_best_ckpts: true
β progress_log_interval: 50
β deepspeed:
β fp16:
β enabled: false
β bf16:
β enabled: true
β optimizer:
β type: AdamW
β params:
β lr: auto
β weight_decay: auto
β torch_adam: true
β adam_w_mode: true
β scheduler:
β type: WarmupDecayLR
β params:
β warmup_min_lr: auto
β warmup_max_lr: auto
β warmup_num_steps: auto
β total_num_steps: auto
β zero_optimization:
β stage: 3
β allgather_partitions: true
β allgather_bucket_size: 200000000.0
β overlap_comm: true
β reduce_scatter: true
β reduce_bucket_size: 500000000
β contiguous_gradients: true
β gradient_accumulation_steps: 1
β gradient_clipping: 1.0
β steps_per_print: 1
β train_batch_size: auto
β train_micro_batch_size_per_gpu: auto
β wall_clock_breakdown: false
β deepspeed_final:
β fp16:
β enabled: false
β bf16:
β enabled: true
β optimizer:
β type: AdamW
β params:
β lr: auto
β weight_decay: auto
β torch_adam: true
β adam_w_mode: true
β scheduler:
β type: WarmupDecayLR
β params:
β warmup_min_lr: auto
β warmup_max_lr: auto
β warmup_num_steps: auto
β total_num_steps: auto
β zero_optimization:
β stage: 3
β allgather_partitions: true
β allgather_bucket_size: 200000000.0
β overlap_comm: true
β reduce_scatter: true
β reduce_bucket_size: 500000000
β contiguous_gradients: true
β gradient_accumulation_steps: 1
β gradient_clipping: 1.0
β steps_per_print: .inf
β train_batch_size: auto
β train_micro_batch_size_per_gpu: auto
β wall_clock_breakdown: false
β
βββ task
β βββ limit_examples_to_wandb: 50
β _target_: trainer.tasks.step_sana_task.StepSanaTask
β pretrained_model_name_or_path: Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers
β tokenizer_subfolder: tokenizer
β label_0_column_name: label_0
β label_1_column_name: label_1
β input_ids_column_name: input_ids
β input_ids_2_column_name: input_ids_2
β pixels_0_column_name: pixel_values_0
β pixels_1_column_name: pixel_values_1
β timestep_column_name: timestep
β constant_timestep: 1
β
βββ model
β βββ _target_: trainer.models.sana_preference_model.SanaPreferenceModel
β pretrained_model_name_or_path: Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers
β pretrained_vae_name_or_path: ''
β model_profile: sana_sprint_0_6b_1024
β projection_dim: 1024
β logit_scale_init_value: 2.6592
β freeze_text_encoder: false
β guidance_scale: 7.5
β noise_offset: false
β noise_offset_coeff: 0.05
β max_sequence_length: 300
β max_sequence_length_2: 300
β image_size: 1024
β
βββ criterion
β βββ _target_: trainer.criterions.step_clip_criterion_sana.StepSanaCLIPCriterion
β is_distributed: true
β label_0_column_name: label_0
β label_1_column_name: label_1
β input_ids_column_name: input_ids
β input_ids_2_column_name: input_ids_2
β pixels_0_column_name: pixel_values_0
β pixels_1_column_name: pixel_values_1
β num_examples_per_prompt_column_name: num_example_per_prompt
β timestep_column_name: timestep
β loss_type: pair
β batch_coeff: 1.0
β aux_loss_coeff: 1.0
β
βββ dataset
β βββ train_split_name: train
β valid_split_name: validation_unique
β test_split_name: test_unique
β batch_size: 4
β num_workers: 2
β drop_last: true
β _target_: trainer.datasets.step_sana_hf_dataset.StepSanaHFDataset
β dataset_name: pickapic-anonymous/pickapic_v1
β dataset_config_name: null
β from_disk: false
β cache_dir: null
β caption_column_name: caption
β input_ids_column_name: input_ids
β input_ids_2_column_name: input_ids_2
β image_0_column_name: jpg_0
β image_1_column_name: jpg_1
β label_0_column_name: label_0
β label_1_column_name: label_1
β are_different_column_name: are_different
β has_label_column_name: has_label
β pixels_0_column_name: pixel_values_0
β pixels_1_column_name: pixel_values_1
β timestep_column_name: timestep
β constant_timestep: 1
β variable_timestep: true
β largest_timestep: 951
β compare_between_timestep: false
β timestep_comparison_column_name: timestep_comparison
β timestep_interval: 1
β num_examples_per_prompt_column_name: num_example_per_prompt
β keep_only_different: false
β keep_only_with_label: false
β keep_only_with_label_in_non_train: true
β keep_only_with_pesudo_preference: true
β pseudo_preference_path: /g/data/rr81/LPO/lrm/lrm_sana/vqa_aes_clip_score_mp.csv
β filter_strategy: 2
β processor:
β pretrained_model_name_or_path: Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers
β max_sequence_length: 300
β max_sequence_length_2: 300
β image_size: 1024
β random_crop: false
β no_hflip: true
β limit_examples_per_prompt: -1
β only_on_best: false
β
βββ optimizer
β βββ _target_: trainer.optimizers.dummy_optimizer.BaseDummyOptim
β lr: 1.0e-05
β weight_decay: 0.3
β
βββ lr_scheduler
β βββ _target_: trainer.lr_schedulers.dummy_lr_scheduler.instantiate_dummy_lr_scheduler
β lr: 1.0e-05
β lr_warmup_steps: 1000
β total_num_steps: 8000
β
βββ debug
β βββ activate: false
β port: 5900
β
βββ output_dir
βββ logs/v5/reward_model/step_sana_sana_sprint_0_6b_1024_variable-t_lr1e-5_step-8000_filter2_time951
[2026-04-07 13:38:44,256][trainer.accelerators.base_accelerator][INFO] - nvidia-smi stats: {'gpu_0_mem_used_gb': 35.8818359375}
[2026-04-07 13:38:44,256][trainer.accelerators.base_accelerator][INFO] - ***** Running training *****
[2026-04-07 13:38:44,257][trainer.accelerators.base_accelerator][INFO] - Instantaneous batch size per device = 4
[2026-04-07 13:38:44,257][trainer.accelerators.base_accelerator][INFO] - Total train batch size (w. parallel, distributed & accumulation) = 4
[2026-04-07 13:38:44,257][trainer.accelerators.base_accelerator][INFO] - Gradient Accumulation steps = 1
[2026-04-07 13:38:44,257][trainer.accelerators.base_accelerator][INFO] - Total warmup steps = 1000
[2026-04-07 13:38:44,257][trainer.accelerators.base_accelerator][INFO] - Total training steps = 8000
[2026-04-07 13:38:44,257][trainer.accelerators.base_accelerator][INFO] - Total epochs = 1
[2026-04-07 13:38:44,258][trainer.accelerators.base_accelerator][INFO] - Steps per epoch = 44269
[2026-04-07 13:38:44,258][trainer.accelerators.base_accelerator][INFO] - Update steps per epoch = 44269
[2026-04-07 13:38:44,258][trainer.accelerators.base_accelerator][INFO] - Total optimization steps = 8000
[2026-04-07 13:38:44,258][trainer.accelerators.base_accelerator][INFO] - Mixed precision = bf16
[2026-04-07 13:38:44,258][trainer.accelerators.base_accelerator][INFO] - World size = 1
0%| | 0/8000 [00:00<?, ?it/s]
Steps: 0%| | 0/8000 [00:00<?, ?it/s][2026-04-07 13:38:44,260][__main__][INFO] - task: StepSanaTask
[2026-04-07 13:38:44,260][__main__][INFO] - model: DeepSpeedEngine
[2026-04-07 13:38:44,269][__main__][INFO] - num. model params: 0M
[2026-04-07 13:38:44,278][__main__][INFO] - num. model trainable params: 0M
[2026-04-07 13:38:44,278][__main__][INFO] - criterion: StepSanaCLIPCriterion
[2026-04-07 13:38:44,278][__main__][INFO] - num. train examples: 177076
[2026-04-07 13:38:44,279][__main__][INFO] - num. valid examples: 425
[2026-04-07 13:38:44,279][__main__][INFO] - num. test examples: 432
[2026-04-07 13:38:44,279][__main__][INFO] - ========== TRAIN LOOP START (eval_on_start=False, validate_steps=100, progress_log_interval=50) ==========
[2026-04-07 13:38:45,177] [WARNING] [torch_autocast.py:122:autocast_if_enabled] torch.autocast is enabled outside DeepSpeed but disabled within the DeepSpeed engine. If you are using DeepSpeed's built-in mixed precision, the engine will follow the settings in bf16/fp16 section. To use torch's native autocast instead, configure the `torch_autocast` section in the DeepSpeed config.
Error executing job with overrides: ['accelerator.mixed_precision=BF16', 'model.model_profile=sana_sprint_0_6b_1024', 'model.pretrained_model_name_or_path=Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers', 'model.image_size=1024', 'accelerator.run_name=step_sana_sana_sprint_0_6b_1024_variable-t_lr1e-5_step-8000_filter2_time951', 'accelerator.log_with=null', 'accelerator=deepspeed', 'optimizer=dummy', 'lr_scheduler=dummy', 'criterion.is_distributed=true', 'accelerator.deepspeed.zero_optimization.stage=3', 'accelerator.deepspeed.gradient_accumulation_steps=1', 'dataset.pseudo_preference_path=/g/data/rr81/LPO/lrm/lrm_sana/vqa_aes_clip_score_mp.csv', 'dataset.valid_split_name=validation_unique', 'dataset.test_split_name=test_unique']
Traceback (most recent call last):
File "/g/data/rr81/LPO/lrm/lrm_sana/trainer/scripts/train.py", line 201, in main
loss = task.train_step(model, criterion, batch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/LPO/lrm/lrm_sana/trainer/tasks/step_sana_task.py", line 53, in train_step
loss = criterion(model, batch)
^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1786, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/LPO/lrm/lrm_sana/trainer/criterions/step_clip_criterion_sana.py", line 217, in forward
image_0_features, image_1_features, text_features = self.get_features(
^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/LPO/lrm/lrm_sana/trainer/criterions/step_clip_criterion_sana.py", line 35, in get_features
text_features, all_image_features = model(text_input_ids=input_ids, text_input_ids_2=input_ids_2, image_inputs=all_pixel_values, time_cond=timesteps)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1786, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/amp/autocast_mode.py", line 44, in decorate_autocast
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/deepspeed/utils/nvtx.py", line 20, in wrapped_fn
ret_val = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/deepspeed/runtime/engine.py", line 2358, in forward
loss = self.module(*inputs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1881, in _call_impl
return inner()
^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1829, in inner
result = forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/LPO/lrm/lrm_sana/trainer/models/sana_preference_model.py", line 310, in forward
image_features = self.get_image_features(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/LPO/lrm/lrm_sana/trainer/models/sana_preference_model.py", line 288, in get_image_features
model_pred = self.transformer(**transformer_kwargs)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1881, in _call_impl
return inner()
^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1829, in inner
result = forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/diffusers/models/transformers/sana_transformer.py", line 506, in forward
hidden_states = block(
^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1881, in _call_impl
return inner()
^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1829, in inner
result = forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/diffusers/models/transformers/sana_transformer.py", line 273, in forward
attn_output = self.attn2(
^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1881, in _call_impl
return inner()
^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1829, in inner
result = forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/diffusers/models/attention_processor.py", line 605, in forward
return self.processor(
^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/diffusers/models/transformers/sana_transformer.py", line 179, in __call__
hidden_states = attn.to_out[0](hidden_states)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1881, in _call_impl
return inner()
^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1818, in inner
args_result = hook(self, args)
^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/deepspeed/runtime/zero/parameter_offload.py", line 300, in _pre_forward_module_hook
self.pre_sub_module_forward_function(module)
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/deepspeed/runtime/zero/parameter_offload.py", line 475, in pre_sub_module_forward_function
param_coordinator.fetch_sub_module(sub_module, forward=True)
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/deepspeed/utils/nvtx.py", line 20, in wrapped_fn
ret_val = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/deepspeed/runtime/zero/partitioned_param_coordinator.py", line 325, in fetch_sub_module
self._fetch_sub_module_impl(current_submodule, forward, is_leaf)
File "/g/data/rr81/aev/lib/python3.11/site-packages/deepspeed/runtime/zero/partitioned_param_coordinator.py", line 377, in _fetch_sub_module_impl
while self.__ongoing_fetch_events and self.__ongoing_fetch_events[0].query():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/torch/cuda/streams.py", line 212, in query
return super().query()
^^^^^^^^^^^^^^^
torch.AcceleratorError: CUDA error: misaligned address
Search for `cudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
Steps: 0%| | 0/8000 [00:10<?, ?it/s]
Traceback (most recent call last):
File "/g/data/rr81/aev/bin/accelerate", line 7, in <module>
sys.exit(main())
^^^^^^
File "/g/data/rr81/aev/lib/python3.11/site-packages/accelerate/commands/accelerate_cli.py", line 50, in main
args.func(args)
File "/g/data/rr81/aev/lib/python3.11/site-packages/accelerate/commands/launch.py", line 1281, in launch_command
simple_launcher(args)
File "/g/data/rr81/aev/lib/python3.11/site-packages/accelerate/commands/launch.py", line 869, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['/g/data/rr81/aev/bin/python3.11', 'trainer/scripts/train.py', '--config-path', '/g/data/rr81/LPO/lrm/lrm_sana/trainer/conf', '--config-name', 'step_sana_base', 'accelerator.mixed_precision=BF16', 'model.model_profile=sana_sprint_0_6b_1024', 'model.pretrained_model_name_or_path=Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers', 'model.image_size=1024', 'accelerator.run_name=step_sana_sana_sprint_0_6b_1024_variable-t_lr1e-5_step-8000_filter2_time951', 'accelerator.log_with=null', 'accelerator=deepspeed', 'optimizer=dummy', 'lr_scheduler=dummy', 'criterion.is_distributed=true', 'accelerator.deepspeed.zero_optimization.stage=3', 'accelerator.deepspeed.gradient_accumulation_steps=1', 'dataset.pseudo_preference_path=/g/data/rr81/LPO/lrm/lrm_sana/vqa_aes_clip_score_mp.csv', 'dataset.valid_split_name=validation_unique', 'dataset.test_split_name=test_unique']' returned non-zero exit status 1.
|