Skip to content

Model Fine-tuning

Model fine-tuning continues training a pretrained model with a small amount of domain-specific data, so that the model masters specific business knowledge, output styles, or task formats. Compared with prompt engineering, fine-tuning consolidates domain knowledge into model weights, so there is no need to repeatedly stack context during inference; the output is more stable and the token cost is lower. Compared with continued pretraining, fine-tuning requires far less data and computing power — usually a few GPUs are enough for one round of training.

LLM Studio breaks fine-tuning into six reusable objects: model, dataset, configuration, task, evaluation, and export. Model weights and dataset versions can be referenced by multiple fine-tuning configurations; after a configuration saves the training parameters, tasks can be launched repeatedly. Each training run produces independent records and outputs. After the evaluation confirms the results, the model is exported for deployment. In this way, the inputs, parameters, and results of each experiment are traceable, and you can iterate repeatedly without affecting the online model.

Fine-tuning Workflow

Complete the six stages in the following order. Click any stage in the diagram to jump to the corresponding documentation. If the evaluation results do not meet the standard, go back to the fine-tune configuration, adjust the parameters, and retrain — no need to prepare the model and dataset again.

flowchart TB
    M1["1 Model Management<br/>Select the model and weight file"]
    M2["2 Dataset Management<br/>Register training data and versions"]
    M3["3 Fine-tune Configuration<br/>Fine-tuning method, resources, and training parameters"]
    M4["4 Fine-tune Task<br/>Run training according to the configuration"]
    M5["5 Evaluation Task<br/>Validate the results with an evaluation set"]
    M6["6 Export Task<br/>Export a deployable model"]

    M1 --> M2 --> M3 --> M4 --> M5
    M5 -->|"Meets standard"| M6
    M5 -.->|"Does not meet standard: adjust parameters and retrain"| M3

    click M1 "create-model/"
    click M2 "create-dataset/"
    click M3 "create-finetune-config/"
    click M4 "create-finetune-task/"
    click M5 "create-evaluation-task/"
    click M6 "create-export-task/"

Tips

  • The six stages must be completed within the same workspace. Switch to the target workspace before you start.
  • Evaluation tasks and export tasks depend on fine-tune tasks in Success status, so training must be completed first.
  • A fine-tune configuration can be reused for multiple rounds of tasks: if the evaluation results are unsatisfactory, adjust the configuration parameters and create a new task — the model and dataset do not need to be prepared again.

Download Center Learn about d.run Token Factory Learn about d.run AI OS

Comments