Skip to content

AttributeError: group_by_modality_length_auto not found in TrainingArguments #62

Description

@Wuuu3511

Hi, thank you very much for the excellent work!

I am trying to train the model using train_sr.sh, but I encountered the following error:

AttributeError: 'TrainingArguments' object has no attribute 'group_by_modality_length_auto'.
Did you mean: 'group_by_modality_length'?

It seems that group_by_modality_length_auto is accessed in the custom sampler logic, but this argument is not defined in TrainingArguments.

Thank you very much for your time and help.
I’m looking forward to your reply!

Activity

  1. zd11024 commented on Feb 9, 2026

    @zd11024
    Collaborator

    You are right, group_by_modality_length_auto was a custom argument not explicitly defined in the standard TrainingArguments. To fix this, please ensure you are using --group_by_modality_length in your training script instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions