-
Notifications
You must be signed in to change notification settings - Fork 302
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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 |
There was a problem hiding this comment.
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.
e72142d
to
e6fde3b
Compare
512fbdd
to
f421586
Compare
@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? |
@xuzhao9 could you assign anyone else if you're busy? |
@xuzhao9 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@xuzhao9 thanks for approval. Can you merge? |
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.