All Products
Search
Document Center

Platform For AI:Create a training job

Last Updated:Nov 20, 2026

Reinforcement Learning Studio (RLS) is a high-performance, fully observable training platform that Platform for AI (PAI) provides for reinforcement learning (RL), especially Agentic RL scenarios. This topic provides a getting-started example and a reference for all console parameters.

Getting started

In the single-turn mathematical reasoning (Math) scenario, use a public math dataset and a Qwen base model to configure and submit a GRPO (Group Relative Policy Optimization) training job in RLS. During training, use full observability to view Reward and evaluation metric trends. This lets you quickly walk through the complete flow from job submission to performance evaluation. For more information, see Reinforcement learning practice for single-turn mathematical reasoning with GRPO.

Console parameter reference

The form on the Create a training job page consists of the following four configuration sections.

  • Basic information: Covers the job name, task description, and tags used to identify and manage jobs.

  • Sampling configuration (Rollout): Determines how the model runs inference, interacts with the environment, and generates trajectory data (Trajectory). These settings directly affect sampling quality, duration, and computing overhead.

  • Training configuration (Train): Determines how the policy is updated based on trajectories, which affects training stability and convergence.

  • Resource and scheduling configuration: Covers the scheduling mode, the resource quotas required for sampling and training, the sandbox service, and environment variables.

Basic information

Parameter

Description

Job Name

Set an easily identifiable name for the job.

Job Template

After you select a template, the training parameters are auto-populated. Adjust them as needed.

Task Description

Use this field to describe the purpose, background, or other context of the job.

Tag

Apply standardized tags to your jobs. Tags provide the foundation for archiving jobs by label, analyzing job distribution, and tracking resource consumption.

Sampling configuration (Rollout)

Parameter

Description

Dataset Source

Two options are available: Preset and Custom.

  • Preset: Select a dataset directly from the Public Dataset drop-down list. Public datasets are automatically mounted, and training files use paths inside the mount directory.

  • Custom: For Dataset Data Source, select a custom dataset, OSS, NAS, or CPFS, and then configure the URI and mount path for each data source.

    For more information, see Dataset specification.

Training Data File Path

Enter the actual file path inside the container after mounting, with one path per line. Example: /mnt/data/train.jsonl.

Validation Data File Path

Enter the actual file path inside the container after mounting, with one path per line. Example: /mnt/data/val.jsonl.

Parameter configuration: Sampling parameters and advanced inference parameters

Parameter configuration supports three methods: Form Configuration, JSON Configuration, and YAML Configuration. The following tables in this topic describe the parameters on the Form Configuration tab.

Note

The RLS built-in engine is compatible with the verl framework. To enable additional parameters, add them in the JSON or YAML configuration.

Parameter

Description

Valid values

Impact of changes

Samples per Prompt

The number of responses (trajectories) sampled from each prompt. This is the number of samples in the group and also the group size used for GRPO advantage estimation.

Positive integer. Example value: 16.

  • Increase: The baseline estimate within the group is more stable and sample diversity is higher, but sampling requires more computing resources and time.

  • Decrease: Sampling is faster, but the variance of advantage estimation increases.

Sampling Temperature

The sampling temperature. Controls the randomness of generation.

0 to 2. Example value: 1.0.

  • Increase: Exploration is stronger and diversity increases, but generation quality fluctuates more.

  • Decrease: Output is more deterministic and easier to converge, but exploration may be insufficient, which can cause entropy collapse.

Top-p Sampling

The nucleus sampling threshold. Truncates candidate tokens by cumulative probability.

(0, 1]. Example value: 1.00.

  • Decrease: Truncates long-tail candidate tokens. Generation is more conservative and stable.

  • Increase: Retains more candidate tokens. Diversity increases.

Max Prompt Length (Tokens)

The maximum number of tokens in the input prompt. Content that exceeds the limit is truncated or discarded according to the rules.

Unit: tokens. Example value: 4096.

Must match the model context length and the data distribution. A value that is too small truncates long inputs and degrades sampling quality.

Max Response Length (Tokens)

The maximum number of tokens generated in a single response.

