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
a4075cba
Unverified
Commit
a4075cba
authored
Mar 28, 2024
by
Simon Mo
Committed by
GitHub
Mar 28, 2024
Browse files
[CI] Add test case to run examples scripts (#3638)
parent
96aa014d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
.buildkite/test-pipeline.yaml
.buildkite/test-pipeline.yaml
+10
-0
examples/llava_example.py
examples/llava_example.py
+9
-3
No files found.
.buildkite/test-pipeline.yaml
View file @
a4075cba
...
@@ -36,6 +36,16 @@ steps:
...
@@ -36,6 +36,16 @@ steps:
-
label
:
Entrypoints Test
-
label
:
Entrypoints Test
command
:
pytest -v -s entrypoints
command
:
pytest -v -s entrypoints
-
label
:
Examples Test
working_dir
:
"
/vllm-workspace/examples"
commands
:
# install aws cli for llava_example.py
-
pip install awscli
-
python3 offline_inference.py
-
python3 offline_inference_with_prefix.py
-
python3 llm_engine_example.py
-
python3 llava_example.py
-
label
:
Kernels Test %N
-
label
:
Kernels Test %N
command
:
pytest -v -s kernels --shard-id=$$BUILDKITE_PARALLEL_JOB --num-shards=$$BUILDKITE_PARALLEL_JOB_COUNT
command
:
pytest -v -s kernels --shard-id=$$BUILDKITE_PARALLEL_JOB --num-shards=$$BUILDKITE_PARALLEL_JOB_COUNT
parallelism
:
4
parallelism
:
4
...
...
examples/llava_example.py
View file @
a4075cba
...
@@ -78,7 +78,13 @@ if __name__ == "__main__":
...
@@ -78,7 +78,13 @@ if __name__ == "__main__":
# Make sure the local directory exists or create it
# Make sure the local directory exists or create it
os
.
makedirs
(
local_directory
,
exist_ok
=
True
)
os
.
makedirs
(
local_directory
,
exist_ok
=
True
)
# Use AWS CLI to sync the directory
# Use AWS CLI to sync the directory, assume anonymous access
subprocess
.
check_call
(
subprocess
.
check_call
([
[
"aws"
,
"s3"
,
"sync"
,
s3_bucket_path
,
local_directory
])
"aws"
,
"s3"
,
"sync"
,
s3_bucket_path
,
local_directory
,
"--no-sign-request"
,
])
main
(
args
)
main
(
args
)
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