Help Center/ ModelArts/ Data Preparation/ Data Refining/ Creating a Smart Refining Task
Updated on 2026-11-18 GMT+08:00

Creating a Smart Refining Task

Scenarios

Smart Refining is an integrated data preparation solution designed to streamline both cleaning and synthesis for large model training. Whether you are processing raw pre-training corpora by removing HTML tags and garbled characters, enhancing sparse seed data for SFT instruction fine-tuning, or ensuring security compliance through privacy anonymization, Smart Refining simplifies the workflow. It orchestrates a wide range of data processing operators into a cohesive pipeline, transforming messy or incomplete inputs into high-quality, diverse, and secure training datasets ready for model development.

Prerequisites

  • You have applied for the compute resources required for smart refining.
  • If you need to use a custom dataset, import the dataset to ModelArts by referring to Creating a Data Connection.

Billing

You are billed based on the compute and storage resources you use. For details, see Data Management.

Constraints

  • Console: This feature is only available in the new console.
  • Synthesis operator: The synthesis operator must be placed at the last node of the workflow. It cannot be inserted between processing operators or followed by other filtering operators.
  • Modality:
    • Only intra-modal synthesis (e.g., text input to text output) is supported.
    • Cross-modal generation (such as generating Q&A pairs from input text or generating images from output text) is not yet supported.
  • Functions:
    • Custom synthesis instructions (prompts) and the template functions are not supported.
    • Online debugging of synthesis tasks is not supported.
    • The output fields of synthesis operators are fixed, but the original fields in the input dataset are automatically retained.
  • Data volume and quality inspection:
    • You cannot customize the number of output records of synthesized data. (Synthesized data is automatically generated based on the input.)
    • You cannot perform automatic quality inspection or filtering on the results.
    • The output is saved to a new dataset and is not automatically merged with the original dataset.

Creating a Smart Refining Task

  1. Log in to the ModelArts console. In the navigation pane on the left, choose Data Preparation > Data Refining.
  2. In the upper right corner, click Create Smart Refining Task, configure information, and click Next Step.
    Table 1 Parameters for creating a smart refining task

    Parameter

    Description

    Example Value

    Basic Information

    Name

    The default name is data-refine-YYYYMMDDHHMMSS. You can also customize a name. The name can contain 1 to 128 characters, including letters, digits, hyphens (-), and underscores (_).

    data-refine-20260423102952

    Description

    Description of a custom smart refining task. It can contain a maximum of 512 characters.

    -

    Selecting Dataset

    Choose either ModelArts Preset Data or My Data. The supported dataset types are text, images, and videos.

    If you select My Data, upload a dataset. For details, see Creating a Data Connection.

    Preset data code-alpaca

    Refinement Template

    ModelArts offers ready-to-use smart refinement templates. These templates include preset service processing tools and parameters for specific applications. You can use these templates directly.

    If your application does not need the services in the refinement template, skip this step and click Next Step.

    Text generation SFT processing workflow

  3. The refinement template comes with pre-configured operators and orchestration steps. Modify them as needed and click Save and Next.

    In the Add Operator area on the left, click to add an operator. An operator name followed by is a custom operator. The added operators will appear in the Orchestrate Steps area on the right. You can modify parameters here. Click to collapse all operator cards or click to expand them. In the upper right corner of an operator card, you can copy or delete the operator. You can also click the // icon to adjust the position or click the / icon to expand or collapse the operator card.

    Figure 1 Adding an operator

    Data orchestration is the key and most complex part of smart refining. Many scenarios and constraints must be considered. Especially for some text data (text generation SFT), Start Node and End Node are not only responsible for data input and output, but also for data format conversion.

    For details about the application scenarios of operators, see Scenarios. For details about built-in operators, see System Built-in Operators. For details about how to develop and create custom operators, see Developing a Custom Operator and Creating a Custom Operator.

  4. Configure the dataset and resource information, and click Run.
    Table 2 Parameter description

    Parameter

    Description

    Example Value

    Generate Dataset

    Dataset Name

    Name of a custom dataset. Only letters, digits, hyphens (-), and underscores (_) are supported. Enter 1 to 128 characters.

    dataset

    Storage Location

    Choose Object Storage Service – Bucket or Object Storage Service – Parallel File System as the storage type. Click to select an OBS storage address or manually enter an OBS storage address. 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/. For shared buckets from other users, you must enter the path.

    obs://bucketname/path/

    Dataset Property

    Configure dataset properties as required. You can configure tags by industry or language, or customize labels.

    -

    Description

    Description of the custom dataset. A maximum of 512 characters are supported.

    -

    Dataset Status

    Only published datasets can be used by downstream tasks such as model development and training.

    • If you select Publish Dataset, the generated dataset is in the Online state on the Asset Management > Data > My Data page and can be directly used by downstream model training jobs.
    • If you do not select Publish Dataset, the generated dataset will be in the Offline state on the Asset Management > Data > My Data page and cannot be directly used by downstream model training jobs. You need to manually publish the dataset before using it.

    Select Publish Dataset.

    Resource Configuration

    Resource Pool Type

    Select a public or dedicated resource pool as needed.

    • Public resource pools do not require a separate purchase; they are ready to use out-of-the-box and operate on a pay-per-use basis.
    • Dedicated resource pools are not shared with other users and provide more controllable resources. In the Resource Pool area, click Select Resource Pool. On the Select Dedicated Resource Pool panel, select a dedicated resource pool as required and click OK.

    For details about the parameters for purchasing a dedicated resource pool, see Creating a Dedicated Resource Pool. For details about resource pools, see About ModelArts Dedicated Resource Pools.

    Public resource pool

    Reference Specifications for Execution NPU Operator Instance

    Data operators require NPU compute resources for data processing.

    NPU (1 card) | (24 vCPUs) | MEMORY (192 GB)

    Reference Specifications for Execution CPU Operator Instance

    Data operators require CPU compute resources for data processing.

    -

    The smart refining task is complete when its Latest Status changes to Dataset Generation Success. The new data will be in Asset Management > Data > My Data.

Best Practice: Operator Orchestration Design Principles

Principle 1: Cleanse data before processing it.

Recommended sequence: Deduplicate → Format → Filter → Augment→ Synthesize

Principle 2: Reduce data before expanding it. Use the filter operator to reduce the data volume and then use the synthesis operator to expand it, improving the overall processing efficiency.

Principle 3: Place the synthesis operator at the end. The synthesis operator can only be used as the last processing step.

Principle 4: Maintain modal consistency. The entire workflow processes the same type of data and does not cross modalities.

Recommended Operator Orchestration Templates

Template 1: Basic data cleaning

Input → Format verification → Deduplication → Length filtering → Output

Template 2: Data cleaning + quality improvement

Input → Format verification → Deduplication → Sensitive word filtering → Quality score-based filtering → Output

Template 3: Data cleaning + synthesis and expansion

Input → Deduplication → Sensitive word filtering → Quality filtering → Q&A rewriting and synthesis → Output

Template 4: Full-process refinement

Input → Format conversion → Deduplication → Sensitive word filtering → Quality scoring → Length filtering → Rewriting and synthesis → Output

Follow-Up Operations

After a dataset is published, it can be directly used for model development, such as model training and model evaluation.