Training function utilities#
Call these ray.train APIs from inside your training function to report metrics and checkpoints, read the training context, and get dataset shards. The collective operations live in ray.train.collective.
Classes#
A reference to data persisted as a directory in local or remote storage. |
|
The manner in which we want to upload the checkpoint. |
|
Read semantics for checkpoint retrieval during an ongoing run. |
|
Abstract interface for training context. |
|
Protocol for a function that validates a checkpoint. |
|
Configuration for a specific validation task, passed to report(). |
Information about an imminent preemption event. |
Functions#
Get all the reported checkpoints so far. |
|
Access the latest reported checkpoint to resume from if one exists. |
|
Get or create a singleton training context. |
|
Returns the |
|
Return the imminent preemption info for the current worker, or |
|
Report metrics and optionally save a checkpoint. |
Collective operations#
Create a barrier across all workers. |
|
Broadcast small (<1kb) data from the rank 0 worker to all other workers. |