Skip to content
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

make ModelName immutable and fix model weight #427

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

hzxuzhonghu
Copy link
Member

Fix #426

Fix #408

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 28, 2025
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 28, 2025
Copy link

netlify bot commented Feb 28, 2025

Deploy Preview for gateway-api-inference-extension ready!

Name Link
🔨 Latest commit 7ba1711
🔍 Latest deploy log https://app.netlify.com/sites/gateway-api-inference-extension/deploys/67c11fa3bf920900095c03c4
😎 Deploy Preview https://deploy-preview-427--gateway-api-inference-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -175,7 +176,7 @@ type TargetModel struct {
// Conversely weights are optional, so long as ALL targetModels do not specify a weight.
//
// +optional
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Minimum=1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It set to 0, it will panic too

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we allow to set 0 weight which users can do so to disabled the model instead of removing the model?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A similar question came up in Gateway API and we ultimately decided that we'd rather have people remove the backend altogether to avoid any confusion. In practice this likely just means commenting out some YAML. I'd prefer to follow the same pattern here.

@robscott
Copy link
Member

Thanks @hzxuzhonghu!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 28, 2025
@ahg-g
Copy link
Contributor

ahg-g commented Feb 28, 2025

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahg-g, hzxuzhonghu

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 28, 2025
@k8s-ci-robot k8s-ci-robot merged commit b1fed6c into kubernetes-sigs:main Feb 28, 2025
8 checks passed
@hzxuzhonghu hzxuzhonghu deleted the immutable-model-name branch March 3, 2025 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Model weight unset cause panic Make ModelName immutable
5 participants