Skip to content

Commit

Permalink
add tp test for XPU
Browse files Browse the repository at this point in the history
Signed-off-by: yan ma <[email protected]>
  • Loading branch information
yma11 committed Nov 29, 2024
1 parent c5ffbc0 commit 24e2239
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .buildkite/run-xpu-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,22 @@ remove_docker_container() { docker rm -f xpu-test || true; }
trap remove_docker_container EXIT
remove_docker_container

# Run the image and launch offline inference
docker run --network host --name xpu-test --device /dev/dri -v /dev/dri/by-path:/dev/dri/by-path --entrypoint="" xpu-test python3 examples/offline_inference.py
# Run the image and test offline inference/tensor parallel
docker run -it -d --network host --name xpu-test --device /dev/dri -v /dev/dri/by-path:/dev/dri/by-path xpu-test /bin/bash
docker exec xpu-test bash -c "python3 examples/offline_inference.py"
docker exec xpu-test bash -c "
wget https://huggingface.co/datasets/anon8231489123/ShareGPT_Vicuna_unfiltered/resolve/main/ShareGPT_V3_unfiltered_cleaned_split.json
python3 benchmarks/benchmark_throughput.py \
--backend=vllm \
--dataset=./ShareGPT_V3_unfiltered_cleaned_split.json \
--model meta-llama/Llama-3.2-1B-Instruct \
--num-prompts=10 \
-tp=2 \
--trust-remote-code \
--device=xpu \
--dtype=float16 \
--enforce-eager \
--distributed-executor-backend=ray \
--max-model-len=4096
"
docker stop xpu-test

0 comments on commit 24e2239

Please sign in to comment.