Torch Object Storage
Item | TOS PyTorch Connector | Other tools (e.g., Python SDK and FSX) |
Performance | TOS PyTorch Connector delivers high performance, with optimizations specifically designed for loading datasets and reading and writing checkpoints. | Alternatives lack these targeted optimizations, resulting in lower performance. |
Data loading method | TOS PyTorch Connector supports streaming loading, which effectively reduces costs and overhead. | You need to pre-download or pre-warm data, which adds extra costs and management burden. |
Data access | TOS PyTorch Connector directly reads from and writes to TOS via HTTP, offering the fastest access. | FSX, for instance, adds a layer of complexity by requiring an extra protocol translation via FUSE. |
Ease of use | TOS PyTorch Connector provides simple configuration for dataset and checkpoint support with the PyTorch framework. | You need to write custom code to encapsulate datasets and checkpoints, which increases development complexity. |
Feature | Description | Related class | Method |
Map-style dataset | Enables random data access, allowing you to quickly retrieve specific samples during training. | TosMapDataset | Both TosMapDataset and TosIterableDataset support the same methods.
|
Iterable-style dataset | Supports streaming sequential access, efficiently processing large, continuous data streams. | TosIterableDataset | |
Checkpointing interface | Loads checkpoints from TOS during model training and saves checkpoints directly to TOS after each training cycle. | TosCheckpoint |
|