-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model.train_model(train_df, eval_data=eval_df, **eval_metrics) is giving error "All arrays must be of the same length" #1531
Comments
For a sequence-to-sequence model like mT5, you also need to set |
Thanks Thilina for your fast response, I tried your suggestion; however, now I am getting a new error "TypeError: list indices must be integers or slices, not str" although that my training and evaluation datasets fields are all string. The github issues log have a similar issue #1524 but still it is not answered and it refers to the following commit: Appreciating your support,
|
Describe the bug
A clear and concise description of what the bug is. Please specify the class causing the issue.
I am trying to fine-tune an mT5 model while monitoring some custom evaluation metrics. When train_model starts, I am getting an error "All arrays must be of the same length".
I tried to run train_model without the custom eval_metrics and training run successfully without the above error.
To Reproduce
Error stack received:
Expected behavior
Fine tuning should run as expected without the error
Screenshots
Datasets used during training (no null values inside dataset):
Desktop (please complete the following information):
The code is running in a google Collab Pro+ environment
Additional context
Not Applicable
The text was updated successfully, but these errors were encountered: