Skip to main content
Pre-release

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 NexTron Cloud: fine-tune open models with one request (model + dataset + settings) and download the trained checkpoint.

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 fine-tuning experiment for me on NexTron Cloud, a managed training service: one request trains a model on
its GPUs 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`, `... monitoring`, `... checkpoints`, `... 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.
- 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.
- 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, 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:

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.0rc2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nextron-cloud 0.1.0rc2
File Size Uploaded Provenance Actions
nextron_cloud-0.1.0rc2.tar.gz 40.2 kB With provenance Details for nextron_cloud-0.1.0rc2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nextron-cloud 0.1.0rc2
File Interpreter ABI Platform Actions
nextron_cloud-0.1.0rc2-py3-none-any.whl Python 3 none any Details for nextron_cloud-0.1.0rc2-py3-none-any.whl

Total release size: 89.0 kB

Release files / nextron_cloud-0.1.0rc2.tar.gz

Download URL nextron_cloud-0.1.0rc2.tar.gz
Size 40.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3b6cbabda89b34f1f28a970f161bcc94b674d3003af16f5b046e5eeb150f2cea
BLAKE2b-256 checksum
How to use checksums
3207e4d64544b46d901d3fc1460aaa57cd657be731b301d14348833e3bc525f5
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 13, 2026.

Transparency log

Release files / nextron_cloud-0.1.0rc2-py3-none-any.whl

Download URL nextron_cloud-0.1.0rc2-py3-none-any.whl
Size 48.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4e412eb6591a8aa831237e43538505419bed9ec938114cd1e397802f25463c4
BLAKE2b-256 checksum
How to use checksums
4bd2e697d78895d7cc0b66a042725ba09a506038a3b08c7213727ba17cc62ff7
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 13, 2026.

Transparency log

Security for nextron-cloud 0.1.0rc2

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.

Select from 2 files

Attestation for nextron_cloud-0.1.0rc2.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 13, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page