tenax ai add local
tenax ai add local¶
Run a model inside the cluster with Ollama: Tenax downloads it, serves it with no egress and runs the doctor
Synopsis¶
The server's init container downloads the model into the node's disk, and the pod reaches the internet only until the server is ready (--internet keeps it open); it admits only tenax-ai. --storage-class keeps the model on a volume of that class instead, downloaded once by a Job. Memory, CPU and disk default to the catalog's (tenax ai models); give them for other models. --dry-run prints the AIProvider to commit to Git instead.
Examples¶
tenax ai add local granite4:tiny-h
tenax ai add local mistral:7b --memory 6Gi --serves fallback --dry-run
Options¶
--context int context length in tokens (default 8192)
--cpu string CPU request (default: the catalog's)
--disk string disk for the downloaded model (default: the catalog's)
--dry-run print the AIProvider instead of creating it
--features string features and priorities, lower first, for example ask=1,backup-failure (with --serves features)
-h, --help help for local
--internet let the model server reach the internet while it serves (default: only while it downloads)
--memory string memory, requested and limited (default: the catalog's)
--name string provider name (default: from the model or the host)
--reason string why (recorded on the provider)
--serves string what the provider serves: all (every feature no provider names), features (only --features) or fallback (asked last, for every feature)
--storage-class string keep the model on a volume of this class (default: the chart's, else the node's disk)
--wait duration follow the download and start until the server is ready, at most this long
Options inherited from parent commands¶
--lang string language of this run's output, for example es or es_MX (over TENAX_LANG and the configured language)
-o, --output string output format: table, json or yaml (default "table")
--tenax-namespace string namespace Tenax runs in (default "tenax-system")
SEE ALSO¶
- tenax ai add - Add a live AI provider: a model that runs in the cluster, or an endpoint