-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switch to using upstream vllm with new metric #54
Conversation
/assign conliu |
@coolkp: GitHub didn't allow me to assign the following users: conliu. Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall lgtm. Will lgtm once PR is updated with benchmark numbers.
pkg/ext-proc/backend/vllm/metrics.go
Outdated
klog "k8s.io/klog/v2" | ||
) | ||
|
||
const ( | ||
ActiveLoRAAdaptersMetricName = "vllm:info_active_adapters_info" | ||
LoraRequestInfoMetricName = "vllm:lora_requests_info" | ||
LoraRequestInfoMetricNameRunningAdapters = "running_adapters" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LoraRequestInfoMetricNameRunningAdapters -> LoraRequestInfoRunningAdaptersMetricName
/assign |
Signed-off-by: Kunjan Patel <[email protected]>
…en test function, delete old metrics Signed-off-by: Kunjan Patel <[email protected]> Signed-off-by: Kunjan <[email protected]>
/lgtm |
dto "github.com/prometheus/client_model/go" | ||
"github.com/prometheus/common/expfmt" | ||
"go.uber.org/multierr" | ||
"inference.networking.x-k8s.io/llm-instance-gateway/pkg/ext-proc/backend" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets keep our imports in a separate section
@@ -90,35 +95,55 @@ func promToPodMetrics(metricFamilies map[string]*dto.MetricFamily, existing *bac | |||
} | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liu-cong do we have an algorithm proposal to use this metric? if not, can we cleanup this code?
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, coolkp The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes Switch to upstream vLLM #22