preload

Function

Preloads data objects saved using Torch from a file and saves the data objects to the high-performance MemFS of MindIO ACP.

Format

mindio_acp.preload(*path)

Parameters

Parameter

Mandatory/Optional

Description

Value

path

Mandatory

Preloaded source file, which must exist.

Valid file path or path set

Usage Example

>>> # preload from file
>>> mindio_acp.preload('/mnt/dpc01/checkpoint/rank-0.pt')

Return Value

  • 0: Preloading succeeded.
  • 1: Preloading failed.