fix: display served_model_name in /v1/models #13155
fix: display served_model_name in /v1/models #13155slin1237 merged 5 commits intosgl-project:mainfrom
Conversation
Summary of ChangesHello @Sunhaihua1, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves an issue where the router's API response for Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly introduces the served_model_name field to provide a cleaner model identifier during worker registration, addressing the issue described. The changes to ServerInfo, get_dp_info, and DiscoverMetadataStep are logical and well-implemented. I have one minor suggestion to improve code conciseness and idiomatic usage of Rust's Option type.
|
Sorry I dont know why CI failed. Should I solve it ? @slin1237 @CatherineSue |
|
the unit test failed |
Motivation
fix the bug described in #12977
Modifications
add
served_model_namein worker registration, so that it can be derived bymodel_id.Accuracy Tests
run server by
python -m sglang.launch_server --served-model-name opt-125m --model-path ~/models/opt-125m --host 0.0.0.0 --port 31000 RUST_LOG=info cargo run -- --worker-urls http://127.0.0.1:31000 --host 0.0.0.0 --port 30002curl before modification
after
Benchmarking and Profiling
Checklist