-
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
[raysgd] Cleanup User API #7384
Conversation
…o fp16_pytorch
Co-Authored-By: Edward Oakes <ed.nmi.oakes@gmail.com>
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
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.
LGTM but mostly trusting @maximsmol because I'm not too familiar
model_creator=model_creator, | ||
data_creator=single_loader, | ||
optimizer_creator=optimizer_creator, | ||
config=dict(batch_size=100000), |
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.
config=dict(batch_size=100000), | |
config={batch_size: 100000}, |
To match others
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.
same with below
return loaders | ||
else: | ||
raise ValueError( | ||
"loaders must be <= 2. Got {}".format(loaders)) |
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.
"loaders must be <= 2. Got {}".format(loaders)) | |
"number of loaders must be <= 2. Got {}".format(loaders)) |
logger.debug("Instantiating dataloaders.") | ||
# When creating loaders, a filelock will be used to ensure no | ||
# race conditions in data downloading among different workers. | ||
with FileLock(os.path.expanduser("~/.ray_data.lock")): |
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.
Should this be in a tmpfile to avoid issues with persistence (e.g., if the machine crashes)? Not sure, not familiar with FileLock
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Why are these changes needed?
improves usability of the trainer with the following:
TODO:
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.