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

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.24
File Size Uploaded Provenance Actions
pfnstudio-0.8.24.tar.gz 135.1 kB Without provenance Details for pfnstudio-0.8.24.tar.gz

Built distribution (wheel)

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

Total release size: 303.8 kB

Release files / pfnstudio-0.8.24.tar.gz

Download URL pfnstudio-0.8.24.tar.gz
Size 135.1 kB
Tags Source
SHA-256 checksum
How to use checksums
015da723f1d519b39808d5af08ecd9fe4caf8341b91e6f14622eafc8e938f45b
BLAKE2b-256 checksum
How to use checksums
639ce4b8759e2cfd95315f125772096a903d90a4f1c36e2b67f902db684801fc
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.24-py3-none-any.whl

Download URL pfnstudio-0.8.24-py3-none-any.whl
Size 168.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20521ddec60f67867223705f174dc9263c2f7f2ec4be164564a957452b743073
BLAKE2b-256 checksum
How to use checksums
0ebcb03ce344846fa47636ee9ead39a2d0807bf859acf560346efd560d98baca
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.24

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