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
ccd3c045
Unverified
Commit
ccd3c045
authored
Jul 14, 2024
by
youkaichao
Committed by
GitHub
Jul 14, 2024
Browse files
[ci][build] fix commit id (#6420)
Co-authored-by:
Cyrus Leung
<
tlleungac@connect.ust.hk
>
parent
9dad5cc8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
.buildkite/test-pipeline.yaml
.buildkite/test-pipeline.yaml
+3
-1
Dockerfile
Dockerfile
+3
-0
setup.py
setup.py
+7
-2
No files found.
.buildkite/test-pipeline.yaml
View file @
ccd3c045
...
@@ -194,7 +194,9 @@ steps:
...
@@ -194,7 +194,9 @@ steps:
command
:
pytest -v -s test_logits_processor.py
command
:
pytest -v -s test_logits_processor.py
-
label
:
Utils Test
-
label
:
Utils Test
command
:
pytest -v -s test_utils.py
commands
:
-
pytest -v -s test_utils.py
-
pytest -v -s test_embedded_commit.py
-
label
:
Worker Test
-
label
:
Worker Test
mirror_hardwares
:
[
amd
]
mirror_hardwares
:
[
amd
]
...
...
Dockerfile
View file @
ccd3c045
...
@@ -88,6 +88,9 @@ ENV NVCC_THREADS=$nvcc_threads
...
@@ -88,6 +88,9 @@ ENV NVCC_THREADS=$nvcc_threads
# make sure punica kernels are built (for LoRA)
# make sure punica kernels are built (for LoRA)
ENV
VLLM_INSTALL_PUNICA_KERNELS=1
ENV
VLLM_INSTALL_PUNICA_KERNELS=1
ARG
buildkite_commit
ENV
BUILDKITE_COMMIT=${buildkite_commit}
ARG
USE_SCCACHE
ARG
USE_SCCACHE
# if USE_SCCACHE is set, use sccache to speed up compilation
# if USE_SCCACHE is set, use sccache to speed up compilation
RUN
--mount
=
type
=
cache,target
=
/root/.cache/pip
\
RUN
--mount
=
type
=
cache,target
=
/root/.cache/pip
\
...
...
setup.py
View file @
ccd3c045
...
@@ -30,8 +30,13 @@ logger = logging.getLogger(__name__)
...
@@ -30,8 +30,13 @@ logger = logging.getLogger(__name__)
def
embed_commit_hash
():
def
embed_commit_hash
():
try
:
try
:
if
"BUILDKITE_COMMIT"
in
os
.
environ
:
# ci build
commit_id
=
os
.
environ
[
"BUILDKITE_COMMIT"
]
else
:
commit_id
=
subprocess
.
check_output
([
"git"
,
"rev-parse"
,
"HEAD"
],
commit_id
=
subprocess
.
check_output
([
"git"
,
"rev-parse"
,
"HEAD"
],
encoding
=
"utf-8"
).
strip
()
encoding
=
"utf-8"
).
strip
()
commit_contents
=
f
'__commit__ = "
{
commit_id
}
"
\n
'
commit_contents
=
f
'__commit__ = "
{
commit_id
}
"
\n
'
version_file
=
os
.
path
.
join
(
ROOT_DIR
,
"vllm"
,
"commit_id.py"
)
version_file
=
os
.
path
.
join
(
ROOT_DIR
,
"vllm"
,
"commit_id.py"
)
...
...
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