-
Notifications
You must be signed in to change notification settings - Fork 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
[air] Add *path
properties to Result
and ResultGrid
#33410
[air] Add *path
properties to Result
and ResultGrid
#33410
Conversation
Signed-off-by: Kai Fricke <kai@anyscale.com>
Hey, did we end up going through #api-changes for this? Also, this doesn't seem to correspond with our discussion on the PRD..? |
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
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.
Thanks! Just added a few questions:
@@ -246,6 +246,37 @@ def _metadata(self, metadata: _CheckpointMetadata): | |||
for attr, value in metadata.checkpoint_state.items(): | |||
setattr(self, attr, value) | |||
|
|||
@property | |||
def path(self) -> Optional[str]: |
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 checkpoint.uri
get deprecated given this one?
Also, what if a user wants the local path for some reason when using cloud? Can only access through private property right now.
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.
I think we should keep URI to have counterparts to to_uri
and from_uri
for now. But I agree, we should probably see if we want to move to to_path
and from_path
instead.
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.
For accessing the local path, if a checkpoint has a URI, the checkpoint object does not have a local path stored. There may be cached data somewhere on the local node, but it doesn't have to be (e.g. if the checkpoint was stored on a worker node). The user can use checkpoint.to_directory()
to download the data to a target directory.
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
…t#33410) Following ray-project#33370, this PR adds `Result.path` and `ResultGrid.experiment_path` to the respective classes. Further, we remove the public facing `ExperimentAnalysis.local_path` and `ExperimentAnalysis.remote_path` in favor of a unified `ExperimentAnalysis.experiment_path`. Signed-off-by: Kai Fricke <kai@anyscale.com> Signed-off-by: elliottower <elliot@elliottower.com>
…t#33410) Following ray-project#33370, this PR adds `Result.path` and `ResultGrid.experiment_path` to the respective classes. Further, we remove the public facing `ExperimentAnalysis.local_path` and `ExperimentAnalysis.remote_path` in favor of a unified `ExperimentAnalysis.experiment_path`. Signed-off-by: Kai Fricke <kai@anyscale.com> Signed-off-by: Jack He <jackhe2345@gmail.com>
Why are these changes needed?
Following #33370, this PR adds
Result.path
andResultGrid.experiment_path
to the respective classes. Further, we remove the public facingExperimentAnalysis.local_path
andExperimentAnalysis.remote_path
in favor of a unifiedExperimentAnalysis.experiment_path
.Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.