mirror of
https://github.com/bigscience-workshop/petals
synced 2024-10-31 09:20:41 +00:00
Fix running speed test
This commit is contained in:
parent
24a60985c7
commit
3ae859858f
@ -90,7 +90,7 @@ def measure_throughput_info() -> ThroughputInfo:
|
||||
|
||||
|
||||
def measure_network_rps(config: BloomConfig) -> float:
|
||||
proc = subprocess.run([SPEED_TEST_PATH, "--json"], capture_output=True)
|
||||
proc = subprocess.run("python -m petals.cli.speed_test --json", shell=True, capture_output=True)
|
||||
if proc.returncode != 0:
|
||||
raise RuntimeError(f"Failed to measure network throughput (stdout: {proc.stdout}, stderr: {proc.stderr})")
|
||||
network_info = json.loads(proc.stdout)
|
||||
|
Loading…
Reference in New Issue
Block a user