CLI (v0.57.0)Reference
wriftai model-versions create
CLI reference for wriftai model-versions create
wriftai model-versions create
Create a model version
wriftai model-versions create [flags]Examples
Create a model version using only the required flags (inherits configuration from the previous version)
$ wriftai model-versions create \
--model johndoe/fraud-detector \
--release-notes "Improved detection accuracy" \
--container-image-digest sha256:9b4a26f1f6e6e4c548c06d8aafcddcfa033b92e2e7b1caaa92d28d21f12b3e59 \
--schemas '{"prediction":{"input":{"key":"value"},"output":{"text":"Hello world"}}}'
Create a model version enabling specific API compatibilities
$ wriftai model-versions create \
--model johndoe/fraud-detector \
--release-notes "Improved detection accuracy" \
--container-image-digest sha256:9b4a26f1f6e6e4c548c06d8aafcddcfa033b92e2e7b1caaa92d28d21f12b3e59 \
--schemas '{"prediction":{"input":{"key":"value"},"output":{"text":"Hello world"}}}' \
--compatibility openai_chat_completions --compatibility anthropic_messages
Create a model version with a specific hardware and variable keys
$ wriftai model-versions create \
--model johndoe/fraud-detector \
--release-notes "Improved detection accuracy" \
--container-image-digest sha256:9b4a26f1f6e6e4c548c06d8aafcddcfa033b92e2e7b1caaa92d28d21f12b3e59 \
--schemas '{"prediction":{"input":{"key":"value"},"output":{"text":"Hello world"}}}' \
--hardware-identifier l40s --variable-key TORCH_COMPILE --variable-key MY_API_KEY
Create a model version using comma-separated compatibilities and variable keys
$ wriftai model-versions create \
--model johndoe/fraud-detector \
--release-notes "Improved detection accuracy" \
--container-image-digest sha256:9b4a26f1f6e6e4c548c06d8aafcddcfa033b92e2e7b1caaa92d28d21f12b3e59 \
--schemas '{"prediction":{"input":{"key":"value"},"output":{"text":"Hello world"}}}' \
--compatibility openai_chat_completions,anthropic_messages \
--hardware-identifier l40s --variable-key TORCH_COMPILE,MY_API_KEYOptions
--compatibility strings API compatibility to enable (can be specified multiple times or comma-separated). Valid values: anthropic_messages, openai_chat_completions, openai_embeddings, openai_images_generations, openai_responses
--container-image-digest string A sha256 hash digest of the version's container image (required)
--hardware-identifier string The hardware identifier for the new version. Omit both this and --variable-key to inherit configuration from the previous version.
-h, --help help for create
--model string Model identifier in owner/name format (required)
-o, --output format Set output format. Supported formats: json, yaml (default json)
--release-notes string Information about changes such as new features, bug fixes, or optimizations in this version (required)
--schemas string JSON string containing schemas of the model version (required)
--variable-key strings A variable key for the new version (can be specified multiple times or comma-separated). Requires --hardware-identifier to also be set.Options inherited from parent commands
--debug Enable debug modeSEE ALSO
- wriftai model-versions - Operations related to model versions on WriftAI