title | content_type | package | auto_generated | description |
---|---|---|---|---|
llmaz core API |
tool-reference |
llmaz.io/v1alpha1 |
true |
Generated API reference documentation for llmaz.io/v1alpha1. |
Appears in:
OpenModel is the Schema for the open models API
Field | Description |
---|---|
apiVersion string | llmaz.io/v1alpha1 |
kind string | OpenModel |
spec [Required]ModelSpec
|
No description provided. |
status [Required]ModelStatus
|
No description provided. |
Appears in:
Flavor defines the accelerator requirements for a model and the necessary parameters in autoscaling. Right now, it will be used in two places:
- Pod scheduling with node selectors specified.
- Cluster autoscaling with essential parameters provided.
Field | Description |
---|---|
name [Required]FlavorName
|
Name represents the flavor name, which will be used in model claim. |
limits k8s.io/api/core/v1.ResourceList
|
Limits defines the required accelerators to serve the model for each replica, like <nvidia.com/gpu: 8>. For multi-hosts cases, the limits here indicates the resource requirements for each replica, usually equals to the TP size. Not recommended to set the cpu and memory usage here:
|
nodeSelector map[string]string
|
NodeSelector represents the node candidates for Pod placements, if a node doesn't meet the nodeSelector, it will be filtered out in the resourceFungibility scheduler plugin. If nodeSelector is empty, it means every node is a candidate. |
params map[string]string
|
Params stores other useful parameters and will be consumed by cluster-autoscaler / Karpenter for autoscaling or be defined as model parallelism parameters like TP or PP size. E.g. with autoscaling, when scaling up nodes with 8x Nvidia A00, the parameter can be injected with <INSTANCE-TYPE: p4d.24xlarge> for AWS. Preset parameters: TP, PP, INSTANCE-TYPE. |
(Alias of string
)
Appears in:
Appears in:
InferenceConfig represents the inference configurations for the model.
Field | Description |
---|---|
flavors []Flavor
|
Flavors represents the accelerator requirements to serve the model. Flavors are fungible following the priority represented by the slice order. |
Appears in:
ModelHub represents the model registry for model downloads.
Field | Description |
---|---|
name string
|
Name refers to the model registry, such as huggingface. |
modelID [Required]string
|
ModelID refers to the model identifier on model hub, such as meta-llama/Meta-Llama-3-8B. |
filename [Required]string
|
Filename refers to a specified model file rather than the whole repo. This is helpful to download a specified GGUF model rather than downloading the whole repo which includes all kinds of quantized models. TODO: this is only supported with Huggingface, add support for ModelScope in the near future. Note: once filename is set, allowPatterns and ignorePatterns should be left unset. |
revision string
|
Revision refers to a Git revision id which can be a branch name, a tag, or a commit hash. |
allowPatterns []string
|
AllowPatterns refers to files matched with at least one pattern will be downloaded. |
ignorePatterns []string
|
IgnorePatterns refers to files matched with any of the patterns will not be downloaded. |
(Alias of string
)
Appears in:
Appears in:
ModelRef refers to a created Model with it's role.
Field | Description |
---|---|
name [Required]ModelName
|
Name represents the model name. |
role ModelRole
|
Role represents the model role once more than one model is required. Such as a draft role, which means running with SpeculativeDecoding, and default arguments for backend will be searched in backendRuntime with the name of speculative-decoding. |
(Alias of string
)
Appears in:
Appears in:
ModelSource represents the source of the model. Only one model source will be used.
Field | Description |
---|---|
modelHub ModelHub
|
ModelHub represents the model registry for model downloads. |
uri URIProtocol
|
URI represents a various kinds of model sources following the uri protocol, protocol://, e.g.
|
Appears in:
ModelSpec defines the desired state of Model
Field | Description |
---|---|
familyName [Required]ModelName
|
FamilyName represents the model type, like llama2, which will be auto injected
to the labels with the key of |
source [Required]ModelSource
|
Source represents the source of the model, there're several ways to load the model such as loading from huggingface, OCI registry, s3, host path and so on. |
inferenceConfig [Required]InferenceConfig
|
InferenceConfig represents the inference configurations for the model. |
Appears in:
ModelStatus defines the observed state of Model
Field | Description |
---|---|
conditions [Required][]k8s.io/apimachinery/pkg/apis/meta/v1.Condition
|
Conditions represents the Inference condition. |
(Alias of string
)
Appears in:
URIProtocol represents the protocol of the URI.