Create Training
1. Go to the creation page
- Go to Training > Workloads.
- On the Personal Tasks tab, click Create.
2. Configure General Settings
First, complete the shared basic settings for PyTorchJob and RayJob. The task type determines the specific settings that must be added later.Basic information
Environment Information
The runtime environment determines which image the training container uses, which inputs it reads, where it writes outputs, and which cmd it executes after startup. Before creating it, ensure that the image, code path, data path, and output path are ready.COMPUTE Resources
Compute resources determine the type of resources used by a task, the number of replicas to launch, and the CPU/GPU resources requested by each replica. We recommend completing the configuration in the following order: Resource Type -> Replicas -> Instance Spec -> Quota and Scheduling. 1. Select Resource Type Different resource types affect the available instances, quota validation, resource guarantees, and interruption risks. Select a resource type as needed.
2. Configure Replicas
-
PyTorchJob
PyTorchJob has a fixed master node count of
1, while the number of worker nodes can be set to0. The master node and worker nodes use the same specifications. For distributed training, the number of worker nodes affects the number of replicas that must be scheduled simultaneously. For the total number of task replicas, PyTorchJob typically calculates the number of replicas that must be scheduled simultaneously as1 + number of worker nodes. - RayJob RayJob configures the Head and Worker separately. The number of Heads and their resources are specified in the Ray form, while the number of Workers determines the scale of worker nodes. For the total number of task replicas, RayJob resources are calculated separately for the Head and Worker.
Resource quantities are calculated based on the role configuration. The specification values on the page are for displaying the resources of a single selected instance specification only. Actual resource quantities depend on the selected specification and number of replicas.
4. Confirm Quota and Scheduling
Before submitting, do not consider only whether an individual instance specification is available; also confirm that the entire task can be scheduled simultaneously.
Priority affects task queuing and scheduling order and may also affect outcomes in resource contention. For more details about low-cost resources, Guarantee, node scheduling policies, and preemption, see Training Advanced Config.
Advanced Options
3. Complete the configuration based on the Task Type
PyTorchJob
PyTorchJob is suitable for running single-node or distributed training jobs based on PyTorch. After completing the general configuration, check carefully whether cmd can correctly start the training script. For PyTorchJob multi-node multi-GPU training, you can use the platform-injected distributed training environment variables in the startup command:
The platform also injects task context-related TaskEnv, such as
X_USER_NAME, X_ORG_NAME, X_TENANT_ID, X_REGION, X_CLUSTER, and TASK_UUID. If the training script needs to record the task source, region, cluster, or unique task identifier, it can read these variables.
Example:
--nproc_per_node based on the actual number of GPUs per node, and replace train.py with the actual training script.
RayJob
RayJob is suitable for running Ray-based distributed training, scheduling, or parallel computing tasks. After completing the general configuration, pay particular attention to the Head / Worker, Runtime Env, shared storage, and autoscaling settings.
After selecting RayJob, pay attention to how Ray is run and its resource usage:
- A RayJob consists of one Head Pod and multiple Worker Pods.
- The number of Worker Pods is determined by the number of Workers specified in the creation form. The total number of resource-consuming Pods is typically
number of Workers + 1. - User code logs for a RayJob are typically viewed through the Submitter Pod.
- For Ray cluster logs, view the Head Pod or Worker Pods.
- The startup command for a RayJob is typically a Ray entrypoint, such as
python main.py.

