Skip to content

Commit

Permalink
Fix bench_test
Browse files Browse the repository at this point in the history
  • Loading branch information
s5u13b committed Oct 11, 2024
1 parent 73bea56 commit 83911f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ offline_test:
e2e_test:
@pytest -v tests/e2e_test/test_e2e.py

.PHONY: bench_test
bench_test:
@pytest -v ./tests/e2e_test/test_bench.py

#################### pygloo install for gloo migration backend begin ####################

BAZEL_CMD = bazel
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e_test/test_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def get_markdown_data(key: str, head_name: str):

return data

decode_data = get_markdown_data('decode_latencies', 'decode')
prefill_data = get_markdown_data('prefill_latencies', 'prefill')
decode_data = get_markdown_data('decode_token_latencies', 'decode')
prefill_data = get_markdown_data('prefill_token_latencies', 'prefill')

return to_markdown_table(prefill_data) + "\n\n" + to_markdown_table(decode_data)

Expand Down
2 changes: 1 addition & 1 deletion tools/bench_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set -ex

nvidia-docker run --rm -t --net host --ipc host -v ${PWD}:/workspace -v /mnt:/mnt -w /workspace \
registry.cn-beijing.aliyuncs.com/llumnix/llumnix-dev:20240909_action_678a439 \
bash -c "pip install -e . > /dev/null && pytest -v ./tests/e2e_test/test_bench.py"
bash -c "pip install -e . > /dev/null && make bench_test"

0 comments on commit 83911f1

Please sign in to comment.