From a4075cba4de42470565737f668c8cf7512fbe935 Mon Sep 17 00:00:00 2001 From: Simon Mo Date: Thu, 28 Mar 2024 14:36:10 -0700 Subject: [PATCH] [CI] Add test case to run examples scripts (#3638) --- .buildkite/test-pipeline.yaml | 10 ++++++++++ examples/llava_example.py | 12 +++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.buildkite/test-pipeline.yaml b/.buildkite/test-pipeline.yaml index d7d2b930e6e7..b788002c1ee9 100644 --- a/.buildkite/test-pipeline.yaml +++ b/.buildkite/test-pipeline.yaml @@ -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 diff --git a/examples/llava_example.py b/examples/llava_example.py index a455e9858598..3d22b492654b 100644 --- a/examples/llava_example.py +++ b/examples/llava_example.py @@ -78,7 +78,13 @@ if __name__ == "__main__": # 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)