Getting Started with Training: Training a Model with One Click
Scenario
This case is only available in the new console.
To lower the usage threshold and enhance user experience, we provide one-click training cases on the ModelArts console. Currently, ModelArts supports SFT and LoRA fine-tuning for the Qwen3-8B, Qwen3-32B, and Qwen3-30B-A3B models, helping you quickly master the model training functions of ModelArts.
After the model training is successful, you can directly use the model for subsequent operations such as model deployment, or create a model again on the training job creation page by referring to this training process as required.
Prerequisites
- You have registered a Huawei Cloud account, completed real-name authentication, and been granted related permissions. For details, see 1. Prerequisites: Accounts and Permissions.
- To use one-click model training, you need to configure the ModelArts FullAccess permission. Otherwise, you cannot access OBS. For details, see Configuring Common Operations Permissions for ModelArts.
Constraints
One-click training is supported only on the new console.
Billing
Model training in ModelArts uses compute and storage resources, which are billed. Compute resources are billed for running training jobs. Storage resources are billed for storing data in OBS or SFS. For details, see Model Training Billing Items.
Procedure
- Log in to the ModelArts console.
- In the navigation pane, choose Getting Started. In the Popular Models area, select a model that supports training. If Popular Models is unavailable in the current region, switch to another region. Click Train on the card. The page for creating a training job is displayed.
Currently, the following models support one-click training.
Table 1 Models that support one-click training Model Name
Model Type
Description
Qwen3-8B
Dense model
This model supports seamless switching between thinking and non-thinking modes. You can switch between the two as needed during a dialog. The model's inference capability reaches the SOTA level among models of the same scale in the industry, and its general capability significantly surpasses that of Qwen2.5-7B.
Qwen3-32B
Dense model
This model supports seamless switching between thinking and non-thinking modes. You can switch between the two as needed during a dialog. The model's inference capability significantly outperforms that of QwQ, and its general capability far exceeds that of Qwen2.5-32B-Instruct, achieving SOTA performance among models of the same scale in the industry.
Qwen3-30B-A3B
Sparse MoE model
This model supports seamless switching between thinking and non-thinking modes. You can switch between the two as needed during a dialog. The model's inference is on par with that of QwQ-32B, but with fewer parameters needed, and its generalization capabilities far exceed that of Qwen2.5-14B. It delivers state-of-the-art performance equal to other models of a similar scale.
- Quickly configure basic information.
Table 2 Configuring parameters Parameter
Description
Default Value
Model
Create a model on which the training job depends.
Selected model
Name
Job name, which is mandatory.
The system automatically generates a name. You can rename it based on the following naming rules:
- The value can contain 1 to 128 characters.
- Only letters, digits, hyphens (-), and underscores (_) are allowed.
Generated randomly
Training Method
Training method used to create a training job.
LoRA fine-tuning
Training Framework
Training framework used to create a training job.
MindSpeed
Model Output Path
Checkpoints and model assets generated by this training task will be saved to this path. You can select the target group in either of the following ways:
Method 1: You can click the icon on the right of the OBS address bar and select the target OBS bucket in the displayed dialog box. If no OBS bucket is available, click Create Bucket to go to the OBS console and manually create an OBS bucket. After creating an OBS bucket, create a folder in the bucket to store the model generated after training.
Method 2: You can manually enter an OBS bucket address. OBS address requirements: The storage address must start with obs:// or / and end with a slash (/). It cannot contain double slashes (//) except in the prefix. For example, obs://bucketname/path/ or /bucketname/path/.
obs://bucketname/path/
Asset Name
Name of the model asset to be published after training. Naming rules:
- Enter 1 to 128 characters.
- Only letters, digits, hyphens (-), and underscores (_) are allowed. The name must start with a letter and end with a letter or digit.
Original model name + Timestamp
Resource Pool Type
- Public resource pool: The public resource pool is available for all tenants and does not require user creation.
- Dedicated resource pool: Dedicated resource pools are created separately and used exclusively. For details, see Creating a Dedicated Resource Pool.
Public resource pool
Resource Pool
This parameter appears only for dedicated resource pools. In the Resource Pool section, click Select Resource Pool and choose your desired dedicated resource pool or logical subpool from the menu on the right. Click OK.
You can view the dedicated resource pool name, node pool specifications, number of available nodes/maximum number of nodes, number of available NPU/GPUs, available CPUs (vCPUs), available memory (GiB), and resource fragments. Hover over View in the Resource Fragment column to check fragment details and check whether the resource pool meets the training requirements.
Once you choose a resource pool, its details appear. To choose a different one, click Reselect.
-
Instance Specifications
Resource instance specifications used to create a training job.
Determines the hardware specifications for the training instances. For Dedicated resource pool, you must select a pool first. For Public resource pool, select a specification directly from the list.
8 * Ascend-snt9b2 | 192 vCPUs | 1536 GiB | ARM (modelarts.bm.npu.arm.8snt9b2) or higher specifications are recommended.
8 * Ascend-snt9b2 | 192 vCPUs | 1536 GiB | ARM(modelarts.bm.npu.arm.8snt9b2)
Instances
Number of resource instances used to create a training job.
The value range displayed on the GUI is related to the instance specifications.
1
Select Dataset
Dataset used for creating a training job. You can choose Preset Data or My Data. In this example, choose a ModelArts preset dataset.
First dataset option
More Settings
Environment variables of the training job. For details, see More Training Parameters.
The parameters are set by default.
- Confirm the configuration and price, and click OK. The model training job list page is displayed.
A training job runs for a period of time. On the training job list page, view the basic information about the training job.
- In the training job list, Status of a newly created training job is Pending.
- When the status of a training job changes to Completed, the training job is finished, and the generated model is stored in the corresponding output path.
- If the status is Failed or Abnormal, click the one-click training job name to go to the job details page, and view information such as the model output, task details, events, logs, and resource usage.
After the model training is successful, you can directly use the model for subsequent operations such as model deployment, or create a model again on the training job creation page by referring to this training process as required.
FAQ
For details about common errors and solutions, see Table 3.
| Common Error | Symptom | Possible Cause | Solution |
|---|---|---|---|
| The dataset list is empty when a training job is created. | When a training job is created, the dataset selection box is empty, and no training dataset is available. | The dataset is not published. | Create a training dataset corresponding to the model and publish the dataset in advance. |
| Message "root: XXX valid number is 0" is displayed in training logs. | Message "root: XXX valid number is 0" is displayed in logs, indicating that the number of valid samples in the training set or validation set is 0. For example: INFO: root: Train valid number is 0. | The number of valid samples in the dataset is 0. The possible causes are as follows:
| Check whether the data has been labeled and whether data labels meet algorithm requirements. |
| Message "ValueError: label_map not match" is displayed in training logs. | The training log contains "ValueError: label_map not match" and the label data, for example: ValueError: label_map not match. {1:'apple', 2:'orange', 3:'banana', 4:'pear'} & {1:'apple', 2:'orange', 3:'banana'} | The number of labels in the training set is different from that in the validation set. For example, there are four labels in the training set, and there are only three in the validation set. | Ensure that the number of labels in the training set is the same as that in the validation set. |
| A message is displayed indicating that you do not have the permission to access the OBS bucket. | OBS-related permissions, such as the OBS action obs:bucket:ListAllMyBuckets, have been manually added. However, the system still displays a message indicating that OBS cannot be accessed. | The OBS authorization scope required for ModelArts training is insufficient. | Configure the ModelArts FullAccess permission by referring to "Prerequisites." |
More Training Parameters
| Parameter | Description | Configuration Suggestion | Default Value |
|---|---|---|---|
| LR | The learning rate is the step size used by the optimizer (such as AdamW) to update the model weights. It controls the magnitude of each update to the model parameters and is a core hyperparameter that affects the convergence speed and training stability.
|
| 1.25e-6 |
| MIN_LR | Lower bound of the learning rate scheduler decay. The learning rate will not drop below this value during the entire training process. As the learning rate continuously decays in the later stages of training, MIN_LR determines the end point of the decay:
|
| 1.25e-7 |
| RUN_TYPE | Training method for fine-tuning. Common values include:
|
| lora |
| MODEL_NAME | Name of the model to be trained. | Determined by the model selected by training job type. No manual configuration is required. | qwen3_8b |
| SEQ_LEN | Maximum sequence length (in tokens) that the model can process in a single computation. Samples exceeding this length will be truncated. SEQ_LEN determines the context window that the model can learn from:
|
| 4096 |
| LR_WARMUP_RATIO | Ratio of learning rate warmup steps to the total number of training steps. The platform calculates the number of warmup steps using the formula: LR_WARMUP_ITERS = TRAIN_ITERS × LR_WARMUP_RATIO. At the beginning of training, the learning rate rises linearly from a very small value (near 0) to the target LR:
|
| 0.01 |
| DATA_TYPE | Dataset template and preprocessing method. They must strictly match the actual format of the data file. Different handlers parse data columns differently:
|
| AlpacaStyleInstructionHandler |
| EPOCH | Number of training epochs, that is, how many times the complete training dataset is traversed and learned. One epoch means each training sample is trained once:
|
| 4 |
| GBS | Global batch size (GBS), which refers to the total number of samples processed by all machines and all cards in a single training step. It is equal to the single-card batch size multiplied by the number of cards (including gradient accumulation). GBS determines the number of samples for gradient estimation in each step:
|
| 16 |
| LORA_R | Rank of the low-rank matrices added in LoRA. It determines the dimensionality of trainable parameter matrices (i.e., the number of additional parameters). This rank is used to measure the complexity and information capacity of the matrices.
|
| 16 |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot