Testing Platform

Console Operation Guide and Usage Example

Note: This console is built with web technologies and provides a graphical interface. Its backend service is based on LlamaFactory 0.9.5. It is suitable for quickly configuring model fine-tuning tasks. The current demo supports one model, Qwen3-1.7B, and three datasets: ScienceQA, alpaca_zh_demo, and alpaca_en_demo.

Basic Parameter Introduction

The LlamaFactory console usually refers to its WebUI, also known as LLaMA Board. This interface integrates training, evaluation, inference, and export workflows into a browser page. Users can select parameters such as model, dataset, fine-tuning method, training stage, learning rate, and batch size through forms, reducing the cost of command-line configuration.

General Parameters

ParameterMeaningDescription
LanguageConsole display languageChinese or English UI can be selected.
Model nameSelect a built-in or registered model nameCurrently only Qwen3-1.7B is supported.
Fine-tuning methodSelect the model fine-tuning methodCommon options include lora, freeze, full, and oft.

Train Page Parameters

The Train page is the core console page for configuring training tasks.

ParameterMeaningRecommended Description
Training stageSpecifies the current task typeFor standard instruction fine-tuning, usually select Supervised Fine-Tuning.
DatasetSelect the dataset used for trainingScienceQA, alpaca_zh_demo, and alpaca_en_demo can be selected.
Learning rateOptimizer learning rateCommon values are 1e-4 to 5e-5.
Training epochsNumber of training epochsSmall datasets can use 2-5; large datasets usually use 1-3.
Cutoff lengthMaximum input text token lengthSamples exceeding this length will be truncated. Common values are 1024, 2048, and 4096.
Batch sizeBatch size on each GPUWhen GPU memory is insufficient, reduce this value first. LoRA fine-tuning is commonly set to 1 or 2.
Gradient accumulationNumber of steps accumulated before one parameter updateUsed to increase the effective batch size. For example, when batch size is 1 and gradient accumulation is 8, the effective per-GPU batch size is 8.
Validation set ratioRatio of the training set split into validation dataFor example, 0.1 means 10% of the data is used as the validation set. If a separate validation set already exists, keep this value as 0.
Learning rate schedulerLearning rate change strategyCommon options include cosine, linear, and constant. Cosine can be used for general training.
PackingWhether to use PackingWhether to use the Packing strategy.

Usage Example

1. Full Fine-Tuning on the ScienceQA Dataset

Applicable scenario: Use an existing instruction dataset to perform full fine-tuning on models such as Qwen.

  1. Go to the Train page in the console.
  1. Configure basic parameters such as model path, fine-tuning method, training stage, dataset, template, and output directory.
  1. Click Start to begin training.
ParameterExample Value
Model nameQwen3-1.7B
Model path/root/autodl-tmp/model/Qwen/Qwen3-1.7B
Fine-tuning methodfull
Training stageSupervised Fine-Tuning
Data pathdata
Datasetscienceqa_train
Conversation templatedefault
Cutoff length512
Learning rate5e-5
Training epochs8
Batch size16
Gradient accumulation1
Compute typebf16 or fp16
Validation set ratio0.1
Learning rate schedulercosine
Maximum gradient norm1
Packingtrue

Visual Interface

Result Example

Note: The specific implementation of Packing varies across LlamaFactory versions. The backend service used for this experiment is based on LlamaFactory 0.9.5.

The results show that EcoTrain API achieves significantly higher accuracy than Baseline and does not exhibit overfitting. Training takes about 950 steps, compared with about 2,520 steps for Baseline, saving approximately 62.3% of compute.

EcoPhase Docs - Console Operation Guide and Usage Example - EcoPhase.AI