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

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.22
File Size Uploaded Provenance Actions
pfnstudio-0.8.22.tar.gz 133.5 kB Without provenance Details for pfnstudio-0.8.22.tar.gz

Built distribution (wheel)

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

Total release size: 296.0 kB

Release files / pfnstudio-0.8.22.tar.gz

Download URL pfnstudio-0.8.22.tar.gz
Size 133.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5c264463d030dc73743e943fb6320fa38f46057febf8c639356f1430eae977f7
BLAKE2b-256 checksum
How to use checksums
8136780b467390b66d747e14cfdb1b5e2bac577a272b5cfd95facee1f954d8a1
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.22-py3-none-any.whl

Download URL pfnstudio-0.8.22-py3-none-any.whl
Size 162.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ff87fe4c14b574dbb9e3dcd5abcc32d976e97aebe27e5ec0262b7109b67e634
BLAKE2b-256 checksum
How to use checksums
9d62536e2475c9d104681948adf930606cddd3136310f8e5437dfeede074adbf
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.22

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