property Checkpoint.uri: Optional[str]#

Return checkpoint URI, if available.

This will return a URI to cloud storage if this checkpoint is persisted on cloud, or a local file:// URI if this checkpoint is persisted on local disk and available on the current node.

In all other cases, this will return None. Users can then choose to persist to cloud with Checkpoint.to_uri().


>>> from ray.air import Checkpoint
>>> checkpoint = Checkpoint.from_uri("s3://some-bucket/some-location")
>>> assert checkpoint.uri == "s3://some-bucket/some-location"
>>> checkpoint = Checkpoint.from_dict({"data": 1})
>>> assert checkpoint.uri == None

Checkpoint URI if this URI is reachable from the current node (e.g. cloud storage or locally available file URI).