Training set and evaluation set

Updated at:

Datasets are the foundation of model training and evaluation. The Alibaba Cloud Model Studio Data Management feature helps you efficiently create and manage datasets.

Dataset overview

The Data Management feature of Alibaba Cloud Model Studio centrally manages all large-model-related datasets in your business space. Datasets fall into two types: training sets (for model fine-tuning, supporting SFT/DPO/CPT/RL/OPD) and evaluation sets (for model evaluation).

Training sets support 7 training scenarios: text generation, visual understanding, I2V (first frame), I2V (first and last frame), text-to-image, image-to-image, and model decision. Evaluation sets support text generation (two sample formats: single-turn and multi-turn), as well as multimodal scenarios such as visual understanding, text-to-image, image-to-image, and I2V (first frame/first and last frame), for multimodal model evaluation. The dataset type cannot be changed after creation, so choose carefully based on the downstream use.

Dataset names can be up to 50 characters long (Chinese, English, digits, underscores, hyphens, and periods are supported), and descriptions up to 200 characters. Creating or publishing empty datasets is not supported. There is no limit on the number of datasets you can create, and no upper bound on the amount of data you can import.

DPO/CPT training methods and cloud storage mounting are supported only in the Beijing region.

Training methods and scenarios

Training sets support five training methods, which differ in applicable scenarios and minimum data volume requirements:

  • SFT (supervised fine-tuning): instruction fine-tuning that teaches the model to solve specific tasks. A data volume of thousands of entries or more is recommended. Available on all sites.
  • DPO (direct preference optimization): preference alignment training. A data volume of hundreds of entries is recommended.
  • CPT (continued pre-training): domain knowledge injection. A data volume of at least 50 million Tokens is recommended.
  • RL (reinforcement learning): optimizes policies through reward signals to improve the model's reasoning and decision-making capabilities. For training methods and data specifications, see reinforcement learning.
  • OPD (distillation training): online policy distillation, which aligns the student model with the teacher model on its own sampled trajectories. For training methods and data specifications, see OPD distillation training.

All training sets are published immediately upon submission for creation; saving them as drafts first is no longer supported. Historically created draft versions can still be edited online or deleted. For RL and OPD data volume recommendations, see the corresponding dedicated training guides.

Training method

Purpose

Recommended data volume

Site availability

SFT

Supervised fine-tuning (instruction fine-tuning)

1,000+ entries

All sites

DPO

Direct preference optimization (preference alignment)

100+ entries

Beijing region

CPT

Continual pre-training (domain knowledge)

50 million tokens

Beijing region

RL

Reinforcement learning (reward-signal optimization)

-

-

OPD

Distillation training (online policy distillation)

-

-

Import methods

The console creation form provides three import methods (Upload Local File, import from OSS, and Log ingestion), plus API upload as a separate channel (not offered in the creation form). The applicable scenarios and prerequisites are as follows:

  • Upload Local File: no prerequisites; directly upload local files, suitable for small batches of data.
  • Import from OSS: requires adding the tag bailian-datahub-access=read to the target Bucket, suitable for large batches of data. Evaluation sets do not support this method.
  • Log ingestion: automatically extracts training data from SLS inference logs; requires granting a service-linked role, forming an inference → data → fine-tuning enhancement loop.
  • API upload (a separate channel not offered in the creation form): programmatically uploads data files through the Model Studio API, suitable for scenarios that require automated integration. For more information, see Use API or CLI for model fine-tuning.

For the complete limitations of log backflow (30-day range, 100,000 entry limit, API Key/model filter) and authorization requirements, see the Log backflow topic.

Imported data is automatically encrypted with OSS server-side encryption (SSE-OSS, AES256). Log backflow is available. For the complete list of restrictions, see Dataset overview.

Import method

Prerequisites

Applicable scenario

Evaluation set supported

Local upload

None

Small batches of data

Supported

OSS import

Bucket tag bailian-datahub-access=read

Large batches of data

Not supported

Log backflow

Authorization + API Key/model filter

Build training data from inference logs

Supported (text generation prompt&completion format only)

WarningLog backflow requires authorizing a service-linked role first. For complete limitations and operational details, see the Log backflow topic.

Data Preparation

Preparing high-quality data is key to model fine-tuning results. For the recommended data volumes of each training method (SFT/DPO/CPT text generation), see Tuning data upload rules.

There are no official recommended data volumes for visual understanding and image-to-video training sets; prepare sufficient samples based on your actual scenario.

Data format and templates

For the data file format specifications of each training scenario (SFT text/visual understanding (image/video → text), DPO, CPT, evaluation sets), see Tuning data upload rules.

On the Data Management dataset creation page, download the data template for the corresponding scenario; preparing data according to the template structure can prevent import failures. Evaluation sets support the Text generation (prompt&completion) single-turn format and the Text generation (ChatML-messages) multi-turn dialogue format; evaluation sets for multimodal scenarios (visual understanding, text-to-image, text-to-image, image-to-image, and image-to-video) are in Zip archive format. For detailed field specifications and examples, see Tuning data upload rules - Evaluation set format.

For data diversity and augmentation strategies, see the model fine-tuning documentation. For evaluation sets, prepare an independent set of non-overlapping data to objectively assess model generalization.

Create a dataset

Before creating a dataset, the following prerequisites must be met: Model Studio service is activated; for OSS import, add the tag bailian-datahub-access=read to the target bucket; for log backflow, authorize a service-linked role.

