From 753c6a4d0f04405ca17aa79ce7ca429f7d8668ec Mon Sep 17 00:00:00 2001 From: Angelos Katharopoulos Date: Thu, 11 Dec 2025 17:47:42 -0800 Subject: [PATCH] Disable echo for interactive distributed --- python/mlx/_distributed_utils/launch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/mlx/_distributed_utils/launch.py b/python/mlx/_distributed_utils/launch.py index f87f112d6..56c7323e9 100644 --- a/python/mlx/_distributed_utils/launch.py +++ b/python/mlx/_distributed_utils/launch.py @@ -107,6 +107,9 @@ class RemoteProcess(CommandProcess): def make_launch_script(rank, cwd, files, env, command): script = "" + # Disable echo + script = "stty -echo; " + # Write the PID to a file so we can kill the process if needed script += "pidfile=$(mktemp); " script += "echo $$ > $pidfile; "