Skip to content
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

NotImplementedError: Model's DEFAULT_TRAIN_BSIZE is not implemented. #2563

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ostrowskimarcin
Copy link
Contributor

Some tests fail in train mode. I found missing fields in specific models and added DEFAULT_TRAIN_BSIZE with the same value as eval batch size.

@@ -129,6 +129,7 @@ class Model(BenchmarkModel):
# Source: https://github.com/dionhaefner/pyhpc-benchmarks/blob/650ecc650e394df829944ffcf09e9d646ec69691/run.py#L25
# Pick data-point when i = 20, size = 1048576
DEFAULT_EVAL_BSIZE = 1048576
DEFAULT_TRAIN_BSIZE = 1048576
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not need to add train bsize because the train() function is not implemented or supported by this model.

@ostrowskimarcin
Copy link
Contributor Author

@xuzhao9 Yes, you're right. Most of the classes have a train method but they return only an exception. I have to take it into account while testing. But still, there's one model that has an implemented train method without DEFAULT_TRAIN_BSIZE field. I updated my PR. Can you take a look, please?

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

Successfully merging this pull request may close these issues.

3 participants