Skip to main content
Serverless AI jobs run container images as one-off or scheduled batch workloads. They are suitable for training, fine-tuning and data processing where you want to use computing resources only to perform a task and stop when the task is done. Each job runs on a Compute virtual machine (VM) managed by Serverless AI and billed only while the job is running.

Prerequisites

Steps

To run a container image as a batch workload for training, fine-tuning, or data processing, create a job:
If you want to create a job based on an existing one, find the job on the Serverless AI → Jobs page and click → Clone. On the creation page that opens, review the prefilled settings, modify them if needed, and click Create job.
  1. In the sidebar, go to  Serverless AI → Jobs.
  2. Click  Create job.
  3. In Configuration, select Custom.
  4. Configure Job settings:
    1. In Image path, set the path to the container image.
    2. If you use a private registry, in Private registry, select an existing registry or click  Add, and provide the details for your registry.
    3. (Optional) In Entrypoint command, specify the entrypoint command for the container. If you need to pass container arguments, specify them in this field as well.
    4. (Optional) In Environment variables, specify environment variables in key-value pairs.
    5. (Optional) In Secret environment variables, click  Create secret to store a sensitive value in SecretStash and inject it as an environment variable. In the window that opens, specify the Key (environment variable name) and Value (secret data), then click Create.
    6. (Optional) In Job timeout in hours, specify the number of hours after which the job will be canceled if not completed.
  5. (Optional) Configure the Computing resources section:
    1. Select whether the underlying VM should have GPUs.
    2. Specify the VM type: regular or preemptible. VMs without GPUs only support the regular type.
    3. Select the platform and preset.
    4. If you selected the preemptible VM type, in Max price, select or create a pricing policy, or choose Follows spot price.
  6. (Optional) Configure Storage settings:
    • Under Container disk size, specify at least 50 GiB for GPU workloads or 20 GiB for CPU-only workloads. If the container image requires a bigger disk size, set at least the minimum required value for the image. Otherwise, the workloads won’t be able to launch. For more information, see how disk performance depends on disk size.
    • Under Mounted volumes, click Attach volume to attach a bucket or a filesystem. You can create a bucket or filesystem, or use an existing one. To create a new bucket, see Bucket parameters. To create a new filesystem, see Volume parameters.
  7. (Optional) In the Files section, add one or more small configuration files to inject into the container at launch:
    • Select Upload files to upload files from your machine, or Create text files to enter the file content and click Create file.
    • In Mount path, specify the absolute path to the file in the container, for example, /mnt/files/config.yaml.
    Injected files are read-only and limited to 64 KiB each.
  8. (Optional) In the Access section, configure User name and SSH key to connect to the running workload for debugging. You can create new credentials or select existing ones. If you decide to use an existing credential, make sure that the SSH key is stored for the nebius username.
  9. Configure the Network section:
    • Select a subnet or create a new one.
    • Select the IP address type: Public static IP or Private IP. If you want to connect to the resource from the internet, select Public static IP.
  10. Click Create job.
The job creation usually takes a few minutes. Jobs run until the workload finishes. When the job completes successfully or fails, the underlying VM is deleted automatically. If you mounted volumes, they will remain, and you should delete them manually.