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
1 change: 0 additions & 1 deletion Magpie/modes/benchmark/benchmarker.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,6 @@ def _build_docker_command(
"--cap-add=CAP_SYS_ADMIN",
"--device=/dev/kfd",
"--device=/dev/dri",
"--device=/dev/mem",
"--cap-add=SYS_PTRACE",
"--security-opt", "seccomp=unconfined",
])
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# SGLang Benchmark Configuration for amd/Qwen3-Coder-480B-A35B-Instruct-MXFP4
# ====================================================
#
# Usage (Docker - default):
# python -m Magpie benchmark --benchmark-config examples/benchmarks/sglang_mi355x/benchmark_sglang_amd_qwen3_coder_480b_a35b_mxfp4.yaml
#
# Usage (Local - run directly on host, e.g. inside a pod):
# python -m Magpie benchmark --benchmark-config examples/benchmarks/sglang_mi355x/benchmark_sglang_amd_qwen3_coder_480b_a35b_mxfp4.yaml --run-mode local

benchmark:
framework: sglang
model: amd/Qwen3-Coder-480B-A35B-Instruct-MXFP4
precision: mxfp4
run_mode: docker
gpu_arch: gfx950

# Environment variables
envs:
TP: 4
CONC: 32
ISL: 1024
OSL: 1024
RANDOM_RANGE_RATIO: 0.8
SGLANG_USE_AITER: 1
EXTRA_SGLANG_ARGS: "--kv-cache-dtype fp8_e4m3"

# Profiler configuration
profiler:
torch_profiler:
enabled: false
system_profiler:
enabled: false
tracelens:
enabled: false

docker_image: "lmsysorg/sglang:v0.5.14-rocm720-mi35x"
# hf_cache_path: ""
benchmark_script: "sglang_mi355x.sh"
timeout_seconds: 7200

gap_analysis:
enabled: false
top_k: 100
find_kernel_sources: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# SGLang Benchmark Configuration for Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8
# ====================================================
#
# Usage (Docker - default):
# python -m Magpie benchmark --benchmark-config examples/benchmarks/sglang_mi355x/benchmark_sglang_qwen3_coder_480b_a35b_fp8.yaml
#
# Usage (Local - run directly on host, e.g. inside a pod):
# python -m Magpie benchmark --benchmark-config examples/benchmarks/sglang_mi355x/benchmark_sglang_qwen3_coder_480b_a35b_fp8.yaml --run-mode local

benchmark:
framework: sglang
model: Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8
precision: fp8
run_mode: docker
gpu_arch: gfx950

# Environment variables
envs:
TP: 4
CONC: 32
ISL: 1024
OSL: 1024
RANDOM_RANGE_RATIO: 0.8
SGLANG_USE_AITER: 1
EXTRA_SGLANG_ARGS: "--kv-cache-dtype fp8_e4m3 --page-size 32"

# Profiler configuration
profiler:
torch_profiler:
enabled: false
system_profiler:
enabled: false
tracelens:
enabled: false

docker_image: "lmsysorg/sglang:v0.5.18-rocm720-mi35x"
# hf_cache_path: ""
benchmark_script: "sglang_mi355x.sh"
timeout_seconds: 7200

gap_analysis:
enabled: false
top_k: 100
find_kernel_sources: false
2 changes: 2 additions & 0 deletions tests/unit/modes/test_benchmarker.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ def test_build_commands_and_script_resolution(monkeypatch, tmp_path):
workspace.mkdir()
docker = mode._build_docker_command("image:test", workspace, "mi300x")
assert "--device=/dev/kfd" in docker
assert "--device=/dev/dri" in docker
assert "--device=/dev/mem" not in docker
assert docker[-1].startswith("cd /opt/InferenceX")

command, env = mode._build_local_command(
Expand Down
Loading