Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions benchmarks/70b_fp8_mi300x_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
# Disable that features to avoid crashes.
# This is related to the changes in the driver at:
# https://rocm.docs.amd.com/en/docs-6.4.3/about/release-notes.html#amdgpu-driver-updates

cat > config.yaml << EOF
compilation-config: '{"custom_ops": ["-rms_norm", "-quant_fp8", "-silu_and_mul"]}'
EOF

version=`rocm-smi --showfw | grep MEC | head -n 1 | awk '{print $NF}'`
if [[ "$version" == "" || $version -lt 177 ]]; then
export HSA_NO_SCRATCH_RECLAIM=1
Expand Down Expand Up @@ -49,5 +54,6 @@ vllm serve $MODEL --port=$PORT \
--max-num-seqs=$CONC \
--max-num-batched-tokens=131072 \
--no-enable-prefix-caching \
--config config.yaml \
--async-scheduling \
--disable-log-requests
6 changes: 6 additions & 0 deletions benchmarks/70b_fp8_mi300x_slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ PORT=8888
# Disable that features to avoid crashes.
# This is related to the changes in the driver at:
# https://rocm.docs.amd.com/en/docs-6.4.3/about/release-notes.html#amdgpu-driver-updates

cat > config.yaml << EOF
compilation-config: '{"custom_ops": ["-rms_norm", "-quant_fp8", "-silu_and_mul"]}'
EOF

version=`rocm-smi --showfw | grep MEC | head -n 1 | awk '{print $NF}'`
if [[ "$version" == "" || $version -lt 177 ]]; then
export HSA_NO_SCRATCH_RECLAIM=1
Expand Down Expand Up @@ -60,6 +65,7 @@ vllm serve $MODEL --port=$PORT \
--max-num-seqs=$CONC \
--max-num-batched-tokens=131072 \
--no-enable-prefix-caching \
--config config.yaml \
--async-scheduling \
--disable-log-requests \
> $SERVER_LOG 2>&1 &
Expand Down
6 changes: 6 additions & 0 deletions benchmarks/70b_fp8_mi325x_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# Reference
# https://rocm.docs.amd.com/en/docs-7.0-rc1/preview/benchmark-docker/inference-vllm-llama-3.3-70b-fp8.html#run-the-inference-benchmark

cat > config.yaml << EOF
compilation-config: '{"custom_ops": ["-rms_norm", "-quant_fp8", "-silu_and_mul"]}'
EOF


if [[ "$ISL" == "1024" && "$OSL" == "1024" ]]; then
export VLLM_ROCM_USE_AITER_MHA=0
elif [[ "$ISL" == "1024" && "$OSL" == "8192" ]]; then
Expand Down Expand Up @@ -43,5 +48,6 @@ vllm serve $MODEL --port=$PORT \
--max-num-seqs=$CONC \
--max-num-batched-tokens=131072 \
--no-enable-prefix-caching \
--config config.yaml \
--async-scheduling \
--disable-log-requests
5 changes: 5 additions & 0 deletions benchmarks/70b_fp8_mi325x_slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ PORT=$(( 8888 + $PORT_OFFSET ))
# Reference
# https://rocm.docs.amd.com/en/docs-7.0-rc1/preview/benchmark-docker/inference-vllm-llama-3.3-70b-fp8.html#run-the-inference-benchmark

cat > config.yaml << EOF
compilation-config: '{"custom_ops": ["-rms_norm", "-quant_fp8", "-silu_and_mul"]}'
EOF

if [[ "$ISL" == "1024" && "$OSL" == "1024" ]]; then
export VLLM_ROCM_USE_AITER_MHA=0
elif [[ "$ISL" == "1024" && "$OSL" == "8192" ]]; then
Expand Down Expand Up @@ -55,6 +59,7 @@ vllm serve $MODEL --port=$PORT \
--max-num-seqs=$CONC \
--max-num-batched-tokens=131072 \
--no-enable-prefix-caching \
--config config.yaml \
--async-scheduling \
--disable-log-requests \
> $SERVER_LOG 2>&1 &
Expand Down
8 changes: 8 additions & 0 deletions benchmarks/70b_fp8_mi355x_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
# Reference
# https://rocm.docs.amd.com/en/docs-7.0-rc1/preview/benchmark-docker/inference-vllm-llama-3.3-70b-fp8.html#run-the-inference-benchmark

cat > config.yaml << EOF
compilation-config: '{"custom_ops": ["-rms_norm", "-quant_fp8", "-silu_and_mul"]}'
EOF

sleep 5
cat config.yaml

export VLLM_ROCM_QUICK_REDUCE_QUANTIZATION=INT4

if [[ "$ISL" == "1024" && "$OSL" == "1024" ]]; then
Expand All @@ -37,6 +44,7 @@ vllm serve $MODEL --port=$PORT \
--max-num-seqs=$CONC \
--max-num-batched-tokens=131072 \
--no-enable-prefix-caching \
--config config.yaml \
--async-scheduling \
--disable-log-requests

5 changes: 5 additions & 0 deletions benchmarks/70b_fp8_mi355x_slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ SERVER_LOG=$(mktemp /tmp/server-XXXXXX.log)
# Reference
# https://rocm.docs.amd.com/en/docs-7.0-rc1/preview/benchmark-docker/inference-vllm-llama-3.3-70b-fp8.html#run-the-inference-benchmark

cat > config.yaml << EOF
compilation-config: '{"custom_ops": ["-rms_norm", "-quant_fp8", "-silu_and_mul"]}'
EOF

export VLLM_ROCM_QUICK_REDUCE_QUANTIZATION=INT4

if [[ "$ISL" == "1024" && "$OSL" == "1024" ]]; then
Expand All @@ -43,6 +47,7 @@ vllm serve $MODEL --port=$PORT \
--max-num-seqs=$CONC \
--max-num-batched-tokens=131072 \
--no-enable-prefix-caching \
--config config.yaml \
--async-scheduling \
--disable-log-requests \
> $SERVER_LOG 2>&1 &
Expand Down
Loading