Updated on 2025-05-29 GMT+08:00

Code Directory

Description

Code directory required for this training job. Upload the code to an OBS bucket beforehand. For details, see OBS Getting Started

The total size of files in the directory cannot exceed 5 GB, the number of files cannot exceed 1,000, and the file path cannot exceed 32 levels. If there is a pre-trained model, put it in the code directory.

For details about how to install Python dependencies, see How Do I Create a Training Job When a Dependency Package Is Referenced by the Model to Be Trained?

Take OBS path obs://obs-bucket/training-test/demo-code as an example. The content in the OBS path will be automatically downloaded to ${MA_JOB_DIR}/demo-code in the training container, and demo-code (customizable) is the last-level directory of the OBS path.