8000 feature: add some field for OpenModel Playground Service by googs1025 · Pull Request #464 · InftyAI/llmaz · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feature: add some field for OpenModel Playground Service #464

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

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

googs1025
Copy link
Member

What this PR does / why we need it

  • add some field for OpenModel Playground Service

Which issue(s) this PR fixes

Fixes None

Special notes for your reviewer

Does this PR introduce a user-facing change?

add some field for OpenModel Playground Service

@InftyAI-Agent InftyAI-Agent added needs-triage Indicates an issue or PR lacks a label and requires one. needs-priority Indicates a PR lacks a label and requires one. do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Jun 18, 2025
@googs1025
Copy link
Member Author

/kind feature

@InftyAI-Agent InftyAI-Agent requested review from cr7258 June 18, 2025 08:07
@InftyAI-Agent InftyAI-Agent added feature Categorizes issue or PR as related to a new feature. and removed do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Jun 18, 2025
@googs1025
Copy link
Member Author

test locally: display like this

root@VM-0-3-ubuntu:/home/ubuntu# kubectl get isvc
NAME          NAME          REPLICAS   STATUS         AGE
opt-125m      opt-125m      1                         27m
qwen2-0--5b   qwen2-0--5b   1          ServiceReady   28m
root@VM-0-3-ubuntu:/home/ubuntu# kubectl get pl
NAME          MODEL         REPLICAS   STATUS            AGE
opt-125m      opt-125m      1                            27m
qwen2-0--5b   qwen2-0--5b   1          PlaygroundReady   28m
root@VM-0-3-ubuntu:/home/ubuntu#
root@VM-0-3-ubuntu:/home/ubuntu#
root@VM-0-3-ubuntu:/home/ubuntu# kubectl get om
NAME          MODELHUB      MODELID             OWNEDBY   AGE
opt-125m      Huggingface   facebook/opt-125m   llmaz     30m
qwen2-0--5b                                     llmaz     30m

@@ -228,6 +228,10 @@ type ModelStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:shortName=om,scope=Cluster
//+kubebuilder:printcolumn:name="MODELHUB",type=string,JSONPath=`.spec.source.modelHub.name`,description="Model hub name"
//+kubebuilder:printcolumn:name="MODELID",type=string,JSONPath=`.spec.source.modelHub.modelID`,description="Model ID on the model hub"
Copy link
Member

Choose a reason for hiding this comment

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

what if the modelhub and modelid is not present, for example, we use s3 as the model source.

Copy link
Member Author

Choose a reason for hiding this comment

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

root@VM-0-3-ubuntu:/home/ubuntu/llmaz# kubectl get om
NAME          OWNEDBY   AGE     MODELHUB      MODELID             URI
opt-125m      llmaz     4h48m   Huggingface   facebook/opt-125m
qwen2-0--5b   llmaz     4h48m                                     ollama://qwen2:0.5b
qwen2-7b      llmaz     17m                                       oss://llmaz.oss-ap-southeast-1-internal.aliyuncs.com/models/Qwen2-7B

Indeed, I currently changed it to: as follows,
But I am not sure if it is a good way.

Copy link
Member

Choose a reason for hiding this comment

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

Reasonable to me, maybe we should define it as hf://, but can't fully compatible with us today.

Can we make it N/A if no value?

Copy link
Member Author

Choose a reason for hiding this comment

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

Without changing the original code logic (for example, changing the unset field to N/A), it seems that printcolumn feature provided by kubebuilder can't work. 🤔

@googs1025 googs1025 marked this pull request as draft June 18, 2025 09:54
@googs1025 googs1025 marked this pull request as draft June 18, 2025 09:54
@googs1025 googs1025 force-pushed the add_field branch 3 times, most recently from fbaea2c to 3a98c29 Compare June 18, 2025 11:36
Signed-off-by: googs1025 <googs1025@gmail.com>
@googs1025 googs1025 marked this pull request as ready for review June 19, 2025 04:46
@kerthcet
Copy link
Member

/lgtm
/approve

@InftyAI-Agent InftyAI-Agent added lgtm Looks good to me, indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 19, 2025
@InftyAI-Agent InftyAI-Agent merged commit 20fc66d into InftyAI:main Jun 19, 2025
19 of 20 checks passed
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. feature Categorizes issue or PR as related to a new feature. lgtm Looks good to me, indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a label and requires one. needs-triage Indicates an issue or PR lacks a label and requires one.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0