[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>
justinvyu
left a comment
There was a problem hiding this comment.
Thanks! Just added a few questions:
| setattr(self, attr, value) | ||
|
|
||
| @property | ||
| def path(self) -> Optional[str]: |
There was a problem hiding this comment.
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.
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.
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.pathandResultGrid.experiment_pathto the respective classes. Further, we remove the public facingExperimentAnalysis.local_pathandExperimentAnalysis.remote_pathin favor of a unifiedExperimentAnalysis.experiment_path.Related issue number
Checks
git commit -s) in this PR.scripts/format.shto lint the changes in this PR.