Skip to main content

Fine-tuning & Deployment

Bailian CLI command reference for model fine-tuning, deployment, and throughput reservation management.

Manage the full model fine-tuning and deployment lifecycle from the terminal: create fine-tune jobs, manage checkpoints, deploy dedicated models, and manage throughput reservations.
Append --help to any command for full parameter details, e.g. bl finetune list --help.

Fine-tuning

  • bl finetune text create: Create a text model fine-tune job (sft | sft-lora | dpo | dpo-lora | cpt) with advanced parameters for job name, priority, LoRA, evaluation, checkpoint saving, dataset split, and data augmentation
  • bl finetune audio create: Create an audio TTS model fine-tune job (sft-lora)
  • bl finetune image create: Create an image generation model fine-tune job (sft-lora)
  • bl finetune video create: Create a video generation model fine-tune job (Wan i2v/kf2v, efficient_sft)
  • bl finetune list: List fine-tune jobs
  • bl finetune get: Get details of a single fine-tune job, including job metadata and hyperparameters
  • bl finetune watch: Probe a fine-tune job's status; use --follow to poll until terminal
  • bl finetune logs: Fetch training logs for a fine-tune job
  • bl finetune checkpoints: List checkpoints produced by a fine-tune job
  • bl finetune export: Publish a checkpoint as a deployable model
  • bl finetune cancel: Cancel a running fine-tune job
  • bl finetune delete: Delete a fine-tune job record
  • bl finetune capability: Query fine-tune training capability — by model (which training types it supports) or by training type (which models support it)
  • bl finetune price: Estimate the training cost for a fine-tune job (token billing)

Deployment

Deployment management

  • bl deploy text create: Create a text model deployment
  • bl deploy audio create: Create an audio (TTS) model deployment
  • bl deploy image create: Create an image generation model deployment
  • bl deploy list: List model deployments and throughput reservations
  • bl deploy get: Get details of a single model deployment
  • bl deploy update: Update a deployment's rate limits (rpm_limit / tpm_limit)
  • bl deploy scale: Scale a deployment's capacity
  • bl deploy delete: Delete a model deployment (PTU must be STOPPED with all capacity released)
  • bl deploy pause: Pause a running model deployment (stops billing for mu/ptu)
  • bl deploy resume: Resume a paused model deployment (brings service back online)
  • bl deploy models: List models available for deployment

Throughput reservation capacity

Purchasing, scaling, renewing, releasing, and setting overflow strategies for capacity instances are high-risk operations: execution is blocked without --yes; preview with --dry-run first.
  • bl deploy capacity list: List throughput reservation capacity instances
  • bl deploy capacity get: Get a throughput reservation capacity instance
  • bl deploy capacity create: Purchase an additional capacity instance for a ModelCode
  • bl deploy capacity scale: Scale the absolute capacity of one reservation instance
  • bl deploy capacity renew: Renew a prepaid capacity instance, optionally changing capacity
  • bl deploy capacity delete: Release a capacity instance without deleting its ModelCode
  • bl deploy capacity unsubscribe: Build the Aliyun billing console unsubscribe link for a prepaid capacity instance
  • bl deploy overflow: Set the overflow strategy for a throughput reservation ModelCode
  • bl deploy operation get: Query a throughput reservation capacity operation once
  • bl deploy operation wait: Wait for a capacity operation and refresh confirmed capacity
Capabilities
Changelog