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

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.25
File Size Uploaded Provenance Actions
pfnstudio-0.8.25.tar.gz 135.5 kB Without provenance Details for pfnstudio-0.8.25.tar.gz

Built distribution (wheel)

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

Total release size: 304.8 kB

Release files / pfnstudio-0.8.25.tar.gz

Download URL pfnstudio-0.8.25.tar.gz
Size 135.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b31fc38cb8e8f9ba37a1c98b12e055d2f63d633be8fb9cbf60cd08e13fda39a8
BLAKE2b-256 checksum
How to use checksums
7724b089df3e28a290a0a60496077228ec4548a1217c261f91403cb31efe3178
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.25-py3-none-any.whl

Download URL pfnstudio-0.8.25-py3-none-any.whl
Size 169.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ad1755c98f618b8a8973c5adeb862ad970caacc7a8e873428f26419d50db44f
BLAKE2b-256 checksum
How to use checksums
c597dd63ae023aa48916067172cd70de3d027473fe05d7025328a0ee3941e235
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.25

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