Skip to main content

Model compression

Model compression uses quantization to convert a full-precision fine-tuned model into a low-precision version, reducing the MU specification and cost required for deployment. This topic describes how to create and manage model compression tasks in the console.

Feature overview

Model compression uses quantization to convert a full-precision fine-tuned model into a low-precision version, reducing the MU specification required for deployment while preserving model capabilities, thereby lowering inference deployment costs. On the Model Studio platform, model compression specifically refers to quantization and does not involve structural pruning or knowledge distillation. Model compression is an optional step in the model production pipeline. The complete pipeline is: Fine-tuning → Model compression → Deployment. You must first complete fine-tuning training, then compress the resulting fine-tuned model, and finally deploy the compressed model as an inference service.
Compression is irreversible. A compressed model cannot be further fine-tuned, nor can it be compressed a second time. Please confirm the quantization template before compression.

Supported models

The models currently supported for compression are listed in the table below. Refer to the console for the actual list.
  • China (Beijing)
  • Singapore

Model series

Base model

Deployment specification before compression

Deployment specification after compression

Qwen

qwen3.5-flash-2026-02-23

MU1*2 (¥108/hour)

MU5/MU8/MU9

Qwen

qwen3.6-plus-2026-04-02

MU1*8 (¥432/hour)

Refer to the console

Usage limits

  • Available only in the North China 2 (Beijing) region.
  • Only custom models produced through fine-tuning on the Model Studio platform are supported. Base models and third-party models are not supported.
  • Compressed models cannot be further fine-tuned, nor can they be compressed a second time.

Create a compression task

Prerequisites

Before using the model compression feature, ensure that a custom model fine-tuned on the Model Studio platform is already available in the current workspace. If you have not yet completed model fine-tuning, first complete the training by referring to Fine-tuning.

Steps

  1. Log on to the Bailian console and select model compression in the left-side navigation pane.
  2. On the model compression page, click Create Compression Task. The upper-right corner of the page also provides the Return to Old Version entry.
  3. On the Create Compression Task page, configure the following parameters:
    image

    Parameter

    Whether Required

    Description

    Task Name

    Yes

    Up to 50 characters. We recommend that you include the model abbreviation, quantization method, and version number for easier management.

    Task Description

    No

    Up to 200 characters.

    Source Model

    Yes

    After you click it, a model selection dialog appears, displaying only compressible fine-tuned models. If no models are available in the dialog, complete model fine-tuning training first. Switching the source model automatically clears the selected quantization template because different models support different template lists.

    Output Model Name Suffix

    Yes

    Only lowercase letters and digits are supported, with a maximum of 8 characters. Invalid characters are automatically filtered out. The suffix is appended to the source model name as the identifier of the compressed model.

    Quantization Template

    Yes

    Available templates are displayed in a card grid. You must select a source model before selecting a template. A larger MU number in the template name indicates a smaller deployment specification and lower cost.

    Calibration Data

    Conditionally optional

    This field appears only when the selected quantization template includes calibration input parameters. You can select up to 5 datasets. Datasets mounted from OSS are not supported. Datasets must be created and published in Data Management.

  4. After confirming that the configuration is correct, click Start Compression. The button becomes clickable only after all required fields are filled in. After the task is created, the page automatically redirects to the tasks list.
The configuration of a compression task cannot be modified after creation. Carefully confirm the quantization template selection before clicking Start Compression.

View compression task progress and logs

Click a task name on the tasks list page to go to the details page. The details page contains the details and Logs tabs.

Details tab

image
The details tab displays the following information:
  • Basic Information: task ID (can be copied), Status, Created At, Task Duration (updated in real time when the task is running). Error information is additionally displayed when the task fails.
  • Compression Configuration: configuration information from creation, including the Source Model, Compressed Model, Quantization Method, and Calibration Data.

Logs tab

image
Switch to the Logs tab to view the running logs of the compression task.
  • Lines to Display: Select to display the last 100, 500, 2000, or 5000 lines of logs.
  • Auto Refresh: When enabled, the log content refreshes automatically every 30 seconds.
  • Log level coloring: INFO (green), DEBUG (gray), ERROR (red), WARN (yellow).
  • Log actions: Supports downloading all logs (not limited by the number of lines displayed), collapsing or expanding sub-entries, switching between dark and light modes, and toggling word wrap.

Troubleshooting Failures

