Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
69341fde
Commit
69341fde
authored
Jul 25, 2024
by
zhuwenwen
Browse files
update version
parent
500b93c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
setup.py
setup.py
+18
-4
No files found.
setup.py
View file @
69341fde
...
...
@@ -393,11 +393,25 @@ def get_version_add(sha: Optional[str] = None) -> str:
# torch version
version
+=
".torch"
+
torch
.
__version__
[:
5
]
new_version_content
=
f
"""\
import warnings
try:
import vllm.commit_id
__commit__ = vllm.commit_id.__commit__
except Exception as e:
warnings.warn(f"Failed to read commit hash:
\\
n
{
e
}
",
RuntimeWarning,
stacklevel=2)
__commit__ = "COMMIT_HASH_PLACEHOLDER"
__version__ = "0.5.3.post1"
__dcu_version__ = '0.5.3.post1+
{
version
}
'
"""
.
format
(
version
=
version
)
with
open
(
add_version_path
,
encoding
=
"utf-8"
,
mode
=
"w"
)
as
file
:
file
.
write
(
"__commit__='705f6a35aa92800b9c69c8b346168c3055fdebbd'
\n
"
)
file
.
write
(
"__version__='0.5.2'
\n
"
)
file
.
write
(
"__dcu_version__='0.5.2+{}'
\n
"
.
format
(
version
))
file
.
write
(
new_version_content
)
file
.
close
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment