Skip to content

Update .md files to use --profiler - #3026

Merged
yushangdi merged 1 commit into
mainfrom
fix/update-profiling-flag-references
Apr 20, 2026
Merged

yushangdi merged 1 commit into
mainfrom
fix/update-profiling-flag-references

Conversation

@yushangdi

Copy link
Copy Markdown
Contributor

Summary

  • Update CLI flag references from --profiling.* to --profiler.* in docs, benchmarks, and .claude/ files to match the config rename from ProfilingConfig to Profiler.Config landed in Feature/rfc 2408 compute comms overlap #3020

Changed files

  • docs/debugging.md — CLI flags, inline code references, and config example
  • torchtitan/experiments/graph_trainer/.claude/CLAUDE.md — CLI flags in example commands
  • benchmarks/llama3-8b_h200_202506_trainy-whitefiber.md — CLI flag in benchmark command

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 20, 2026
@yushangdi

Copy link
Copy Markdown
Contributor Author

Seeing some test failures like below. Likely OOM-style CUBLAS allocation failure, not caused by this PR (changed .md only).

2026-04-20T02:59:10.1706429Z [rank6]:  triton_flex_attention_backward_28 5.1978 ms 85.4% BLOCKS_ARE_CONTIGUOUS=False, BLOCK_M1=32, BLOCK_M2=32, BLOCK_N1=32, BLOCK_N2=32, FLOAT32_PRECISION="'ieee'", GQA_SHARED_HEADS=2, HAS_FULL_BLOCKS=True, IS_DIVISIBLE=False, OUTPUT_LOGSUMEXP=True, OUTPUT_MAX=False, PRESCALE_QK=False, QK_HEAD_DIM=64, QK_HEAD_DIM_ROUNDED=64, ROWS_GUARANTEED_SAFE=False, SAFE_HEAD_DIM=True, SM_SCALE=0.125, SPARSE_KV_BLOCK_SIZE=128, SPARSE_Q_BLOCK_SIZE=128, USE_TMA=False, V_HEAD_DIM=64, V_HEAD_DIM_ROUNDED=64, WRITE_DQ=True, num_stages=5, num_warps=4
2026-04-20T02:59:10.1708181Z [rank6]:  triton_flex_attention_backward_27 5.2163 ms 85.1% BLOCKS_ARE_CONTIGUOUS=False, BLOCK_M1=32, BLOCK_M2=32, BLOCK_N1=32, BLOCK_N2=32, FLOAT32_PRECISION="'ieee'", GQA_SHARED_HEADS=2, HAS_FULL_BLOCKS=True, IS_DIVISIBLE=False, OUTPUT_LOGSUMEXP=True, OUTPUT_MAX=False, PRESCALE_QK=False, QK_HEAD_DIM=64, QK_HEAD_DIM_ROUNDED=64, ROWS_GUARANTEED_SAFE=False, SAFE_HEAD_DIM=True, SM_SCALE=0.125, SPARSE_KV_BLOCK_SIZE=128, SPARSE_Q_BLOCK_SIZE=128, USE_TMA=False, V_HEAD_DIM=64, V_HEAD_DIM_ROUNDED=64, WRITE_DQ=True, num_stages=4, num_warps=4
2026-04-20T02:59:10.1708638Z [rank6]:SingleProcess AUTOTUNE benchmarking takes 34.3047 seconds and 4.7301 seconds precompiling for 13 choices
2026-04-20T02:59:10.1708775Z [rank7]:[rank7]: Traceback (most recent call last):
2026-04-20T02:59:10.1709022Z [rank7]:[rank7]:   File "<frozen runpy>", line 198, in _run_module_as_main
2026-04-20T02:59:10.1709204Z [rank7]:[rank7]:   File "<frozen runpy>", line 88, in _run_code
2026-04-20T02:59:10.1709446Z [rank7]:[rank7]:   File "/pytorch/torchtitan/torchtitan/train.py", line 68, in <module>
2026-04-20T02:59:10.1709546Z [rank7]:[rank7]:     main()
2026-04-20T02:59:10.1709783Z [rank7]:[rank7]:   File "/pytorch/torchtitan/torchtitan/train.py", line 55, in main
2026-04-20T02:59:10.1709895Z [rank7]:[rank7]:     trainer.train()
2026-04-20T02:59:10.1710452Z [rank7]:[rank7]:   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 367, in wrapper
2026-04-20T02:59:10.1710578Z [rank7]:[rank7]:     return f(*args, **kwargs)
2026-04-20T02:59:10.1710690Z [rank7]:[rank7]:            ^^^^^^^^^^^^^^^^^^
2026-04-20T02:59:10.1710927Z [rank7]:[rank7]:   File "/pytorch/torchtitan/torchtitan/trainer.py", line 834, in train
2026-04-20T02:59:10.1711055Z [rank7]:[rank7]:     self.train_step(data_iterator)
2026-04-20T02:59:10.1711321Z [rank7]:[rank7]:   File "/pytorch/torchtitan/torchtitan/trainer.py", line 752, in train_step
2026-04-20T02:59:10.1711470Z [rank7]:[rank7]:     loss = self.forward_backward_step(
2026-04-20T02:59:10.1711592Z [rank7]:[rank7]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-04-20T02:59:10.1711951Z [rank7]:[rank7]:   File "/pytorch/torchtitan/torchtitan/trainer.py", line 710, in forward_backward_step
2026-04-20T02:59:10.1712057Z [rank7]:[rank7]:     loss.backward()
2026-04-20T02:59:10.1712605Z [rank7]:[rank7]:   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/_tensor.py", line 631, in backward
2026-04-20T02:59:10.1712754Z [rank7]:[rank7]:     torch.autograd.backward(
2026-04-20T02:59:10.1713146Z [rank7]:[rank7]:   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/autograd/__init__.py", line 379, in backward
2026-04-20T02:59:10.1713253Z [rank7]:[rank7]:     _engine_run_backward(
2026-04-20T02:59:10.1713690Z [rank7]:[rank7]:   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/autograd/graph.py", line 882, in _engine_run_backward
2026-04-20T02:59:10.1714058Z [rank7]:[rank7]:     return Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
2026-04-20T02:59:10.1714269Z [rank7]:[rank7]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-04-20T02:59:10.1714597Z [rank7]:[rank7]: RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling `cublasCreate(handle)

@yushangdi
yushangdi merged commit 4a61bd8 into main Apr 20, 2026
13 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants