mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Disable echo for interactive distributed
This commit is contained in:
@@ -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; "
|
||||
|
||||
Reference in New Issue
Block a user