minimind-v/trainer
王路宝 66ad1c4b7f fix: add find_unused_parameters=True to DDP for mixed text-image batches
When a batch contains only text samples (pixel_values is None),
vision_proj parameters do not participate in the forward pass,
causing DDP to raise:
  'Expected to have finished reduction in the prior iteration'

Adding find_unused_parameters=True resolves this.
2026-04-01 14:20:30 +08:00
..
train_pretrain_vlm.py [update] minimind-3v 2026-03-26 00:09:02 +08:00
train_sft_vlm.py fix: add find_unused_parameters=True to DDP for mixed text-image batches 2026-04-01 14:20:30 +08:00
trainer_utils.py [update] minimind-3v 2026-03-26 00:09:02 +08:00