CLI reference¶
This page lists the main command-line entrypoints used in the repository. Use it as the quick map of “which command should I run?”.
KonfAI uses four main command-line entrypoints:
konfaikonfai-appskonfai-apps-serverkonfai-cluster
konfai¶
Low-level workflow runner for training, prediction, and evaluation.
Use konfai when you are still designing a workflow directly from YAML.
Commands¶
Command |
Purpose |
|---|---|
|
Train a model from scratch. |
|
Resume training from a checkpoint. |
|
Run inference using one or more checkpoints. |
|
Compute metrics on saved outputs. |
Common options¶
Option |
Meaning |
|---|---|
|
YAML file to use. |
|
Overwrite existing outputs without prompting. |
|
One or more GPU ids. |
|
Number of CPU workers when not using GPUs. |
|
Reduce console output. |
|
Launch TensorBoard. |
Command-specific options¶
TRAIN
--checkpoints-dir--statistics-dir
RESUME
--model--checkpoints-dir--statistics-dir
PREDICTION
--models--predictions-dir
EVALUATION
--evaluations-dir
konfai-apps¶
Higher-level packaged workflow runner.
Use konfai-apps when a workflow is already packaged as a KonfAI App and you
want a simpler interface than the low-level YAML CLI.
This command is provided by the standalone konfai-apps package.
Commands¶
Command |
Purpose |
|---|---|
|
Run inference for an app. |
|
Run evaluation for an app. |
|
Run uncertainty estimation for an app. |
|
Chain inference, evaluation, and optional uncertainty. |
|
Fine-tune an app on a dataset. |
Important command-specific options¶
infer
--ensemble--ensemble-models--tta--mc-uncertainty--prediction-file(alias:--prediction_file)
eval
--gt--mask--evaluation-file(alias:--evaluation_file)
uncertainty
--uncertainty-file(alias:--uncertainty_file)
pipeline
combines the options from
infer,eval, anduncertainty
fine-tune
positional
name-d,--dataset--epochs--it-validation
konfai-apps-server¶
FastAPI server exposing packaged apps remotely.
This command is the server-side counterpart of konfai-apps --host ....
It is also provided by the standalone konfai-apps package.
Important options:
Option |
Meaning |
|---|---|
|
Bind address. |
|
Bind port. |
|
|
|
Environment variable holding the token. |
|
Development-only token override. |
|
JSON file listing the available apps. |
|
Pre-download configured apps at startup. |
|
Validate configured apps without downloading them. |
konfai-cluster¶
Cluster-oriented wrapper around the low-level konfai commands.
It adds job-submission options such as:
--name--num-nodes--memory--time-limit--resubmit
The cluster command depends on the optional cluster extra.