From 97358f9bde968d70ccd7075b848c6c6169044462 Mon Sep 17 00:00:00 2001 From: David Hall Date: Tue, 27 Aug 2024 23:33:24 -0700 Subject: [PATCH] suppress stderr in describe_tpu since it usually logs a dumb error (#710) --- src/levanter/infra/tpus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/levanter/infra/tpus.py b/src/levanter/infra/tpus.py index 884d91faf..7e630f069 100644 --- a/src/levanter/infra/tpus.py +++ b/src/levanter/infra/tpus.py @@ -68,7 +68,8 @@ def describe_tpu(tpu_name, zone): tpu_name, f"--zone={zone}", "--format=json(name.basename(), state)", - ] + ], + stderr=subprocess.DEVNULL, ) ) except subprocess.CalledProcessError: