- Update platforms/nvidia_h200.env with ENGINE and configurable venv/paths. - Update platforms/README.md with H200 notes and platform-addition guide. - Add docs/H200_QUICKSTART.md with concrete H200 usage steps. - Add experiments/dsv4_h200_dspark/ as a migration wrapper around the existing scripts/benchmark_dspark_0707/ grid benchmark, writing results into the new experiments/<name>/results/<RUN_ID>/ layout. - Update BENCHMARK_WORKFLOW.md with a 'Adding a New Platform or Experiment' section and mention the H200 wrapper in Quick Start. - Update main README.md to index the H200 experiment and link to the guide.
37 lines
1.0 KiB
Python
Executable File
37 lines
1.0 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""Parse H200 DSpark benchmark outputs.
|
|
|
|
This is a thin wrapper around the legacy parser in
|
|
scripts/benchmark_dspark_0707/parse_results.py. It exists so that the
|
|
experiment keeps the same entry point as other experiments.
|
|
|
|
Usage:
|
|
python3 parse_results.py <result_root>
|
|
"""
|
|
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
def main() -> None:
|
|
result_root = Path(sys.argv[1]) if len(sys.argv) > 1 else Path("results")
|
|
repo_root = Path(__file__).resolve().parents[2]
|
|
legacy_parser = repo_root / "scripts" / "benchmark_dspark_0707" / "parse_results.py"
|
|
|
|
if not legacy_parser.exists():
|
|
raise SystemExit(f"legacy parser not found: {legacy_parser}")
|
|
|
|
venv_client = os.environ.get("VENV_CLIENT", "/data/user1/yy/envs/sglang")
|
|
python = Path(venv_client) / "bin" / "python"
|
|
if not python.exists():
|
|
python = Path(sys.executable)
|
|
|
|
subprocess.run([str(python), str(legacy_parser), str(result_root)], check=True)
|
|
print(f"Parsed {result_root}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|