If a compression task fails, we recommend troubleshooting as follows:
  1. Check the error message on the details tab.
  2. Switch to the Logs tab and search for ERROR-level logs.
  3. Download all logs for detailed analysis.
  4. If the problem persists, submit a ticket with the task ID and log files.

Manage Compression Tasks

Select model compression in the left navigation pane of the console to open the tasks list page and manage created compression tasks.
image

Tasks

The tasks list displays the following 7 columns:

Column Name

Description

Task Name/ID

Task name and task ID. Click the task name to go to the details page.

Quantization Template

The name of the quantization template selected when the task was created.

Status

The current status of the task.

Source Model

The name of the fine-tuned model before compression.

Compressed Model

The name of the model produced by compression. It can be clicked to go to the model center for viewing only when the task succeeds.

Created At

The time when the task was created.

Actions

Available actions, including stop and delete. Action availability depends on the task status.

You can filter and search by quantization template, task status (5 types), time range, and task name or ID. The list supports sorting and displays 10 records per page.

Status

Compression tasks have 7 statuses in total, with the lifecycle as follows:
  • PENDING (Pending): The task has been created and is awaiting scheduling.
  • QUEUING (Queuing): The task has entered the execution queue.
  • RUNNING (Running): The task is performing compression.
  • SUCCEEDED (Compression Successful): The compression is complete and the model has been produced.
  • FAILED (Compression Failed): An error occurred during compression.
  • CANCELING (Stopping): The user initiated a stop and the task is terminating.
  • CANCELED (Canceled): The task has been stopped by the user.

Stop and Delete Tasks

  • Stop Task: Only tasks in PENDING or RUNNING status can be stopped. After clicking Stop, you must confirm again in the confirmation dialog. Once stopped, the task cannot be recovered. A stop button is also available on the details page.
  • Delete Task: Only tasks in a terminal state (SUCCEEDED, FAILED, CANCELED) can be deleted; tasks in QUEUING status cannot be deleted. Deleting a task record does not affect the compressed model that has already been produced.
Empty state prompt: When there are no tasks, the page displays the message "No Compression Tasks" and provides a Create Compression Task button entry; when filters return no results, it displays "No matches found" and suggests adjusting the filter criteria or clearing the search.

Billing Details

  • The compression task itself is free of charge for a limited time, and the deadline is subject to console announcements.
  • The compressed model is billed based on MU specifications during deployment. For detailed deployment billing information, see Model deployment.
Take the qwen3.5-flash-2026-02-23 fine-tuned model as an example. For the deployment specifications and prices before and after compression, see Models that support compression. Deployment costs are reduced by approximately 56%. We recommend comparing the compression results of multiple quantization templates during the free period and selecting the optimal option before formal deployment.

FAQ

The Source Model dialog only displays fine-tuned models that can be compressed. If there are no selectable options in the dialog, it means the current workspace has no fine-tuned models that meet the requirements. Please first refer to Model fine-tuning to complete fine-tuning training, and ensure the training status is Successful before creating a compression task.
No. Compression is a one-way operation. If you need to make adjustments, re-compress from the upstream full-precision fine-tuned model. For more information, see the Limits in Feature overview.
They are three different model optimization techniques. Quantization reduces parameter precision, pruning removes redundant structures, and distillation trains small models with large models. Model Studio currently only supports quantization.
The quantization template determines the deployment specifications of the compressed model. A larger MU number in the template name indicates smaller deployment specifications and lower costs, but potentially greater precision loss. We recommend choosing a template based on your business trade-off between cost and precision. If you are unsure, you can try multiple templates during the free period and verify the results with your business test set after deployment.
Calibration data is used to improve quantization precision. We recommend choosing a dataset that is semantically similar to the target inference scenario. For example, if the compressed model is used for customer service Q&A scenarios, we recommend selecting a dataset containing customer service dialogue samples as calibration data.
Quantization compression may cause a certain degree of precision loss. We recommend performing inference validation with your business test set after deployment. If the precision does not meet your requirements, you can try switching to a different quantization template and re-compressing, or adding calibration data to improve quantization quality.
Compression tasks are currently free for a limited time. The billing method after the free period ends is subject to console announcements. The deployment fee of the compressed model is not affected by the free period and is always billed by MU specification.
We recommend trying multiple quantization templates on the same fine-tuned model during the free period, deploying them separately, and verifying the inference effects using a business test set. Compare the performance of different templates between precision and cost, and select the plan that best fits your business needs before going live formally.
If you need to manage compression tasks via API, see Model compression API reference.