Skip to content

Commit

Permalink
[CI] Add test case to run examples scripts (#3638)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-mo authored Mar 28, 2024
1 parent 96aa014 commit a4075cb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .buildkite/test-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ steps:
- label: Entrypoints Test
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
command: pytest -v -s kernels --shard-id=$$BUILDKITE_PARALLEL_JOB --num-shards=$$BUILDKITE_PARALLEL_JOB_COUNT
parallelism: 4
Expand Down
12 changes: 9 additions & 3 deletions examples/llava_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ def main(args):
# Make sure the local directory exists or create it
os.makedirs(local_directory, exist_ok=True)

# Use AWS CLI to sync the directory
subprocess.check_call(
["aws", "s3", "sync", s3_bucket_path, local_directory])
# Use AWS CLI to sync the directory, assume anonymous access
subprocess.check_call([
"aws",
"s3",
"sync",
s3_bucket_path,
local_directory,
"--no-sign-request",
])
main(args)

0 comments on commit a4075cb

Please sign in to comment.