Repository navigation
Conversation
Summary: use `"""` for multi-line strings instead of tuple syntax which breaks arg parse.
Test Plan: ```
============================= test session starts ==============================
platform linux -- Python 3.10.14, pytest-8.1.1, pluggy-1.4.0 -- /home/gnadathur/local/a/pytorch-env/bin/python
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/data/users/gnadathur/a/torchtitan/.hypothesis/examples'))
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /data/users/gnadathur/a/torchtitan
configfile: pyproject.toml
plugins: hypothesis-6.100.1, benchmark-4.0.0, typeguard-4.2.1, cov-5.0.0, hydra-core-1.3.2
collecting ... collected 6 items
test/test_job_config.py::TestJobConfig::test_command_line_args PASSED [ 16%]
test/test_job_config.py::TestJobConfig::test_job_config_file PASSED [ 33%]
test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist PASSED [ 50%]
test/test_job_config.py::TestJobConfig::test_empty_config_file PASSED [ 66%]
test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides PASSED [ 83%]
test/test_job_config.py::TestJobConfig::test_print_help PASSED [100%]
---------- coverage: platform linux, python 3.10.14-final-0 ----------
Coverage XML written to file coverage.xml
============================= slowest 20 durations =============================
0.00s call test/test_job_config.py::TestJobConfig::test_print_help
0.00s call test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
0.00s call test/test_job_config.py::TestJobConfig::test_job_config_file
0.00s call test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
0.00s call test/test_job_config.py::TestJobConfig::test_empty_config_file
0.00s call test/test_job_config.py::TestJobConfig::test_command_line_args
0.00s setup test/test_job_config.py::TestJobConfig::test_command_line_args
0.00s teardown test/test_job_config.py::TestJobConfig::test_command_line_args
0.00s teardown test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
0.00s teardown test/test_job_config.py::TestJobConfig::test_job_config_file
0.00s setup test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
0.00s setup test/test_job_config.py::TestJobConfig::test_job_config_file
0.00s teardown test/test_job_config.py::TestJobConfig::test_print_help
0.00s setup test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
0.00s setup test/test_job_config.py::TestJobConfig::test_empty_config_file
0.00s setup test/test_job_config.py::TestJobConfig::test_print_help
0.00s teardown test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
0.00s teardown test/test_job_config.py::TestJobConfig::test_empty_config_file
============================== 6 passed in 0.19s ===============================
```
wz337
reviewed
Apr 16, 2024
tianyu-l
approved these changes
Apr 16, 2024
tianyu-l
left a comment
Contributor
There was a problem hiding this comment.
Thanks for fast fix! Had some nit comments inline.
lessw2020
pushed a commit
that referenced
this pull request
Apr 18, 2024
Summary: use `"""` for multi-line strings instead of tuple syntax which
breaks arg parse.
Test Plan: ```
============================= test session starts
============================== platform linux -- Python 3.10.14,
pytest-8.1.1, pluggy-1.4.0 --
/home/gnadathur/local/a/pytorch-env/bin/python cachedir: .pytest_cache
hypothesis profile 'default' ->
database=DirectoryBasedExampleDatabase(PosixPath('/data/users/gnadathur/a/torchtitan/.hypothesis/examples'))
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False
min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10
warmup=False warmup_iterations=100000) rootdir:
/data/users/gnadathur/a/torchtitan
configfile: pyproject.toml
plugins: hypothesis-6.100.1, benchmark-4.0.0, typeguard-4.2.1,
cov-5.0.0, hydra-core-1.3.2 collecting ... collected 6 items
test/test_job_config.py::TestJobConfig::test_command_line_args PASSED [
16%]
test/test_job_config.py::TestJobConfig::test_job_config_file PASSED [
33%]
test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
PASSED [ 50%]
test/test_job_config.py::TestJobConfig::test_empty_config_file PASSED [
66%]
test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
PASSED [ 83%]
test/test_job_config.py::TestJobConfig::test_print_help PASSED [100%]
---------- coverage: platform linux, python 3.10.14-final-0 ----------
Coverage XML written to file coverage.xml
============================= slowest 20 durations
=============================
0.00s call test/test_job_config.py::TestJobConfig::test_print_help
0.00s call
test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
0.00s call test/test_job_config.py::TestJobConfig::test_job_config_file
0.00s call
test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
0.00s call
test/test_job_config.py::TestJobConfig::test_empty_config_file
0.00s call
test/test_job_config.py::TestJobConfig::test_command_line_args
0.00s setup
test/test_job_config.py::TestJobConfig::test_command_line_args
0.00s teardown
test/test_job_config.py::TestJobConfig::test_command_line_args
0.00s teardown
test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
0.00s teardown
test/test_job_config.py::TestJobConfig::test_job_config_file
0.00s setup
test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
0.00s setup test/test_job_config.py::TestJobConfig::test_job_config_file
0.00s teardown test/test_job_config.py::TestJobConfig::test_print_help
0.00s setup
test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
0.00s setup
test/test_job_config.py::TestJobConfig::test_empty_config_file
0.00s setup test/test_job_config.py::TestJobConfig::test_print_help
0.00s teardown
test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
0.00s teardown
test/test_job_config.py::TestJobConfig::test_empty_config_file
============================== 6 passed in 0.19s
===============================
```
philippguevorguian
pushed a commit
to YerevaNN/YNNtitan
that referenced
this pull request
Aug 17, 2024
Summary: use `"""` for multi-line strings instead of tuple syntax which
breaks arg parse.
Test Plan: ```
============================= test session starts
============================== platform linux -- Python 3.10.14,
pytest-8.1.1, pluggy-1.4.0 --
/home/gnadathur/local/a/pytorch-env/bin/python cachedir: .pytest_cache
hypothesis profile 'default' ->
database=DirectoryBasedExampleDatabase(PosixPath('/data/users/gnadathur/a/torchtitan/.hypothesis/examples'))
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False
min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10
warmup=False warmup_iterations=100000) rootdir:
/data/users/gnadathur/a/torchtitan
configfile: pyproject.toml
plugins: hypothesis-6.100.1, benchmark-4.0.0, typeguard-4.2.1,
cov-5.0.0, hydra-core-1.3.2 collecting ... collected 6 items
test/test_job_config.py::TestJobConfig::test_command_line_args PASSED [
16%]
test/test_job_config.py::TestJobConfig::test_job_config_file PASSED [
33%]
test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
PASSED [ 50%]
test/test_job_config.py::TestJobConfig::test_empty_config_file PASSED [
66%]
test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
PASSED [ 83%]
test/test_job_config.py::TestJobConfig::test_print_help PASSED [100%]
---------- coverage: platform linux, python 3.10.14-final-0 ----------
Coverage XML written to file coverage.xml
============================= slowest 20 durations
=============================
0.00s call test/test_job_config.py::TestJobConfig::test_print_help
0.00s call
test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
0.00s call test/test_job_config.py::TestJobConfig::test_job_config_file
0.00s call
test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
0.00s call
test/test_job_config.py::TestJobConfig::test_empty_config_file
0.00s call
test/test_job_config.py::TestJobConfig::test_command_line_args
0.00s setup
test/test_job_config.py::TestJobConfig::test_command_line_args
0.00s teardown
test/test_job_config.py::TestJobConfig::test_command_line_args
0.00s teardown
test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
0.00s teardown
test/test_job_config.py::TestJobConfig::test_job_config_file
0.00s setup
test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
0.00s setup test/test_job_config.py::TestJobConfig::test_job_config_file
0.00s teardown test/test_job_config.py::TestJobConfig::test_print_help
0.00s setup
test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
0.00s setup
test/test_job_config.py::TestJobConfig::test_empty_config_file
0.00s setup test/test_job_config.py::TestJobConfig::test_print_help
0.00s teardown
test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
0.00s teardown
test/test_job_config.py::TestJobConfig::test_empty_config_file
============================== 6 passed in 0.19s
===============================
```
saforem2
added a commit
to saforem2/torchtitan
that referenced
this pull request
Sep 16, 2026
Six instances in two days of one error shape -- a check that returns the same answer whether or not the thing works: imports passing while 0/14 flavors build, a #181519 probe matching the raise the patch removes, a chain-depth monitor reading healthy through 79h of zero progress, an [ -x ] interpreter check from a login node, one of three soname call sites patched, and Exit_status=0 on jobs that died before running Python. Records what shipped (soname glob, bmm_nodrop dtype, the 80B guard placement, ezpz pytorch#244/pytorch#245), what was withdrawn (aurora_sycl three times, the #181519 PRESENT verdict, the MKLROOT-off-default claim), and the rule that covers the whole probe-failure class: 114/122 PBS scripts here use --login, so start from an existing submit script.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary: use
"""for multi-line strings instead of tuple syntax which breaks arg parse.Test Plan: ```
============================= test session starts ============================== platform linux -- Python 3.10.14, pytest-8.1.1, pluggy-1.4.0 -- /home/gnadathur/local/a/pytorch-env/bin/python cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/data/users/gnadathur/a/torchtitan/.hypothesis/examples')) benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /data/users/gnadathur/a/torchtitan
configfile: pyproject.toml
plugins: hypothesis-6.100.1, benchmark-4.0.0, typeguard-4.2.1, cov-5.0.0, hydra-core-1.3.2 collecting ... collected 6 items
test/test_job_config.py::TestJobConfig::test_command_line_args PASSED [ 16%]
test/test_job_config.py::TestJobConfig::test_job_config_file PASSED [ 33%]
test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist PASSED [ 50%]
test/test_job_config.py::TestJobConfig::test_empty_config_file PASSED [ 66%]
test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides PASSED [ 83%]
test/test_job_config.py::TestJobConfig::test_print_help PASSED [100%]
---------- coverage: platform linux, python 3.10.14-final-0 ---------- Coverage XML written to file coverage.xml
============================= slowest 20 durations =============================
0.00s call test/test_job_config.py::TestJobConfig::test_print_help
0.00s call test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
0.00s call test/test_job_config.py::TestJobConfig::test_job_config_file
0.00s call test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
0.00s call test/test_job_config.py::TestJobConfig::test_empty_config_file
0.00s call test/test_job_config.py::TestJobConfig::test_command_line_args
0.00s setup test/test_job_config.py::TestJobConfig::test_command_line_args
0.00s teardown test/test_job_config.py::TestJobConfig::test_command_line_args
0.00s teardown test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
0.00s teardown test/test_job_config.py::TestJobConfig::test_job_config_file
0.00s setup test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
0.00s setup test/test_job_config.py::TestJobConfig::test_job_config_file
0.00s teardown test/test_job_config.py::TestJobConfig::test_print_help
0.00s setup test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist
0.00s setup test/test_job_config.py::TestJobConfig::test_empty_config_file
0.00s setup test/test_job_config.py::TestJobConfig::test_print_help
0.00s teardown test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides
0.00s teardown test/test_job_config.py::TestJobConfig::test_empty_config_file
============================== 6 passed in 0.19s ===============================