Skip to content

Training

turion train fine-tunes a base model on a dataset and produces a private model, <your handle>/<name>, that you can deploy. The job (ft_…) runs on one GPU, scores the base and the tuned model on your eval cases, and stores the result on Turion.

Terminal window
turion train --base gemma-4-e4b --data support.jsonl \
--evals evals.jsonl --name support-v3
# validated support.jsonl: chat, 1,197 examples, 3 duplicates dropped
# uploaded ds_0123456789abcdef support (1,197 examples)
# validated evals.jsonl: chat, 50 examples, no duplicates
# uploaded ds_fedcba9876543210 evals (50 examples)
# job ft_0123456789abcdef queued (base gemma-4-e4b, lora)
# 1,197 examples · 225 optimizer steps over 3 epochs
# starting launching the trainer
# downloading fetching the base model and the data
# baseline eval scoring the base model on the eval set
# training
# epoch 2/3 ▕█████░░░░░▏ loss 1.210 step 120/225 eta 7m
# tuned eval scoring the tuned model on the eval set
# eval base 61% → tuned 92% (50 cases)
# uploading saving the adapter
# model acme/support-v3 ready — turion deploy acme/support-v3

--data and --evals take a local file or folder (validated and uploaded first) or a ds_… id.

In the workspace: turion.ai/members/training lists your runs. A run’s page shows its phases, loss curve, eval, resolved hyperparameters and logs, and can cancel it. Runs start from the CLI, the SDK or the API.

turion bases lists the bases you can train, smallest first, with the methods each supports (the default marked *), the GPU memory training with the default method needs, and the licence:

Terminal window
turion bases
# ID NAME PARAMS METHODS MIN VRAM LICENCE
# qwen3.5-0.8b Qwen3.5 0.8B 0.8B lora*, full, decision 4 GB Apache-2.0
# qwen3.5-2b Qwen3.5 2B 2B lora*, full, decision 8 GB Apache-2.0
# …
# gemma-4-e4b Gemma 4 E4B 4.5B … lora*, qlora, full, decision 18 GB Apache-2.0
# ministral-3-8b Ministral 3 8B ~8.8B lora*, qlora, full, decision 24 GB Apache-2.0
# …
# qwen3.8-27b Qwen3.8 27B 27B lora* 56 GB Apache-2.0
# …
# turion-extract-alpha Turion Extract alpha 12B ready to use (extract) — Apache-2.0
#
# * default method · MIN VRAM to train with it · details: turion bases ID
# any Hugging Face model: --base hf:<org>/<repo> · 2 teacher models: --all
# serve one as is, without training: turion deploy --base ID
# ready to use: not trainable; deploy as is, call with turion extract MODEL

turion bases ID shows one base in detail: vendor, parameters, context length, whether it takes images, the GPU memory each method needs to train and the memory it needs to serve, whether a fine-tune of it returns parsed tool calls, the licence, the Hugging Face repo, and what it is good for. --json works on both forms.

Terminal window
turion bases gemma-4-e4b
# base gemma-4-e4b Gemma 4 E4B
# runtime chat
# vendor Google
# params 4.5B effective (~8B incl. per-layer embeddings)
# context 131,072 tokens
# input text, images
# methods lora*, qlora, full, decision
# train lora 18 GB, qlora 10 GB, full 64 GB
# serve 24 GB
# tool calls yes
# licence Apache-2.0
# weights https://huggingface.co/google/gemma-4-E4B-it
# good for on-device, extraction, routing
# notes LoRA ~17 GB. Full fine-tune needs 8-bit AdamW and gradient checkpointing.
#
# train on it: turion train --base gemma-4-e4b --data data.jsonl

The catalog changes over time; turion bases (or GET /v1/bases) is the current list. Rows marked teacher are large models kept for labelling and distillation. They cannot be fine-tuned (422 base_not_trainable). Rows marked ready to use cannot be fine-tuned either: you deploy them as they are and call them, like Turion Extract. Check the licence of a base before you ship a fine-tune of it; the licence applies to your fine-tune too.

turion-jev-31b is both. It trains like Gemma 4 31B (LoRA by default, or QLoRA), and its fine-tunes are chat models like any other. Deployed as it is, it is a decision model that answers POST /v1/systemone instead; see Turion Jev 31B.

--base hf:<org>/<repo> trains a model that is not in the catalog:

Terminal window
turion train --base hf:mistralai/Ministral-3-3B-Instruct-2512-BF16 \
--data support.jsonl
  • If the repo is a catalog base, its catalog entry applies (methods, defaults).
  • Any other repo must be public and not gated. Turion checks this when you submit and refuses a private, gated or missing repo with 422 base_not_public. If Hugging Face cannot be reached for the check, the submit fails with 503 hf_unavailable; retry it.
  • For a repo outside the catalog every method is allowed, the default is lora, and Turion knows nothing about the model’s memory needs. Pick a method that fits one GPU.
  • The trainer never runs code from the repo (trust_remote_code is off), so the architecture must be one that the trainer’s transformers version already supports. Serving uses vLLM, which must support it too.
