LLM Model Training

Updated at: 2024-04-02 05:28

You can use the LLM Model Training component to train specific large language models (LLMs) in the QuickStart module of Platform for AI (PAI).

Limits

You can use the LLM Model Training component based only on the computing resources of Deep Learning Containers (DLC).

Configure the component in the PAI console

You can configure the component parameters in Machine Learning Designer. The following table describes the parameters.

Tab

Parameter

Required

Description

Default value

Tab

Parameter

Required

Description

Default value

Fields Setting

model_name

Yes

The name of the model.

N/A

OSS directory for training output

No

If you do not configure this parameter, the default path of the workspace is used.

N/A

data for training

No

The path of the training data. You can specify a path in Object Storage Service (OSS) or MaxCompute. If you use a different component as the input source, you can skip this parameter. For information about the data format, see Example.

N/A

data for evaluation

No

Optional. The path of the evaluation data. You can specify a path in OSS or MaxCompute. If you use a different component as the input source, you can skip this parameter. For information about the data format, see Example.

N/A

Parameters Setting

learning_rate

Yes

The learning rate.

0.00001

total train epochs

Yes

The number of training iterations.

5

batch size per gpu

Yes

The training batch size for each GPU.

4

maximum sequence length

Yes

The maximum length of a sequence.

512

lora_rank

Yes

The rank that is used to manage the size and sparsity in Low-Rank Adaptation (LoRA) method.

64

gradient accumulation steps

Yes

The number of accumulated gradients before making a single weight update.

1

Tuning

GPU

No

Select a GPU-accelerated instance for the training.

N/A

Maximum Running Duration (seconds)

No

The maximum running duration of the training that uses the component.

N/A

References

  • On this page (1, T)
  • Limits
  • Configure the component in the PAI console
  • References
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare