Skip to content

Support dynamic version name in sglang's pyproject.toml - #4720

Merged
zhyncs merged 2 commits into
sgl-project:mainfrom
guoyuhong:dynamic_version
Mar 24, 2025
Merged

zhyncs merged 2 commits into
sgl-project:mainfrom
guoyuhong:dynamic_version

Conversation

@guoyuhong

@guoyuhong guoyuhong commented Mar 24, 2025 •

Copy link
Copy Markdown
Collaborator

Motivation

When we are using sglang's main branch to develop, it's hard to tell the installed version of sglang. It's because the wheel name is a fix one, e.g. 0.4.4.post1 for now.
Therefore, we enable the dynamic version for sglang (we do not change sgl_kernel). If the wheel is built from a tag, it's name is still clean, depiced as follows(we mock a local tag v0.4.4.post2).
image

What make a difference is for dev branches, which have more more readable versions.
image

If you import the package, sglang.__version__ won't change. However, pip show sglang contains the commit id.
image

Modifications

Checklist

@zhyncs
zhyncs merged commit 64edeb7 into sgl-project:main Mar 24, 2025
0826joyce pushed a commit to 0826joyce/sglang-perf-opt that referenced this pull request May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants