Skip to main content

pfnstudio — CLI

The command-line interface for PFN Studio, the toolkit for training prior-fitted foundation models.

Install

pip install pfnstudio

Run a pretrained base model. The first run lists what the model needs and this Python lacks (PyTorch, the model's own packages) and asks before installing it; -y installs without asking. Use a virtual environment of its own so those packages don't change another project's.

pip install pfnstudio
pfnstudio run ceptron-xs-discovery --input sample

--input sample runs the sample input pfnstudio ships for that model and prints the file's path: copy it, put your data in, and pass --input your.json.

For training (requires PyTorch):

pip install "pfnstudio[torch]"

Commands

pfnstudio init <dir>            # scaffold a new FM project
pfnstudio validate <path>       # check artifacts against JSON Schema
pfnstudio lint <project>        # cross-reference + style checks
pfnstudio sample <prior.yaml>   # draw N tasks from a prior
pfnstudio run <run.yaml>        # execute a training run end-to-end
pfnstudio predict <run-dir>     # inference against a trained checkpoint
pfnstudio export <project>     # tar-gzipped project archive

Base models from the marketplace, Ollama-shaped — the CLI is a client of a local daemon that hosts the models:

pfnstudio run <slug>[:tag]      # pull, pin (lock.json + digest), load into the daemon, run its sample
                                #   asks before installing PyTorch + the model's packages (-y: don't ask)
                                #   --input sample: the shipped sample input · --input f.json: your data
pfnstudio pull <slug>[:tag]     # fetch the adapter bundle + checkpoint into the local store, no run
pfnstudio ls                    # what is in the local store (slug, tag, digest, sizes, loaded?)
pfnstudio ps                    # what the daemon has loaded right now
pfnstudio show <slug>           # listing, lock, tasks (capabilities) of one model
pfnstudio rm <slug>[:tag]       # delete it from the store (asks first; shared weights are kept)
pfnstudio serve                 # run the daemon in the foreground (`run` starts it on demand)
pfnstudio create <name> -f Pfnfile   # compose a model in the studio FROM a base model; `run <name>` uses it

pfnstudio serve <run.yaml> --checkpoint <dir> is the single-model form the model container and the studio's Deployments use.

Run pfnstudio --help for the full list and <cmd> --help for each subcommand's flags.

What this CLI is for

PFN Studio organises every PFN project around five first-class artifacts: priors (synthetic data generators), models (block compositions), evals (benchmarks + metrics), runs (training manifests), and initiatives (research workstreams). This CLI operates on the file layout those artifacts produce — scaffolding new projects, validating them, running training, and exporting them for sharing.

The full story (concepts, architecture, examples, marketplace catalog) lives at the main repo: github.com/profitopsai/pfnstudio

License

Apache-2.0.

Metadata

Release files for pfnstudio 0.8.23

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

Source distribution (sdist)

Source distribution for pfnstudio 0.8.23
File Size Uploaded Provenance Actions
pfnstudio-0.8.23.tar.gz 133.5 kB Without provenance Details for pfnstudio-0.8.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pfnstudio 0.8.23
File Interpreter ABI Platform Actions
pfnstudio-0.8.23-py3-none-any.whl Python 3 none any Details for pfnstudio-0.8.23-py3-none-any.whl

Total release size: 295.9 kB

Release files / pfnstudio-0.8.23.tar.gz

Download URL pfnstudio-0.8.23.tar.gz
Size 133.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a5eb2d127f63850b14f5c5477be40177b3b84803a6fdce3b242d74cbec51eb4b
BLAKE2b-256 checksum
How to use checksums
df358422f99742bd6e7ae0af3bbed4f457b2d711b65b1a0d243bd696f9da522f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / pfnstudio-0.8.23-py3-none-any.whl

Download URL pfnstudio-0.8.23-py3-none-any.whl
Size 162.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c7bd548b4ffedf9377df7e65a0bab5ef3467af8e21a559c3e2e702d7cd897f1
BLAKE2b-256 checksum
How to use checksums
c15563e93148672805cc88d45eb4a11183d468968fcd95aed2dc70c7dec660f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for pfnstudio 0.8.23

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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