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
163b243a
Commit
163b243a
authored
Sep 05, 2024
by
zhuwenwen
Browse files
remove torch version
parent
6bb59e94
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
setup.py
setup.py
+1
-12
No files found.
setup.py
View file @
163b243a
...
...
@@ -375,20 +375,12 @@ def get_sha(root: Union[str, Path]) -> str:
def
get_version_add
(
sha
:
Optional
[
str
]
=
None
)
->
str
:
vllm_root
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
add_version_path
=
os
.
path
.
join
(
os
.
path
.
join
(
vllm_root
,
"vllm"
),
"version.py"
)
major
,
minor
,
*
res
=
torch
.
__version__
.
split
(
'.'
)
if
add_git_version
:
if
sha
!=
'Unknown'
:
if
sha
is
None
:
sha
=
get_sha
(
vllm_root
)
if
(
major
,
minor
)
==
(
'2'
,
'1'
):
version
=
'das.opt1.'
+
sha
[:
7
]
if
(
major
,
minor
)
==
(
'2'
,
'3'
):
version
=
'das.opt2.'
+
sha
[:
7
]
else
:
if
(
major
,
minor
)
==
(
'2'
,
'1'
):
version
=
'das.opt1'
if
(
major
,
minor
)
==
(
'2'
,
'3'
):
version
=
'das.opt2'
# dtk version
if
os
.
getenv
(
"ROCM_PATH"
):
...
...
@@ -399,9 +391,6 @@ def get_version_add(sha: Optional[str] = None) -> str:
rocm_version
=
lines
[
0
].
replace
(
"."
,
""
)
version
+=
".dtk"
+
rocm_version
# torch version
version
+=
".torch"
+
torch
.
__version__
[:
5
]
new_version_content
=
f
"""
import warnings
...
...
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