MethodWhat it trainsUse it when
lora (default)small adapter matrices on the language-model layers, base in bf16almost always: fast, small artifact, good results on task-shaped data
qlorathe same adapter, base loaded in 4-bitthe base does not fit on the GPU in bf16 for LoRA; uses much less memory, runs slower
fullevery weighta small base (the catalog offers it up to ~9B), lots of data, and a reason an adapter is not enough
decisionthe output-layer rows that score the option letters A–Z; the base stays frozena classifier: typed answers with calibrated probabilities instead of text, from decision data

LoRA and QLoRA both produce an adapter, served on top of the base model. A full fine-tune produces a complete set of weights, several GB even for small bases. A decision job produces a decision model, served on POST /v1/systemone and called with turion decide; turion train picks it for decision data on its own. If a base does not offer the method you pass, the job is refused with 422 unsupported_method.

The server fills in everything you do not set, bounds-checks what you do set, and stores the full resolved set on the job (turion jobs get prints it as params). Unknown keys are refused, so a typo fails instead of training at the default.

ParameterCLI flagDefaultRange
epochs--epochs3; 10 for decision1–10
learning_rate--lr2e-4 (LoRA/QLoRA), 1e-5 (full), 1e-3 (decision)1e-7–1e-2
lora_rank--rank164–128, LoRA/QLoRA only
lora_alpha—2 × lora_rank1–512, LoRA/QLoRA only
max_seq_len--max-seq-len4096; 1024 for decision256–32,768 tokens
batch_size--batch-size4; 16 for decision1–64; lower it to save GPU memory
grad_accum—1 under 500 training examples, else 41–128
warmup_ratio—0.030–0.5
eval_split--eval-split0.1; 0.2 for decision0–0.5 when the trainer splits
skip_baseline_eval—falseskip scoring the base model

Parameters without a CLI flag are set from the SDK or the REST API, for example turion.train(..., grad_accum=8, skip_baseline_eval=True). lora_rank and lora_alpha on a full job are a 400 validation_error.

One optimizer step covers batch_size × grad_accum examples. Under 500 training examples grad_accum defaults to 1, so a small dataset still gets enough steps. turion train prints the number of examples and optimizer steps when the job starts, and warns when there are fewer than about 30. More examples help most; more epochs only repeat the same ones.

eval_split only matters when the job has no eval set: the trainer then holds out that share of the training data (at most 200 cases, none for fewer than 10 examples). A decision job holds out whole states instead, at least 50 and at most 1,000 cases and never more than half; see Decision models → The eval split. With --eval-split and a local file the CLI does the split instead, before upload; see Datasets → Eval sets. To train on every example and skip the held-out set, set it to 0: turion train --eval-split 0, turion.train("gemma-4-e4b", "support.jsonl", eval_split=0), or "hyperparams": {"eval_split": 0} over REST. The CLI, the SDK and the API accept the same range, 0–0.5, and refuse anything else with bad_eval_split (the API with 400 validation_error).

--name support-v3 makes the model acme/support-v3. Names are lowercase letters, digits and dashes, up to 63 characters, starting with a letter or digit. Without --name the model is named after the base plus six characters of the job id (gemma-4-e4b-0a1b2c). A name already used by one of your models, or by a running job, is refused with 409 name_taken.

turion train follows the job until it ends. The job moves through these phases:

PhaseWhat happens
queuedwaiting for a GPU
startingthe trainer container is starting
downloadingfetching the data and loading the base model
baseline_evalscoring the base model on the eval cases (skipped without cases, or with skip_baseline_eval)
trainingtraining: epoch, loss, step, ETA
tuned_evalscoring the fine-tune on the same cases
uploadingstoring the adapter or weights

On a terminal the command draws the job live: the dataset, the GPU, a bar per epoch while it trains, then the adapter and the eval result. It ends with one line that gives how long the job took, its id and the next command. When its output is piped or in a CI log, it prints one line per phase and a progress line at most every 30 seconds, as in the example at the top of this page. TURION_NO_PROGRESS=1 turns the live view off on a terminal. The command exits 0 when the model is ready and 1 if the job fails or is cancelled.

Even a small job takes several minutes: waiting for a GPU, loading the base model and the two evals take time whatever the size of the data. Training time grows with the number of examples, their length and the epochs.

  • Ctrl-C detaches. The job keeps running, and turion jobs get ft_… --follow picks the live view up again.
  • --detach prints the job id and returns. --json prints the created job as JSON and returns.
Terminal window
turion jobs list # recent jobs: status, progress, eval
turion jobs get ft_0123456789abcdef # one job in full
turion jobs get ft_0123456789abcdef -f # follow it live, as turion train does
turion jobs logs ft_0123456789abcdef # the trainer's log (last 64 KiB)
turion jobs cancel ft_0123456789abcdef # stop a queued or running job

