torchmonarch-nightly 2025.9.9__cp312-cp312-manylinux2014_x86_64.whl → 2025.9.11__cp312-cp312-manylinux2014_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. monarch/__init__.py +7 -0
  2. monarch/_rust_bindings.so +0 -0
  3. monarch/_src/actor/actor_mesh.py +1 -1
  4. monarch/_src/actor/bootstrap_main.py +7 -2
  5. monarch/_src/actor/debugger/breakpoint.py +30 -0
  6. monarch/_src/actor/debugger/debug_command.py +183 -0
  7. monarch/_src/actor/debugger/debug_controller.py +246 -0
  8. monarch/_src/actor/debugger/debug_io.py +68 -0
  9. monarch/_src/actor/debugger/debug_session.py +249 -0
  10. monarch/_src/actor/debugger/pdb_wrapper.py +1 -1
  11. monarch/_src/actor/host_mesh.py +10 -2
  12. monarch/_src/actor/pickle.py +4 -10
  13. monarch/_src/actor/proc_mesh.py +80 -19
  14. monarch/_src/tensor_engine/rdma.py +2 -0
  15. monarch/actor/__init__.py +1 -1
  16. monarch/gradient/_gradient_generator.so +0 -0
  17. monarch/monarch_controller +0 -0
  18. monarch/tools/cli.py +26 -0
  19. monarch/tools/commands.py +15 -0
  20. monarch/tools/debug_env.py +34 -0
  21. monarch/tools/mesh_spec.py +2 -0
  22. tests/test_allocator.py +18 -9
  23. tests/test_debugger.py +29 -25
  24. tests/test_mock_cuda.py +11 -3
  25. torchmonarch_nightly-2025.9.11.data/scripts/process_allocator +0 -0
  26. {torchmonarch_nightly-2025.9.9.dist-info → torchmonarch_nightly-2025.9.11.dist-info}/METADATA +1 -1
  27. {torchmonarch_nightly-2025.9.9.dist-info → torchmonarch_nightly-2025.9.11.dist-info}/RECORD +31 -29
  28. monarch/_src/actor/debugger/debugger.py +0 -737
  29. monarch/_src/debug_cli/__init__.py +0 -7
  30. monarch/_src/debug_cli/debug_cli.py +0 -43
  31. monarch/debug_cli/__init__.py +0 -7
  32. monarch/debug_cli/__main__.py +0 -12
  33. {torchmonarch_nightly-2025.9.9.dist-info → torchmonarch_nightly-2025.9.11.dist-info}/WHEEL +0 -0
  34. {torchmonarch_nightly-2025.9.9.dist-info → torchmonarch_nightly-2025.9.11.dist-info}/entry_points.txt +0 -0
  35. {torchmonarch_nightly-2025.9.9.dist-info → torchmonarch_nightly-2025.9.11.dist-info}/licenses/LICENSE +0 -0
  36. {torchmonarch_nightly-2025.9.9.dist-info → torchmonarch_nightly-2025.9.11.dist-info}/top_level.txt +0 -0
@@ -1,7 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- # All rights reserved.
3
- #
4
- # This source code is licensed under the BSD-style license found in the
5
- # LICENSE file in the root directory of this source tree.
6
-
7
- # pyre-unsafe
@@ -1,43 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- # All rights reserved.
3
- #
4
- # This source code is licensed under the BSD-style license found in the
5
- # LICENSE file in the root directory of this source tree.
6
-
7
- # pyre-unsafe
8
- import argparse
9
- import logging
10
- import subprocess
11
-
12
- from monarch._src.actor.debugger.debugger import (
13
- _get_debug_server_host,
14
- _get_debug_server_port,
15
- )
16
-
17
-
18
- def run():
19
- parser = argparse.ArgumentParser(description="Monarch Debug CLI")
20
- parser.add_argument(
21
- "--host",
22
- type=str,
23
- default=_get_debug_server_host(),
24
- help="Hostname where the debug server is running",
25
- )
26
- parser.add_argument(
27
- "--port",
28
- type=str,
29
- default=_get_debug_server_port(),
30
- help="Port that the debug server is listening on",
31
- )
32
- args = parser.parse_args()
33
-
34
- for cmd in ["ncat", "nc", "netcat"]:
35
- try:
36
- subprocess.run([cmd, f"{args.host}", f"{args.port}"], check=True)
37
- return
38
- except FileNotFoundError:
39
- pass
40
-
41
- logging.error(
42
- "Could not find a suitable netcat binary. Please install one and try again."
43
- )
@@ -1,7 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- # All rights reserved.
3
- #
4
- # This source code is licensed under the BSD-style license found in the
5
- # LICENSE file in the root directory of this source tree.
6
-
7
- # pyre-unsafe
@@ -1,12 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- # All rights reserved.
3
- #
4
- # This source code is licensed under the BSD-style license found in the
5
- # LICENSE file in the root directory of this source tree.
6
-
7
- # pyre-unsafe
8
- from monarch._src.debug_cli import debug_cli
9
-
10
-
11
- if __name__ == "__main__":
12
- debug_cli.run()