Structure of a Packflow Project
Packflow provides utilities for ensuring projects are archived in a consistent, reproducible format, ensuring downstream users can process and deploy Packflow projects in a reliable or automated fashion.
The packflow CLI provides a lightweight templating command, packflow create ..., to initialize a Packflow project, consisting of the following files:
File |
Required |
Description |
Default State |
|---|---|---|---|
|
Yes |
high-level metadata and configuration file housing information such as Python version, Inference Backend class, etc. |
Template |
|
Yes |
requirements file specifying the list of Python dependencies |
Contains only |
|
Recommended |
markdown file documenting model details, limitations, ownership, etc. |
Template |
|
Recommended |
the applicable licensing information for the project |
Blank |
|
Recommended |
readme file for use by developers and other contributors |
Template |
|
Yes |
inference file containing the |
Template |
|
Recommended |
validation file which can be run to ensure the |
Template |
|
Recommended |
pytest test file providing a starting point for testing the |
Template |
The packflow CLI also contains the packflow export ... command for bundling these components into a single zipped archive,
simplifying the process of sharing and deploying inference code across different organizations and environments.
See the CLI Reference for details on these commands.