Choose a model
client.models() (CLI nextron-cloud models) is the live list. Per model:
methods: the ways it trains or serves (full,lora,dpo,grpo,interactivefor Serverless RL,inference).fullandloraeach havemax_seq_len(the longest sample it trains),price_per_mtok(US cents per million tokens trained) andlayouts(GPU setups, in the orderlayout="auto"tries them).layouts[id]:gpus,tokens_per_s_per_gpu,available(a job would start now),queued(jobs ahead).batch_size/validation_set: whetherparams.batch_size/params.val_dataset_idare accepted. Large expert-parallel models set their own batch, and some take no validation set yet.methods[m].defaults: the optimizer and step settings a job trains with unless it sets them (max_grad_norm, 0 = no clipping;adam_beta1,adam_beta2,adam_epsilon; for LoRAlora_rank,lora_alpha,lora_dropout), for LoRAlora_save(what a job saves unless it sets it), andmethods[m].max_tokens_per_gpu: the largesttokens_per_gpu(null where the model trains with its tuned step).name,maker,params,active_params,architecture.
max_seq_len that holds the data (dataset.tokens[model].max), price, and queue.
Longer-context versions are separate ids (for example ...-256k, or qwen4-35b-a3b-1m for samples up to 1M tokens)
with their own price.
Methods
- full: every weight trained; FP32 master weights, gradients and AdamW states, BF16 compute.
- lora: rank 32, alpha 64, on every linear layer of the language model (routed MoE experts excluded); base
weights frozen. The checkpoint is the adapters alone (peft’s layout) on
qwen3.5-4b,qwen3.8-27b,muse-glimmer-30b,qwen3.6-35b-a3b,gemma-4-26b-a4bandkimi-k3.1-pro;lora_save: "merged"saves the full model instead. On the other models it is the merged model (lora_save: "adapter"for the adapters). Inference runs andfrom_jobtake either: an adapters-only job is merged into its base on the cluster first. Checkpoints. Most models have it; the Olmo-3 models and the long-context ids (...-256k,...-1m) do not (a model’smethodssay so). The larger models train LoRA on fewer GPUs than a full fine-tune: withlayout="auto"the job takes the smallest setup that trains it.
Start from a job’s model
A job can train on from the model another job saved instead of from the base model:from_job, on every method
(--param from_job=job_...) and on an RL run (rl start --from-job job_...). Chain them as you like: SFT then RFT,
LoRA on a full fine-tune, a second pass on new data.
from_job also takes an RL run (rl_...), so an RL run can go on from where an earlier one stopped, and a checkpoint
you uploaded (ckpt_..., Checkpoints). The job or RL run must be yours, of the same model and
finished without an error (an RL run must have trained at least one step), and its checkpoint must still be stored
(30 days after training). In the first 7 days the model is still on the cluster that trained it and the new job starts at
once; after that it is fetched from storage first, which takes some minutes and is not billed. The models with expert
parallelism (120B and up) do not take it yet: nextron-cloud models shows from_job for each model. The price is the
model’s own.
Resume a failed job
A long job saves its state about every half hour while it trains (the weights, the optimizer and its place in the data), on the models that listresume in nextron-cloud models. If a node fails, the job goes back in the queue and
goes on from its last save by itself. If the job fails, jobs get shows the step of that save as resumable_step,
and a new job can go on from it:
resume_from set, so a changed
setting is refused. It runs on the same cluster, starts at the step after the save, and is billed for the whole
training once: the failed job is not charged, the job that finishes is charged every step. The save is kept 7 days
after the failure.
Params
All optional; the server fills the rest from a tested recipe for the model.wandb={"api_key": ..., "project": ..., "entity": ..., "run_name": ...} also logs to the owner’s Weights & Biases
(the key is stored encrypted and never returned).
Batch and steps
A step’s size is set one of three ways: by default (each GPU packsmax_tokens_per_gpu tokens, below); by
batch_size (samples a step); or by tokens_per_gpu with gradient_accumulation_steps (a step is about
gpus x tokens_per_gpu x gradient_accumulation_steps tokens, in whole samples). The last works where
max_tokens_per_gpu is set, including models without batch_size; the estimate’s steps shows what it gives.
Without batch_size, each GPU packs about 64K tokens a step (128K for qwen3.8-27b and gemma-4-26b-a4b), so a step
on 8 GPUs trains roughly 470K tokens (about 1M on those two), whatever the sample lengths. Steps per epoch ≈ dataset
tokens (dataset.tokens[model].total) / tokens a step: 5M tokens on 8 GPUs ≈ 11 steps an epoch at 64K, 5 at 128K. max_steps cannot add steps beyond the epochs.
batch_size (samples a step, where models() allows it) gives smaller, more numerous steps, but each GPU must get at
least 8K tokens a step: the smallest batch is about 8 GPUs × 8,192 / average sample length (the server refuses less
and says the minimum). Below about 16K a step runs less efficiently (a notice says so): 6,000 short image samples at
8K tokens a GPU trained qwen3.5-4b at 6,200-8,700 tokens/s/GPU (12,000 listed) and qwen3.6-35b-a3b at
1,100-2,200 (11,500 listed); the cost per token is the same, the run takes longer. The job’s notices report the
batch it actually used.
Decide with the steps the job will really have: estimate returns steps for the batch you give. The same data can be
under one step at the default batch and 17 steps at the smallest allowed batch_size.
Small datasets
A dataset under one step’s tokens (see above; for example a few thousand short support conversations) trains one step per epoch, andbatch_size cannot help when the minimum batch is larger than the dataset. Then:
num_train_epochs(up to 20) is then the number of optimizer steps. Sweep it (for example 3 / 6 / 10) and pick byval_loss; with so few steps, warmup and the schedule hardly matter.- Or add data: more examples, or several phrasings per example, usually helps more than more epochs.
- The run is cheap (cents), so the smoke run and the real run are the same job.
Cost and time
jobs.estimatereturns what is held from the balance: estimated tokens × price. When the job ends it is charged for the tokens it actually trained, rounded up to whole cents, and the rest is released.- Every token of every sample is billed: system, user and assistant messages plus the chat template’s few tokens
per message, not only the assistant tokens the loss is computed on. So
job.tokens_trainedis a little abovedataset.tokens[model].total× epochs. - The estimate counts with the largest token count over all models (
est_tokens), so the charge can come out a little above or below it. - With
layout="auto"andmax_steps, the hold is for the largest GPU setup the model may get. A setup picked by hand raises the price per token by 5% for each size above the model’s smallest (Qwen on 16 GPUs: 1.05×, 32: 1.10×);autonever does. - A failed job is free; a cancelled one pays for the tokens trained before it stopped. Validation passes are not
charged.
metered: falsemeans the model has no price: the job is free. estimateruns the same checks ascreateand raisesAPIError(422) with the reason when the job would be refused. Otherwise it also returnsparams(the settings it would run with),steps(about how many optimizer steps; None for the large models with a tuned pack),truncated_samplesandwarnings(FEW_STEPS,SAMPLES_TRUNCATED).- After a job ends,
jobs.billing(job_id)gives what it held and was charged (charged_credits, US cents). - Training time ≈ tokens / (
tokens_per_s_per_gpu× GPUs), plus fixed time around it (medians of past jobs):
Plus the wait in the queue when no GPU setup is free (
models() shows available and queued). Uploads from one
cluster go one at a time, so an upload can wait behind other jobs’. The first step is slow (kernels compile); the
steps after it show the real speed.
Running experiments
- Smoke run first on new data or a new model, when the data is larger than a few steps:
max_steps: 3, an explicitlayout(the smallest inmethods[...].layouts, so the estimate is not held for a larger setup) and, where the model takes one, the smallestbatch_size(a too-small one gets a 422 naming the minimum). A default step is large (see Batch and steps), so 3 default steps can cost half an epoch. Every succeeded job also uploads a full checkpoint (tens of GB), smoke runs included. Its loss should be finite and in a normal range (about 0.3-3 for chat data). For small datasets see above: the real run is already small. - One change at a time between runs; same data, same seed.
- Validation set on every real run, from the same distribution as the training data but not in it. Compare runs
on
val_loss, not training loss. Keep a separate test set that is never uploaded for the final comparison with the base model: the validation set steers your choices, so it is no longer an unbiased judge. - Sweeps: an account can have 10 jobs queued or running. Submit the whole sweep (
nextron-cloud sweep, below), then wait; jobs queue when GPUs are busy and run in submission order.jobs.list()returns every job of the organisation, other members’ and older runs included, so find yours by tag. - A budget means what is charged, but plan with the estimates (
credits, what is held): the charge stays close to them and is usually a little lower or higher. Sum the estimates of every job you propose. - Learning rate is the first thing to sweep: for example full 5e-6 / 1e-5 / 2e-5, LoRA 5e-5 / 1e-4 / 2e-4.
Then epochs (1-3): stop increasing when
val_lossturns up. - Too few steps (under ~20) make warmup and the schedule coarse: set
batch_sizesmaller or train more epochs. - Name every job after what it tests, and give related jobs a tag;
reportthen compares them without a separate log. - Only the final step’s checkpoint is kept. When the best
val_lossis at an earlier step, train again with that many steps (or epochs) to get its weights.
sweep:<name>:
nextron_cloud.experiments.sweep(client, name=..., model=..., dataset_id=..., axes={...}, params={...}, start=False) returns the estimates; start=True creates the jobs. Starting the same sweep again creates nothing new.
experiments.report(client, tag=...) returns the comparison rows.