On the Data Management > Dataset list page, click Create Dataset to enter the standalone creation page, then follow these steps:

  1. Enter a dataset name (up to 50 characters) and a description (up to 200 characters, optional).
  2. Select the dataset type: Training Set or Evaluation Set (cannot be changed after creation).
  3. Select the training scenario: training sets support text generation, visual understanding, I2V (first frame), I2V (first and last frame), text-to-image, image-to-image, and model decision; for evaluation sets, select a sample format or scenario here — Text Generation (ChatML-messages) (multi-turn), Text Generation (prompt&completion) (single-turn), or multimodal scenarios such as Visual Understanding, Text-to-Image, Image-to-Image, I2V (First Frame), and I2V (First and Last Frame) (when you switch scenarios, the data format description and sample downloads update accordingly).
  4. Select the training method: SFT, DPO, CPT, RL, or OPD (only required for training sets; evaluation sets do not have this configuration).
  5. Select the data format: Jsonl format or Excel format. The file types for evaluation sets depend on the sample format: ChatML-messages supports jsonl, xls, and xlsx (200 MB max per file); prompt&completion supports only xls and xlsx (20 MB max per file); multimodal scenarios use Zip archives (2 GB max per file, with data.jsonl at the root of the archive; image and video files can be located in subdirectories). The creation page provides downloadable sample templates for the corresponding formats.
  6. Select the storage location: platform OSS storage (free, with no data volume limit) or Mount Cloud Storage (unavailable for evaluation sets).
  7. Select the import method and upload the data: Upload Local File, Import from OSS, or Log ingestion (see the tab-specific details below). API upload is a separate channel not offered in the console creation form; for specific operations, see Use API or CLI for model fine-tuning.
  8. After you click Confirm, the dataset is published immediately and the creation is complete.

The three import methods are operated in different tabs, with different fields and operations in each tab. SFT text-generation and DPO text-generation training sets support uploading multiple files at the same time.

Parameter

Description

Required

Value description

Dataset name

Dataset identifier

true

Up to 50 characters; Chinese/English/digits/underscore/hyphen/period

Dataset description

Dataset description

Up to 200 characters

Dataset type

Training set or evaluation set; cannot be changed after creation

true

Training set/Evaluation set

Training scenario

Training scenario the data applies to

true

Text generation/visual understanding/I2V (first frame)/I2V (first and last frame)/text-to-image/image-to-image/model decision (for evaluation sets, all of the above scenarios except model decision are available, with text generation distinguished by sample format)

Training method

Training algorithm type

true

SFT/DPO/CPT/RL/OPD

Data format

Data file format

true

Jsonl format/Excel format; evaluation sets use either of the two sample formats Text generation (ChatML-messages)/Text generation (prompt&completion), or a Zip archive for multimodal scenarios

Storage location

Dataset storage method

true

Platform OSS storage/Cloud storage mounting

Import method

Data import source

true

Upload Local File/Import from OSS/Log ingestion (form options); API upload is a separate channel not offered in the creation form

image

Local upload

Click Upload File to select local data files. SFT text-generation and DPO text-generation support multi-file upload. The file format must meet the scenario requirements (see the Data preparation section), and imported data is automatically encrypted with SSE-OSS.

Import from OSS

After adding the tag bailian-datahub-access=read to the target bucket, select the bucket and specify the data file path. Suitable for large-scale data import; not supported for evaluation sets.

Log backflow

Authorize a service-linked role first. Select an API Key and a model, then filter inference logs from the last 30 days (one-time limit of 100,000 entries); the system automatically extracts training data from the logs, forming an inference → data → fine-tuning enhancement loop. For full operational details, see the dedicated log backflow topic.

Version management

A dataset can have multiple independent versions, with version numbers auto-incrementing. On the dataset detail page, click Add Version to create a new version.

When adding a version, the create-new mode is adopted: all data must be re-imported, and the inheritance mode that incrementally modifies the previous version's data is no longer supported.

  • Create Mode: re-import all data; suitable for large-scale updates.

Historically created draft dataset versions can be used for data cleaning or augmentation to improve data quality before publishing.

Dataset management

On the Data Management > Dataset list page, you can view all datasets. The list displays the following 9 columns: dataset name, type, latest version, data volume, import status, publish status, storage location, import method, and operations (add version/publish/delete). You can filter by storage location and import method. Datasets being imported auto-refresh their status every 5 seconds; no manual refresh is needed. Import status and publish status are two independent columns, reflecting data import progress and whether the dataset has been published, respectively.

Publish and delete

Publish is irreversible; published versions cannot be edited. Deleting a published version is also irreversible; only historically created draft versions can be deleted. Deleting an entire dataset removes all its versions. All these operations are irreversible; proceed with care.

Edit and export

Only historically created draft versions can be edited online (Prompt/Completion content is editable); newly created datasets are published immediately upon submission and no longer produce draft versions, and editing is unavailable for published versions. When exporting datasets, each type has a different format: SFT training sets are exported as jsonl, visual understanding training sets as zip, and evaluation sets as xlsx. Exporting empty datasets is not supported.

image

ImportantPublishing and deletion operations are irreversible. Published versions cannot be edited anymore; only historically created draft versions can be deleted. Proceed with care.

Billing

The Data Management feature is free, but dataset storage and downstream resources incur fees; see the Model Studio billing page for details.

  • Platform OSS storage: fees are based on the Model Studio billing page.
  • Mount Cloud Storage: fees are billed to the user's own OSS account.
  • Log Backflow: SLS fees incurred are billed to the SLS product account.

Review the Model Studio billing documentation for the latest prices before use.

Next steps

After a dataset is created and published, it can be used in the following downstream scenarios:

To learn the full operational details of Log backflow (authorization flow, filter logic), see the dedicated log backflow topic.

Dataset CRUD is currently supported only in the console; the model fine-tuning API can reference published training set IDs via the training_file_ids parameter.