Prerequisites
- Web console
- CLI
Make sure that you are in a group that has the
admin role within your tenant; for example, the default admins group.Steps
Prepare an Object Storage bucket
To store job results, mount an Object Storage bucket to your job. Serverless AI deletes the job after its completion. Thus, the bucket preserves the job data: checkpoints and LoRA adapter weights of a fine-tuned model. To prepare a bucket:-
Create it:
- Web console
- CLI
-
In the web console, go to
Storage → Object Storage.
-
Click
Create bucket.
-
Specify the
fine-tuning-axalotlname for the bucket. - In the Maximum size field, select Unlimited. Leave other settings at their default values.
- Click Create bucket.
-
Save the
config.yamlfile specified below. It is required for Axolotl to run fine-tuning. -
Upload this configuration file to the bucket:
- Web console
- CLI
- In the web console, go to
Storage → Object Storage.
- Open the page of the
fine-tuning-axalotlbucket. - Click Add → Object.
- Upload the
config.yamlfile.
Run a fine-tuning job
Create a job that performs the following actions:- Runs an Axolotl container.
- Mounts the bucket with the prepared configuration file in the read-write mode.
- Executes fine-tuning.
- Saves the fine-tuning results to the bucket.
- Web console
- CLI
-
In the web console, go to
AI Services → Jobs.
-
Click
Create job.
-
On the page that opens, specify the following job settings:
- Name:
fine-tuning-axalotl-qwen-lora. - Image path:
docker.io/axolotlai/axolotl:main-20260309-py3.11-cu128-2.9.1. - Advanced settings → Arguments:
-c "RUN_ID=run-$(date +%Y%m%d-%H%M%S); axolotl train /workspace/data/config.yaml && mkdir -p /workspace/data/output/$RUN_ID && cp -r /workspace/output/. /workspace/data/output/$RUN_ID". - Computing resources: With GPU.
- Available platform: NVIDIA® L40S PCIe with Intel Ice Lake.
- Preset: 1 GPU — 8 CPUs — 32 GiB RAM.
- Container disk, Size GiB: 450.
- Mount volumes: Bucket.
- Mount path:
/workspace/data. After that, clickAttach bucket and then select the
fine-tuning-axalotlbucket.
- Name:
- Click Create.
Check the job results
-
View information about the job:
- Web console
- CLI
In the web console, go toAI Services → Jobs and then open the page of the
fine-tuning-axalotl-qwen-lorajob. It contains information about the job state and configuration. -
Download LoRA adapter weights of the fine-tuning job. They are stored as files in the
outputdirectory, in thefine-tuning-axalotlbucket. To check these files, open the page of thefine-tuning-axalotlbucket in the web console.- Web console
- CLI
To download a file, in its line, click→ Download.