-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
increase protobuffer message size #170
Conversation
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.
Looks good to me. But need more reviews.
This change makes trainer_config
able to return a large config. It makes PyDataProvider can serialize much more arguments.
But the disadvantages are:
- It will use larger memory to save trainer config. Maybe we can remove
PyDataProvider
'sarguments
after parsing them immediately to solve this problem. ButTrainerConfig
in Paddle may have someCopy By Value
. It is also need be cleaned. - The problem is not actually solved, because there still is a size limit here.
And related issue is #166
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.
As we discussed, it's not recommended to transmit large python data structure the TrainerConfig. For dictionary, we can just transmit the file name, and let dataprovider to load it. Please change the demos to this way of handling dictionary instead of increasing protobuf size limit.
* Modify for experiment * Modify for experiment * Modify for experiment Co-authored-by: root <[email protected]>
* Modify for experiment * Modify for experiment * Modify for experiment Co-authored-by: root <[email protected]>
Missing module in `setup.py`
* fix readme link * fix readme link
change export code in blip2
No description provided.