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 — --install-deps installs what it needs on the first run (PyTorch when missing, then the model's own packages):

pip install pfnstudio
pfnstudio run cdfm-base --install-deps

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
                                #   --install-deps: PyTorch + the model's packages, on first run
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.21

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.21
File Size Uploaded Provenance Actions
pfnstudio-0.8.21.tar.gz 114.1 kB Without provenance Details for pfnstudio-0.8.21.tar.gz

Built distribution (wheel)

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

Total release size: 247.9 kB

Release files / pfnstudio-0.8.21.tar.gz

Download URL pfnstudio-0.8.21.tar.gz
Size 114.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4a192df3b32c09284aafe76ad470cb7e0d6d9f588b1b1341a03a6339f3b687f8
BLAKE2b-256 checksum
How to use checksums
b1d9d84c202c04c0973c7bddffb480928f3a2a57e832e6579f1dac44f7693cd9
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.21-py3-none-any.whl

Download URL pfnstudio-0.8.21-py3-none-any.whl
Size 133.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cca06b80b30a21a6d77163349822cfc2783a3301ed3e47c775f72359cbc26e41
BLAKE2b-256 checksum
How to use checksums
deaadbec6564241bcf20e2632df814aa1995527c9437b36eba8d8838052415ce
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.21

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