- Documentation
Torch Object Storage
Tool Guide
TOS PyTorch Connector
Using TOS PyTorch Connector
TosCheckpoint
Using TOS PyTorch Connector
TosCheckpoint
TosCheckpoint
This topic explains how to read and write checkpoints directly from TOS using TosCheckpoint.
The TosObjectWriter() method of TosCheckpoint allows you to write data to checkpoints.
Before using it, you must configure the parameters for TosCheckpoint. For more information, see Passing credentials. The following example demonstrates how to write checkpoints using TosCheckpoint in PyTorch. Replace the parameters, such as region, endpoint, AK, and SK, with the values you need.
The TosObjectReader() method of TosCheckpoint allows you to read checkpoints from TOS.
Before using it, you must configure the parameters for TosCheckpoint. For more information, see Passing credentials. The following example demonstrates how to read checkpoints from TOS using TosCheckpoint in PyTorch. Replace the parameters, such as region, endpoint, AK, and SK, with the values you need.
Last updated: 2026.03.23 11:37:42