Unit: tokens. Example value: 4096.

  • Increase: Accommodates longer chain-of-thought (CoT) outputs, but GPU memory usage and duration increase.

  • Decrease: Long answers are truncated, which may distort Reward.

Max Assistant Turns

The maximum number of interaction turns allowed in a single agent trajectory. This parameter takes effect only for agent tasks and is key to multi-turn Agentic scenarios.

Unit: turns. Example value: 50.

  • Increase: Long-horizon tasks can complete, but sampling time and cost increase and timeouts are more likely.

  • Decrease: Complex tasks are difficult to complete.

Max Length per Turn (Tokens)

The maximum number of tokens the agent generates in each turn.

Unit: tokens. Example value: 4096.

Controls the output length of each turn. A value that is too small truncates the action or reasoning content of a turn.

Rollout Timeout (s)

The timeout for Agent Rollout execution, in seconds. Corresponds to the rollout_timeout parameter. A rollout that exceeds the timeout is marked as failed or as a slow sample.

Unit: seconds. Example value: 3600.

  • Increase: Tolerates slower environments, but the risk of idle waiting increases.

  • Decrease: Fails fast and reduces wasted computing resources, but may prematurely terminate normal long-running tasks.

Agent Task Timeout (s)

The agent client timeout, in seconds. Corresponds to the client_timeout parameter.

Unit: seconds.

Works with Rollout Timeout (s) to control the timeout policy for agent tasks. Set this value based on the environment response time.

Agent Task Retries

The number of retries after a single trajectory or environment execution fails.

Unit: retries. Example value: 2.

A larger value increases the trajectory success rate but extends the overall sampling duration.

Tensor Parallel Size

The tensor parallel size in the inference (Rollout) stage. Determines the number of GPUs used by a single inference replica.

Positive integer. Example value: 2.

A larger value fits larger models and reduces per-request latency, but parallel communication overhead increases and per-GPU throughput may drop.

Training configuration (Train)

Parameter

Description

Model Source

For Preset, select a model directly from the Preset Model drop-down list. No manual mounting is required. For Custom, first select and mount a data source from the Model Data Source drop-down list, and then enter the Name and Container Path.

Training Mode

Currently, Full Tuning and LoRA are supported.

Parameter configuration: Training parameters and advanced parallelism parameters

Training parameters control how the policy updates the model based on trajectories, and affect training stability and convergence. Parameter configuration supports three methods: Form Configuration, JSON Configuration, and YAML Configuration. The following tables in this topic describe the parameters on the Form Configuration tab.

Parameter

Description

Valid values

Impact of changes

Algorithm Type

Select the reinforcement learning algorithm.

GRPO.

The engine is currently optimized for the GRPO algorithm. Other algorithms will be available soon.

Training Batch Size (Prompts)

The number of samples (trajectories) used in each parameter update.

Positive integer. Example value: 128.

  • Increase: Gradients are more stable, but GPU memory usage increases and each step takes longer.

  • Decrease: Update noise increases, but resources are saved.

Actor Learning Rate

The learning rate of the Actor (policy model).

Floating-point number. Example value: 1e-6.

RL post-training typically uses a very small value. A larger value can cause KL divergence spikes and training divergence. A smaller value slows convergence.

Pos Clip Range

The upper bound of the GRPO clip range. Corresponds to the actor_rollout_ref.actor.use_grpo.pos_clip_range parameter.

Floating-point number. Example value: 0.27.

Controls the update magnitude for upward policy changes. A value that is too large makes updates too aggressive, and training can collapse.

Neg Clip Range

The lower bound of the GRPO clip range. Corresponds to the actor_rollout_ref.actor.use_grpo.neg_clip_range parameter.

Floating-point number. Example value: 0.20.

Controls the update magnitude for downward policy changes. Works with the positive clip range to constrain the update step size.

Total Training Steps

The total number of training steps.

Unit: steps. Example value: 1000.

Determines the training duration and how thoroughly the model is trained. Must match the data scale and Training Batch Size.

Max Gradient Norm

The norm threshold for gradient clipping.

Floating-point number. Example value: 1.0.

Prevents gradient explosion. A value that is too small restricts updates, and a value that is too large loses the protective effect.

