Skip to content

Model Trainer was not set before constructing the dataset, incorrect number of training batches will be used. Please set the trainer and rebuild the dataset. #7471

Answered by titu1994
mehadi92 asked this question in Q&A
Discussion options

You must be logged in to vote

You need to call model.set_trainer() before calling the data loader setup methods. Without knowing the training env (number of GPUs, nodes) it is not possible to pre calculate the number of training batches across the environment.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mehadi92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants