Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[train+tune] Local directory refactor (1/n): Write launcher state files (
tuner.pkl
,trainer.pkl
) directly to storage #43369[train+tune] Local directory refactor (1/n): Write launcher state files (
tuner.pkl
,trainer.pkl
) directly to storage #43369Changes from 19 commits
41ef191
bf323fa
dee3249
bdd58b3
0bd1a58
24a9fc0
90be9ca
c18384a
cab5e12
09e0273
c0d0ba0
011ac92
c3c03ac
25cccb5
b367413
417a7da
6b10a13
c218937
805757b
55e069a
39eaf81
75b80a6
876aad2
85c2acd
df25a79
43d53a0
533c807
185f57c
6f5277a
cdeaa44
f0ead9a
9c896f6
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Is it because we inject a default storage context into the run config if not specified?
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.
This is because I set the
run_config.name
in the trainer, then pass that along to the tuner. So, the tuner's run config is no longer the defaultRunConfig
. This is so that we don't generate the experiment name multiple times (which could lead to different folders being used by the trainer vs. tuner).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 we be trying to instantiate this
StorageContext
only in one place and then pass it around?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.
This is hard to do since we'd need to pass the context through from
BaseTrainer.fit
to the publicTuner
interface.One alternative we discussed is having a global storage context, but that'd also require a
get_or_create_storage_context
logic to account for users coming in through any of the 3 entrypoints (tuner, trainer, tune.run).I will clarify the usage is just to access the path and the filesystem so that we don't re-implement that logic.