CLI (v0.44.0)Reference
wriftai model run
CLI reference for wriftai model run
wriftai model run
Pull and run a model locally
Synopsis
Pull and run a model locally. The model is pulled only if it’s not already in the local cache.
wriftai model run <owner/name[:version-number]> [flags]Examples
Run the latest version of a model
$ wriftai model run johndoe/sentiment-analyzer
Run a specific version of a model
$ wriftai model run johndoe/sentiment-analyzer:2
Run a model on a specific port
$ wriftai model run johndoe/sentiment-analyzer --port 1234
Run a model with environment variables
$ wriftai model run johndoe/sentiment-analyzer \
--env ENV_VAR_1=VALUE_1 \
--env ENV_VAR_2=VALUE_2Options
-e, --env stringArray Set environment variables (format: KEY=value). Can be specified multiple times.
-h, --help help for run
-p, --port string The port on which the server will run. (default "8000")Options inherited from parent commands
--debug Enable debug modeSEE ALSO
- wriftai model - Develop and publish models