Repository navigation
Open
Labels
featureCategorizes issue or PR as related to a new feature.needs-priorityIndicates a PR lacks a label and requires one.needs-triageIndicates an issue or PR lacks a label and requires one.
Description
What would you like to be added:
apiVersion: llmaz.io/v1alpha1
kind: OpenModel
metadata:
name: opt-125m
spec:
familyName: opt
source:
modelHub:
modelID: facebook/opt-125m
inferenceConfig:
flavors:
- name: h800
priority: 5 # higher priority
nodeSelector:
karpenter.k8s.aws/instance-gpu-name: h800
limits:
nvidia.com/gpu: 4
- name: h100
priority: 4
nodeSelector:
karpenter.k8s.aws/instance-gpu-name: h100
limits:
nvidia.com/gpu: 4
- name: a100
priority: 3
nodeSelector:
karpenter.k8s.aws/instance-gpu-name: a100
limits:
nvidia.com/gpu: 4
- name: a20
priority: 2
nodeSelector:
karpenter.k8s.aws/instance-gpu-name: a20
limits:
nvidia.com/gpu: 4
- name: t4
priority: 1 # lower priority
nodeSelector:
karpenter.k8s.aws/instance-gpu-name: t4
limits:
nvidia.com/gpu: 4Why is this needed:
When multiple flavors are defined for a model, there is currently no explicit way to control their matching order during scheduling. The scheduler uses the order defined in the list, which may not reflect the intended preference.
Completion requirements:
This enhancement requires the following artifacts:
- Design doc
- API change
- Docs update
The artifacts should be linked in subsequent comments.
Metadata
Metadata
Assignees
Labels
featureCategorizes issue or PR as related to a new feature.needs-priorityIndicates a PR lacks a label and requires one.needs-triageIndicates an issue or PR lacks a label and requires one.
Activity
googs1025 commentedon Jun 23, 2025
cc @kerthcet
googs1025 commentedon Jun 23, 2025
/assign
kerthcet commentedon Jun 27, 2025
Thanks @googs1025 , yes, use priority makes it more clear. However, I believe it's simple enough today following the slice order because the flavors are only used by one model respectively, doesn't like the Pod priority, it's sharing across all the Pods, so define the Pod priority is important.
But I'm happy to hear more advices in the future. Let's just pending this now. BTW, once we instroduced the priority field, we need to modify the codes in karpenter and schesuler plugins as well.
googs1025 commentedon Jun 27, 2025
Yes, when I looked at the api, I saw that it was already in the comment. So it's not that important.