turion jobs logs is the first place to look when a job fails. It holds the trainer’s own output: the dataset summary, the LoRA targets, warnings, and the error, with its progress events shortened to phase, step and eval lines (--raw prints the log exactly as stored). A job that ended before the trainer started has no log; jobs logs then says so and prints the job’s error.

A cancelled job stops on the GPU shortly after you cancel it. Cancelling a finished job answers 409 conflict. jobs list and jobs get take --json.

When the job has eval cases, turion jobs get and the end of turion train show:

eval base 61% → tuned 92% (50 cases)

Both numbers are pass rates on the same cases, generated greedily and scored with the matcher each case names. base — means the baseline was skipped. Evals explains the matchers and how to compare against other models with turion eval.

A training job is metered in GPU-seconds: the time the trainer spends loading and training on the GPU. Pulling the trainer image is not billed. turion jobs get shows the total for the job (gpu), and the same seconds appear as run GPU-seconds in turion usage. The list rate is $1.80 per GPU-hour, so a job that used 412 GPU-seconds costs about $0.21; the first 2 GPU-hours each month are free. See Pricing.

  • The trainer has a GPU to itself while it runs.
  • A job you cancel is not billed. Neither is a job the platform lost (a node that went away) or one stopped at the time limit. A job that fails because of its input (bad data, out of memory) is billed for the time it ran.
  • A job has a wall-clock limit, 6 hours by default. Past it the job fails with training exceeded the time limit; try fewer epochs, less data or a smaller base.
  • A running job counts as one of your jobs and model calls in flight against your account’s quota, and its seconds count against your monthly GPU-seconds. The allowance is checked when you submit, not during the run, so one long job can use up the month. A new account has 4 jobs and model calls in flight and 7,200 GPU-seconds (2 GPU-hours) a month; turion account shows yours, and hello@turion.ai raises them.

On success the job creates a private model, <handle>/<name>, with one version v1. That version serves the base model plus your adapter (or your full weights) with vLLM. It starts out undeployed: calls to it answer 409 model_not_deployed until you run turion deploy. The model is pinned to the fleet the job trained on.

The adapter or weights are stored on Turion and served from there. Weights stay private in your account and are never used for anyone else; export on request. There is no download endpoint; email hello@turion.ai for an export, and see Data & security for deletion.

--fleet acme/lab runs the job on a fleet you own instead of the shared pool, and the resulting model serves from that fleet. The trainer reserves the GPU memory the base needs for the method (the MIN VRAM column of turion bases) plus 2 GB of headroom, so a QLoRA job on a small base fits a 16 GB card, while full on a large base needs an 80 GB-class GPU. An hf: base has no catalog entry, so its job reserves the server default (80 GB). A fleet without a node that has that much free never picks the job up, and it stays queued.

StatusCodeMeaning
400validation_errora hyperparameter out of range or unknown, or a bad --name
404base_not_foundnot a catalog id; see turion bases, or use hf:<org>/<repo>
404not_foundno such dataset on your account
409dataset_not_readythe dataset is uploading or invalid
409name_takenthe model name is in use
422base_not_publican hf: repo that is private, gated or does not exist
422base_not_trainablethe base is a teacher
422unsupported_methodthe base does not offer that method
429quota_exceededan account quota is used up
503hf_unavailableHugging Face could not be reached to check an hf: base; retry

A job that fails after it started has status: failed and an error: the trainer’s own message, or a sentence when the platform was the cause (for example, the node running it went away twice).

import turion
job = turion.train(
base="gemma-4-e4b",
data="support.jsonl", # a path is validated and uploaded; a ds_… id is used as is
evals="evals.jsonl",
name="support-v3",
epochs=2, lr=1e-4, # any hyperparameter; lr and rank are aliases
)
job.wait(on_progress=lambda j: print(j.phase, j.progress))
job.raise_for_status() # raises for failed or cancelled jobs
print(job.eval) # metric='pass_rate' base=0.61 tuned=0.92 cases=50
job.deploy() # scale-to-zero deployment of acme/support-v3

job.wait() returns a failed or cancelled job instead of raising, and it rides out connection blips and 5xx answers. client.training.get/list/cancel/logs cover the rest; see the Python SDK reference.

Terminal window
curl -sX POST https://api.turion.ai/v1/training/jobs \
-H "Authorization: Bearer $TURION_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"base": "gemma-4-e4b", "dataset": "ds_0123456789abcdef",
"eval_dataset": "ds_fedcba9876543210", "name": "support-v3",
"hyperparams": {"epochs": 2}}'
curl -s https://api.turion.ai/v1/training/jobs/ft_0123456789abcdef \
-H "Authorization: Bearer $TURION_API_TOKEN"

Full shapes: REST API → Training jobs.