Skip to main content
You will fine-tune a small model on 112 example support tickets, watch the job, and read its results. You do not need your own data. The training costs a few cents, and you see the exact price before anything starts. You need:
  • a NexCloud account with some credit. Accounts are by invitation: write to support@physionlabs.ai if you do not have one;
  • a terminal on macOS or Linux, with uv installed (it installs Python for you).
1

Get an API key

Sign in to the console and open API keys. Create a key and copy it: it is shown once. Only an owner of the organisation can create one.Put it in your terminal:
2

Install and make the first call

In an empty folder:
You should see your organisation and its balance in US cents ("credits": 5000 is $50.00):
An invalid_api_key error means the key was not copied whole, or NEXTRON_API_KEY is not set in this terminal.
3

Get the sample dataset

Download it, then split it into a training set and a small validation set:
This writes data/train.jsonl (112 samples) and data/val.jsonl (12 samples). Each line is one conversation: a made-up support ticket, and the answer the model should learn to give, as JSON with a category, a priority and a reply.
4

Upload it

Each command checks the file, uploads it and waits for the server’s check. Note the two ids it prints ("id": "ds_...") and that "state" is "ready".
5

See the price

Put your two dataset ids in place of ds_TRAIN and ds_VAL:
This starts nothing. It prints the estimate; the part to read:
credits is the price in US cents: 3 cents here. steps is how many training steps the job will take. The FEW_STEPS warning is expected for a dataset this small.
6

Start the job

The same command with --yes:
Note the job’s id ("id": "job_...").
7

Watch it

phase goes from queued to starting, loading, training and saving. Once the job starts, it takes about 4 minutes. While phase is queued, the job is waiting for free GPUs, and jobs_ahead says how many jobs start before yours. The console’s Jobs page shows the same.
8

Read the results

  • state should be succeeded.
  • loss is how far the model’s answers were from the training answers at the last step, and best_val_loss the same on the 12 samples it never trained on. Lower is better. When we ran this page, the loss fell from 1.59 at step 1 to 0.29 at step 10, and the validation loss from 1.24 to 0.37.
  • charged_credits is what you paid, in US cents: 3 in our run.
That is a full fine-tuning job: data in, a trained model out.

Get the model

The trained model is kept for 30 days. This job trained a LoRA adapter, which is small (about 150 MB):
To try it without downloading, start an inference run from the job. An inference run is billed by GPU time, not by tokens: the start command prints the price first, and you must stop the run when you are done.

The same in Python

Next

Train on your own data

The sample format, converting a CSV, and what the server checks.

Pick a model and settings

Models, parameters, cost and time, and how to plan a real run.

API reference

Every endpoint, with the matching Python and command-line call.

Cookbook

Tested recipes for chat, images, video, preference training and RL, with measured results.