PAI (Platform for AI) supports mounting CPFS AI Edition in DLC, DSW, and EAS. This enables single-copy storage with multi-point access for data, code, and models, keeping paths consistent across all stages without redundant copies or code changes.
Prerequisites
-
You have created a CPFS AI Edition file system.
-
CPFS AI Edition provides two access channels: VSC and VPC. The VSC channel uses the RDMA protocol and can fully utilize the file system's peak performance. The VPC channel uses the TCP protocol, with a default read bandwidth of 10 GB/s and write bandwidth of 5 GB/s per file system. For the complete performance specifications of both channels, see Product specifications. Complete the corresponding network configuration based on the resource type you use. For details about resource types, see PAI resource overview.
-
Lingjun AI computing resources: First determine whether the Lingjun resources and CPFS are in the same compute-storage affinity domain (see the instructions below). If they are in the same affinity domain, the VSC channel is used with no additional configuration required. If they are not in the same affinity domain, the VPC channel is used, and you need to create a VPC mount point for the CPFS file system.
-
General-purpose computing resources: The VPC channel is used. You need to create a VPC mount point for the CPFS file system, and the VPC used by the DLC/DSW/EAS task must be the same VPC as the VPC mount point, or the VPCs must be connected through Cloud Enterprise Network (CEN).
-
How to determine whether Lingjun and CPFS are in the same compute-storage affinity domain
-
Call DescribeFilesystemsAssociatedHpnZones, passing in the target CPFS file system ID, to obtain the list of Lingjun HPNZones that share the same compute-storage affinity domain with the file system.
-
Query the HPNZone of the Lingjun resources you plan to use through the Lingjun OpenAPI or the PAI console.
-
If the Lingjun HPNZone matches an entry in the list, the resources are in the same compute-storage affinity domain. If not, they are in different affinity domains.
Always rely on the API response as the authoritative result. Do not judge solely based on whether the availability zone or HPNZone values are the same. Compute and storage resources with the same cluster number belong to the same compute-storage affinity domain. Resources with different cluster numbers may still belong to the same affinity domain. However, Lingjun and CPFS resources in different availability zones are never in the same compute-storage affinity domain.
Mount CPFS in DLC
When creating a DLC training task, you can configure CPFS storage through direct mount or dataset mount. For the complete DLC training task configuration, see Create a training job.
-
If the resource quota is general-purpose computing resources, you must configure a VPC, and the selected VPC must be the same as the VPC of the CPFS mount point. If a VPC has not been configured for the CPFS AI Edition file system, configure it throughManage VPC mount points .
-
If Lingjun resources are used and cross-affinity-domain access occurs, the system automatically switches to the VPC access channel. You also need to create a VPC mount point for the CPFS file system.
Use Direct Mount for one-off parameter tuning. Use Dataset Mount for team collaboration or frequent task creation.
Direct Mount
-
Log on to the PAI console and go to the target workspace.
-
In the left-side navigation pane, choose Distributed Training (DLC) and click Create Task.
-
In the Environment Information section, under Storage Mount, click CPFS for AI.
-
Configure the following mount parameters:
Parameter
Description
File System
Select the CPFS AI Edition file system instance you created.
File System Mount Point
(Optional) Select the VPC mount point domain name of the CPFS file system. This is required only when the computing resources and the CPFS file system are not in the same compute-storage affinity domain. If they are in the same affinity domain, access is provided through the VSC channel directly, and you do not need to fill in this field.
For how to determine the compute-storage affinity domain, see Prerequisites.
File System Path
Specify the CPFS directory to mount.
/mounts the entire file system. You can also specify a subdirectory.Mount Path
The path within the service instance for accessing CPFS, such as
/mnt/data/.Read-only
Set the read/write permissions for the mounted directory.
-
After completing other configurations, submit the task.
Dataset Mount
To reuse storage configurations, you can use the dataset mount method. First, Create a CPFS AI Edition dataset.
-
Log on to the PAI console and go to the target workspace.
-
In the left-side navigation pane, choose Distributed Training (DLC) and click Create Task.
-
In the Dataset Mount section, click Custom Dataset.
-
Switch to the File Storage - CPFS for AI tab, select the dataset you created, and click OK.
-
Confirm the mount path and set Read-only as needed.
-
After completing other configurations, submit the task.
Mount CPFS in DSW
When creating a DSW instance, you can configure CPFS storage through direct mount or dataset mount. For the complete DSW instance configuration, see Create a DSW instance.
-
If the resource quota is general-purpose computing resources, you must configure a VPC, and the selected VPC must be the same as the VPC of the CPFS mount point. If a VPC has not been configured for the CPFS AI Edition file system, configure it throughManage VPC mount points .
-
If Lingjun resources are used and cross-affinity-domain access occurs, the system automatically switches to the VPC access channel. You also need to create a VPC mount point for the CPFS file system.
Use Direct Mount for one-off parameter tuning. Use Dataset Mount for team collaboration or frequent instance creation.
Direct Mount
-
Log on to the PAI console and go to the target workspace.
-
In the left-side navigation pane, choose Interactive Modeling (DSW) and click Create Instance.
-
In the Environment Information section, under Storage Mount, click CPFS for AI.
-
Configure the mount parameters:
Parameter
Description
File System
Select the CPFS AI Edition file system instance you created.
File System Mount Point
(Optional) Select the VPC mount point domain name of the CPFS file system. This is required only when the computing resources and the CPFS file system are not in the same compute-storage affinity domain. If they are in the same affinity domain, access is provided through the VSC channel directly, and you do not need to fill in this field.
For how to determine the compute-storage affinity domain, see Prerequisites.
File System Path
Specify the CPFS directory to mount.
/mounts the entire file system. You can also specify a subdirectory.Mount Path
The path within the service instance for accessing CPFS, such as
/mnt/data/Read-only
Set the read/write permissions for the mounted directory.
-
After completing other configurations, create the instance.
Dataset Mount
Datasets save storage configurations for reuse across multiple tasks. First, Create a CPFS AI Edition dataset.
-
Log on to the PAI console and go to the target workspace.
-
In the left-side navigation pane, choose Interactive Modeling (DSW) and click Create Instance.
-
In the Dataset Mount section, click Custom Dataset.
-
Switch to the File Storage - CPFS for AI tab, select the dataset you created, and click OK.
-
After completing other configurations, create the instance.
Mount CPFS in EAS
When deploying an EAS service, you can configure CPFS storage through direct mount. For the complete EAS service configuration, see Custom deployment.
-
EAS supports only direct mount and does not support dataset mount. If the resource quota is set to general-purpose computing resources, you must configure a VPC, and the selected VPC must be the same as the VPC of the CPFS mount point. If a VPC has not been configured for the CPFS AI Edition file system, first Manage VPC mount points.
-
If Lingjun resources are used and cross-affinity-domain access occurs, the system automatically switches to the VPC access channel. You also need to create a VPC mount point for the CPFS file system.
-
Log on to the PAI console and go to the target workspace.
-
In the left-side navigation pane, choose Elastic Algorithm Service (EAS) and select the Inference Service tab.
-
Click Deploy Service > Custom Deployment.
-
In the Environment Information section, under Storage Mount, click CPFS for AI.
-
Configure the following mount parameters:
Parameter
Description
Storage Permission Resource Group
Select the storage permission resource group.
File System
Select the CPFS AI Edition file system instance you created.
File System Path
Specify the CPFS directory to mount.
/mounts the entire file system. You can also specify a subdirectory.Mount Path
The path within the service instance for accessing CPFS, such as
/mnt/data/.Read-only
Set the read/write permissions for the mounted directory.
-
After completing other configurations, deploy the service.
Create a CPFS AI Edition dataset
A dataset is a template of storage configurations that records file system, directory path, mount path, and other information. After creation, it can be reused by multiple DLC/DSW tasks, eliminating the need for repetitive configuration.
EAS does not support dataset mount.
-
Log on to the PAI console, go to the target workspace, and choose AI Asset Management > Datasets.
-
On the Custom Datasets tab, click Create Dataset and configure the following parameters:
Section
Parameter
Description
Dataset Configuration
Name
The dataset name.
Dataset Type
Select Basic.
Storage Type
Select File Storage (CPFS for AI).
Content Type
Select the data type: Image, Text, Audio, Video, Table, or General.
Version Configuration
Storage Permission Resource Group
Select the resource group that has access permissions to the target CPFS file system.
File System
Select the CPFS AI Edition file system instance you created.
File System Path
Specify the directory in CPFS.
/mounts the entire file system. You can also specify a subdirectory such as/datasets/trainDefault Mount Path
The path within the service instance for accessing CPFS, such as
/mnt/data/. -
Click Confirm.