Shuffle Training Data

Specifies whether to shuffle the order of the training data during training. Corresponds to the trainer.train_shuffle parameter.

Service Default, Enabled, or Disabled. Example value: Service Default.

Shuffling helps with decorrelation, but has limited impact on online RL sampling.

lora.rank

The "capacity" of LoRA

Positive integer. Recommended values: 8, 16, or 32 (common). Default: 8.

The larger the value, the more trainable parameters there are and the more complex the adjustments the model can learn. However, training becomes slower and uses more GPU memory. A value of 0 means LoRA is not used and full-parameter training is applied instead. The default value of 8 is sufficient for most tasks. Increase it gradually if the results are insufficient.

lora.alpha

The "strength" of LoRA updates

Positive integer. Recommended value: 16 (default).

The effective strength is alpha / rank. For example, when alpha=16 and rank=8, the strength is 2. When you adjust rank, adjust alpha accordingly so that the strength stays the same. Set alpha to 1 to 2 times rank, such as alpha=32 or 64 when rank=32.

lora.dropout

Randomly drops part of the LoRA input during training to prevent the model from memorizing the training data. A value of 0 means no dropout.

Floating-point number. Recommended value: 0 (default).

Keep 0 for reinforcement learning scenarios. For supervised fine-tuning (SFT) on small datasets where overfitting occurs, try 0.05.

lora.target_modules

Selects the model modules that LoRA applies to. Enter Megatron internal module names here, not Hugging Face names such as q_proj.

Recommended value: leave empty. The default covers all linear layers in attention + MLP, which suits most scenarios.

To adjust only the attention part, enter two lines: linear_qkv and linear_proj.

Parameter

Description

Checkpoint OSS Output Directory

Select the OSS directory used to save checkpoints. After you select a directory, the system automatically mounts it in read-write mode, and you can modify the container path below.

CKPT Storage Path

The path where the checkpoint is saved inside the container, which is the container path where the OSS directory is mounted.

Save Frequency (Steps)

The number of training steps between checkpoint saves. Default value: 20.

Resource and scheduling configuration

Parameter

Description

Scheduling Mode

Determines how the sampling (Rollout) and training (Train) stages are organized at runtime. The following two modes are supported:

  • Decoupled training and inference: DisaggregateAsync (fully asynchronous mode)

    Sampling and training run independently and must use the same GPU model. Resources are configured as two separate groups: Sampling (Inference) Resources and Training Resources.

    Use Maximum Model Version Gap to control the maximum number of versions by which the sampling data can lag behind the current training model. Default value: 3. A smaller value keeps sampling closer to on-policy and makes training more stable. A larger value increases sampling throughput but raises the off-policy risk.

  • Colocated synchronization: ColocateSync (colocated mode)

    Sampling and training share the training resource pool. Resources are merged into one group and configured as Sampling + Training Resources (Colocated).

Resource Quota

Select a subscription resource quota that you have purchased from the drop-down list. GPU models such as PPU M890P, H100, H200, and L20X are recommended.

Number of Nodes

The number of nodes used by this resource group. Default value: 1.

GPU per Node (Cards)

The number of GPUs allocated to each node.

CPU per Node (Cores)

The number of CPU cores allocated to each node.

Memory per Node

The memory size allocated to each node. Unit: GiB.

Sandbox Service

Select a PAI-EAS Instant Service in the Running state from the drop-down list. The system automatically schedules the service for agent tasks to interact with the environment during the sampling stage.

Important

To use an EAS Instant Service in RLS, you must complete the enterprise image configuration when you create the service. Currently, only Harbor is supported. Otherwise, the service is unavailable.

Environment Variable

Click Add Environment Variable to configure environment variables for the job as variable name and variable value key-value pairs, such as PYTHONPATH. The variable name cannot be empty and cannot be duplicated.

Note

To observe training metrics through Weights & Biases (W&B), configure the WANDB_BASE_URL and WANDB_API_KEY environment variables.

What to do next

Use the job observability feature to view the job status, pipeline efficiency, and training effectiveness, and to troubleshoot exceptions when errors occur. For more information, see Job observability: Module introduction.