This release is a pre-release and may not be stable for production use.
nextron-cloud
Release candidate. The API may still change before 0.1.0; install with
--prerelease=allow.
Python SDK and CLI for NexCloud, which trains open models in two modes and serves what it trained:
- Managed training: one request (model + dataset + settings) fine-tunes a model and leaves a checkpoint to download: supervised fine-tuning (full parameter or LoRA), preference training (DPO) and reinforcement fine-tuning with a built-in reward (RFT). This page starts there.
- Serverless RL: a loaded model your own RL loop samples from and trains, step by step:
client.rl.connect(id)withsampleandtrain, or thetinkerSDK and tinker-cookbook unchanged; see serverless-rl.md. - Inference: a finished job's model served on the GPUs that trained it, before you download it, called with this SDK or any OpenAI client; see inference.md.
uv venv && uv pip install --prerelease=allow nextron-cloud # or, in a uv project: uv add --prerelease=allow nextron-cloud
export NEXTRON_API_KEY="nk_live_..." # API keys page on nextron.physionlabs.ai
uv run nextron-cloud models # what can be trained now, at what price
Commands below are written as nextron-cloud ...; run them with uv run (or activate .venv).
from nextron_cloud import NexTron
client = NexTron()
dataset = client.datasets.wait(client.datasets.upload("train.jsonl").id) # checked locally, then by the server
draft = dict(model="qwen3.8-27b", dataset_id=dataset.id, params={"train_type": "lora", "learning_rate": 1e-4})
print(client.jobs.estimate(**draft)) # cost in US cents: get a yes first
job = client.jobs.wait(client.jobs.create(**draft, name="first try").id) # only after the cost is approved
print(job.state, client.jobs.metrics(job.id)[-1])
client.jobs.wait_checkpoint(job.id) # later: weights stay 30 days
client.jobs.download_checkpoint(job.id, f"checkpoints/{job.id}")
Start with an agent
Install, set the key, then paste this to your coding agent (Claude Code, Codex, ...). It asks what you need, then prepares the data and shows you the cost before it starts anything.
Run a training experiment for me on NexCloud, a managed training service: one request fine-tunes a model on
its GPUs (on example replies, on pairs of a preferred and a rejected reply, or with reinforcement learning against
known answers) and leaves a checkpoint to download.
Setup
- Install the SDK with uv in this project: `uv venv && uv pip install --prerelease=allow nextron-cloud`
(in a uv project: `uv add --prerelease=allow nextron-cloud`). Run its commands with `uv run`, e.g.
`uv run nextron-cloud guide`.
- Source and docs: https://github.com/Physion-Labs/nextron-python
- My API key is in the environment variable NEXTRON_API_KEY. Never print it or write it into a file.
- Before anything else run `uv run nextron-cloud guide` and read all of it. At each step read its topic too:
`nextron-cloud guide data`, `... training`, `... rl`, `... dpo`, `... monitoring`, `... checkpoints`,
`... inference`, `... api`. Follow its rules.
The experiment
- Model: ask me, or pick one from `nextron-cloud models` and tell me why.
- After reading the guide, ask me what I need before you prepare anything, a few questions at a time: what the
model should do better; whether to train on my own data (a file or a Hugging Face link, and which fields are the
input and which the answer) or on one of the sample datasets (`nextron-cloud datasets list --sample --table`);
how I will judge the result; and my budget. Suggest answers where you can, e.g. a held-out split of my data
compared with the base model. If a reply can be checked against a known answer (math, multiple choice, short
exact answers), say whether reinforcement learning (`nextron-cloud guide rl`) fits better than example replies.
- Spend at most the budget I give you unless I approve more.
How to work
- Prepare and check the data, hold out a validation set, upload, and plan a small first run (for reinforcement
learning, 2-3 rounds to read the starting reward).
- Before anything that costs money, show me the model, settings, estimated cost, steps, time and warnings, and
how long the data is: its tokens and longest sample, the model's max_seq_len and how many samples would be
truncated. Wait for my yes. Never start a job I have not approved.
- Give every job a name and a tag for this experiment.
- While jobs run, watch them (`nextron-cloud jobs progress` / `jobs events`) and tell me at once if one fails or
stalls.
- When training ends, report loss and validation loss (reinforcement learning: the reward per round; preference
pairs: the loss, and the answers on held-out prompts), what was charged, what you conclude, and what you would try next. Download checkpoints only when I ask.
- Keep everything you write in this project directory.
Documentation
The guide is written for people and coding agents alike, in skills/nextron-cloud:
- SKILL.md: setup, rules, an experiment end to end
- data.md: the sample format, what training learns from, checks
- training.md: models, params, batch, cost and time, sweeps
- monitoring.md: states, metrics, failures, API errors
- rl.md: reinforcement fine-tuning (RFT, a GRPO job) with built-in rewards
- dpo.md: preference training (a DPO job) on pairs of a chosen and a rejected reply
- checkpoints.md: download, serve, evaluate
- serverless-rl.md: Serverless RL: your own RL loop with
sampleandtrain, or thetinkerSDK and tinker-cookbook, on NexCloud's GPUs - inference.md: an inference run: try a trained model without downloading it
- api.md: every SDK call and CLI command
- examples/compare_outputs.py: answer held-out prompts with the fine-tuned and the base model side by side
Claude Code: /plugin install nextron-cloud --marketplace Physion-Labs/nextron-python installs it as a skill.
Other agents: point them at AGENTS.md.
Metadata
Release files for nextron-cloud 0.1.0rc21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nextron_cloud-0.1.0rc21.tar.gz | 78.7 kB | With provenance | Details for nextron_cloud-0.1.0rc21.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nextron_cloud-0.1.0rc21-py3-none-any.whl | Python 3 | none | any | Details for nextron_cloud-0.1.0rc21-py3-none-any.whl |
Total release size: 168.4 kB
Release files / nextron_cloud-0.1.0rc21.tar.gz
| Download URL | nextron_cloud-0.1.0rc21.tar.gz |
|---|---|
| Size | 78.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8784c40e8f8b0862d8de6f54e331c3f10b32e5935c75d3a790e45e613aaa622a
|
|
BLAKE2b-256 checksum How to use checksums |
c295d6ffb509380ab34808a86df8ae100de9bd03c14728240b8aaaf58b833464
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / nextron_cloud-0.1.0rc21-py3-none-any.whl
| Download URL | nextron_cloud-0.1.0rc21-py3-none-any.whl |
|---|---|
| Size | 89.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a9cb8f77285217f5b396ee5d40a38779f88dd185b378eb4a1623dca8e32dd89
|
|
BLAKE2b-256 checksum How to use checksums |
6bc141d62b10d88a861778d5ca59c697e490ece63d38be06a70ff5ce4876b46c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for nextron-cloud 0.1.0rc21
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for nextron_cloud-0.1.0rc21.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.