Skip to main content
You can use Serverless AI jobs to work with AI models and perform such operations as fine-tuning, scientific simulations, data processing or batch inference. The example below demonstrates how to fine-tune the Qwen/Qwen2.5-0.5B large language model (LLM) with the support of the Low-Rank Adaptation (LoRA). This example also includes Axolotl, an open-source tool for fine-tuning. Axolotl provides a public container image, which you deploy in a job and, as a result, run fine-tuning. For a quick walkthrough of the web console workflow, watch the video below. If you prefer other interfaces or written instructions, follow the steps further down.

Visit Nebius Academy for video tutorials to help you get started with Nebius AI Cloud.

Costs

Nebius AI Cloud charges you for the following billing items:

Prerequisites

Make sure you are in a group that has at least the editor role within your tenant or project; for example, the default editors group. You can check this in the Administration → IAM section of the web console.

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. For visual guidance on creating a bucket and uploading objects in the web console, watch the video below. If you prefer other interfaces or written instructions, follow the steps further down.

Visit Nebius Academy for video tutorials to help you get started with Nebius AI Cloud.

  1. Create a bucket:
    1. In the web console, go to  Storage → Object Storage.
    2. Click  Create bucket.
    3. Specify the fine-tuning-axolotl name for the bucket.
    4. In the Maximum size field, select Unlimited. Leave the other settings at their default values.
    5. Click Create bucket.
  2. Save the config.yaml file specified below. It is required for Axolotl to run fine-tuning.
  3. Upload this configuration file to the bucket:
    1. In the web console, go to  Storage → Object Storage.
    2. Open the page of the fine-tuning-axolotl bucket.
    3. Click AddObject.
    4. Upload the config.yaml file.

Run a fine-tuning job

Create a job that performs the following actions:
  1. Runs an Axolotl container.
  2. Mounts the bucket with the prepared configuration file in the read-write mode.
  3. Executes fine-tuning.
  4. Saves the fine-tuning results to the bucket.
To create and run such a job:
  1. In the web console, go to  Serverless AI → Jobs.
  2. Click  Create job.
  3. On the page that opens, specify the following job settings:
    • Name: fine-tuning-axolotl-qwen-lora.
    • Image path: docker.io/axolotlai/axolotl:main-20260309-py3.11-cu128-2.9.1.
    • Entrypoint command:
    • 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, click  Attach bucket and then select the fine-tuning-axolotl bucket.
  4. Click Create.
The job takes several minutes to complete.

Check the job results

  1. View information about the job:
    In the web console, go to  Serverless AI → Jobs and then open the page of the fine-tuning-axolotl-qwen-lora job. It contains information about the job state and configuration.
  2. Download LoRA adapter weights of the fine-tuning job. They are stored as files in the output directory, in the fine-tuning-axolotl bucket. To check these files, open the page of the fine-tuning-axolotl bucket in the web console.
    To download a file, in its line, click  → Download.

How to delete the created resources

Used space in the created bucket is chargeable. If you don’t need it, delete the bucket, so Nebius AI Cloud doesn’t charge for it.

See also