Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
89cc563
feat(pytorch): instrument distributed training with pytorch.rank life…
kr-igor Jun 10, 2026
3d6a375
feat(pytorch): wire optional step signals from Optimizer.step to C tr…
kr-igor Jun 10, 2026
8a682cb
chore: register DD_TRAINING_STEP_PROFILING in supported-configuration…
kr-igor Jun 10, 2026
204cb42
style: ruff format _distributed.py
kr-igor Jun 10, 2026
42ff92a
fix(test): use spec= in _make_fake_lib_no_steps to correctly raise At…
kr-igor Jun 10, 2026
45d7f7d
fix(test): rewrite step signal tests to inject module state directly
kr-igor Jun 10, 2026
0fd2606
feat(pytorch): propagate service to C tracer and rank span
kr-igor Jun 10, 2026
dc4e82c
fix(pytorch): use int_service for pytorch.rank to correctly inherit D…
kr-igor Jun 10, 2026
9ee855f
fix(pytorch): propagate span.service to C tracer instead of ddtrace.c…
kr-igor Jun 10, 2026
2894d1d
fix: remove unused ext_service import from _rank_root.py
kr-igor Jun 10, 2026
14be5c1
feat(pytorch): detach pytorch.rank from Ray trace; correlate via trai…
kr-igor Jun 11, 2026
034d2f5
refactor(pytorch): refactoring / cleanup
kr-igor Jun 11, 2026
578e1db
fix(pytorch): restore __init__.py, fix span parenting and version con…
kr-igor Jun 11, 2026
5ed0af7
fix(pytorch): restore torch <3.0 upper bound guard and fix Ray span p…
kr-igor Jun 11, 2026
03f2c01
fix(pytorch): include DD_PYTORCH_JOB_ID in no-job-id warning message
kr-igor Jun 11, 2026
b401b0c
test(pytorch): verify no interference with torch.profiler.profile()
kr-igor Jun 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,4 @@ src/native/target*
.analysis/

# file created when running scripts/lint
uv.lock
uv.lock
30 changes: 30 additions & 0 deletions .riot/requirements/1059304.txt

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested interactions between this new integration and the PyTorch Profiler integration?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with torch 2.12 / Python 3.12. torch.profiler.profile() captures CPU ops correctly while the integration is active, the schedule callback fires as expected, and profiler continues working normally after unpatch(). No interference. Added test_profiler_interaction.py to keep this covered.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see test_profiler_interaction.py, maybe not pushed yet?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right, pushing it now :)

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1059304.in
#
attrs==26.1.0
coverage[toml]==7.14.1
exceptiongroup==1.3.1
filelock==3.29.1
fsspec==2026.4.0
hypothesis==6.45.0
iniconfig==2.3.0
jinja2==3.1.6
markupsafe==3.0.3
mock==5.2.0
mpmath==1.3.0
networkx==3.4.2
opentracing==2.4.0
packaging==26.2
pluggy==1.6.0
pygments==2.20.0
pytest==9.0.3
pytest-cov==7.1.0
pytest-mock==3.15.1
sortedcontainers==2.4.0
sympy==1.14.0
tomli==2.4.1
torch==2.3.1
typing-extensions==4.15.0
28 changes: 28 additions & 0 deletions .riot/requirements/116b0b8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/116b0b8.in
#
attrs==26.1.0
coverage[toml]==7.14.1
filelock==3.29.1
fsspec==2026.4.0
hypothesis==6.45.0
iniconfig==2.3.0
jinja2==3.1.6
markupsafe==3.0.3
mock==5.2.0
mpmath==1.3.0
networkx==3.6.1
opentracing==2.4.0
packaging==26.2
pluggy==1.6.0
pygments==2.20.0
pytest==9.0.3
pytest-cov==7.1.0
pytest-mock==3.15.1
sortedcontainers==2.4.0
sympy==1.14.0
torch==2.3.1
typing-extensions==4.15.0
30 changes: 30 additions & 0 deletions .riot/requirements/1346e9d.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1346e9d.in
#
attrs==26.1.0
coverage[toml]==7.10.7
exceptiongroup==1.3.1
filelock==3.19.1
fsspec==2025.10.0
hypothesis==6.45.0
iniconfig==2.1.0
jinja2==3.1.6
markupsafe==3.0.3
mock==5.2.0
mpmath==1.3.0
networkx==3.2.1
opentracing==2.4.0
packaging==26.2
pluggy==1.6.0
pygments==2.20.0
pytest==8.4.2
pytest-cov==7.1.0
pytest-mock==3.15.1
sortedcontainers==2.4.0
sympy==1.13.1
tomli==2.4.1
torch==2.5.1
typing-extensions==4.15.0
31 changes: 31 additions & 0 deletions .riot/requirements/1351aca.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1351aca.in
#
attrs==26.1.0
coverage[toml]==7.14.1
filelock==3.29.3
fsspec==2026.4.0
hypothesis==6.45.0
iniconfig==2.3.0
jinja2==3.1.6
markupsafe==3.0.3
mock==5.2.0
mpmath==1.3.0
networkx==3.6.1
opentracing==2.4.0
packaging==26.2
pluggy==1.6.0
pygments==2.20.0
pytest==9.0.3
pytest-cov==7.1.0
pytest-mock==3.15.1
sortedcontainers==2.4.0
sympy==1.14.0
torch==2.11.0
typing-extensions==4.15.0

# The following packages are considered to be unsafe in a requirements file:
setuptools==81.0.0
30 changes: 30 additions & 0 deletions .riot/requirements/139b6b2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/139b6b2.in
#
attrs==26.1.0
coverage[toml]==7.14.1
exceptiongroup==1.3.1
filelock==3.29.1
fsspec==2026.4.0
hypothesis==6.45.0
iniconfig==2.3.0
jinja2==3.1.6
markupsafe==3.0.3
mock==5.2.0
mpmath==1.3.0
networkx==3.4.2
opentracing==2.4.0
packaging==26.2
pluggy==1.6.0
pygments==2.20.0
pytest==9.0.3
pytest-cov==7.1.0
pytest-mock==3.15.1
sortedcontainers==2.4.0
sympy==1.14.0
tomli==2.4.1
torch==2.1.2
typing-extensions==4.15.0
28 changes: 28 additions & 0 deletions .riot/requirements/16e767e.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/16e767e.in
#
attrs==26.1.0
coverage[toml]==7.14.1
filelock==3.29.3
fsspec==2026.4.0
hypothesis==6.45.0
iniconfig==2.3.0
jinja2==3.1.6
markupsafe==3.0.3
mock==5.2.0
mpmath==1.3.0
networkx==3.6.1
opentracing==2.4.0
packaging==26.2
pluggy==1.6.0
pygments==2.20.0
pytest==9.0.3
pytest-cov==7.1.0
pytest-mock==3.15.1
sortedcontainers==2.4.0
sympy==1.14.0
torch==2.4.1
typing-extensions==4.15.0
31 changes: 31 additions & 0 deletions .riot/requirements/173555b.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/173555b.in
#
attrs==26.1.0
coverage[toml]==7.14.1
filelock==3.29.3
fsspec==2026.4.0
hypothesis==6.45.0
iniconfig==2.3.0
jinja2==3.1.6
markupsafe==3.0.3
mock==5.2.0
mpmath==1.3.0
networkx==3.6.1
opentracing==2.4.0
packaging==26.2
pluggy==1.6.0
pygments==2.20.0
pytest==9.0.3
pytest-cov==7.1.0
pytest-mock==3.15.1
sortedcontainers==2.4.0
sympy==1.14.0
torch==2.12.0
typing-extensions==4.15.0

# The following packages are considered to be unsafe in a requirements file:
setuptools==81.0.0
27 changes: 27 additions & 0 deletions .riot/requirements/177b157.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/177b157.in
#
attrs==26.1.0
coverage[toml]==7.14.1
filelock==3.29.1
hypothesis==6.45.0
iniconfig==2.3.0
jinja2==3.1.6
markupsafe==3.0.3
mock==5.2.0
mpmath==1.3.0
networkx==3.6.1
opentracing==2.4.0
packaging==26.2
pluggy==1.6.0
pygments==2.20.0
pytest==9.0.3
pytest-cov==7.1.0
pytest-mock==3.15.1
sortedcontainers==2.4.0
sympy==1.14.0
torch==2.0.1
typing-extensions==4.15.0
31 changes: 31 additions & 0 deletions .riot/requirements/179c655.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate --output-file=.riot/requirements/179c655.txt .riot/requirements/179c655.in
#
attrs==26.1.0
coverage[toml]==7.14.1
filelock==3.29.3
fsspec==2026.4.0
hypothesis==6.45.0
iniconfig==2.3.0
jinja2==3.1.6
markupsafe==3.0.3
mock==5.2.0
mpmath==1.3.0
networkx==3.6.1
opentracing==2.4.0
packaging==26.2
pluggy==1.6.0
pygments==2.20.0
pytest==9.0.3
pytest-cov==7.1.0
pytest-mock==3.15.1
sortedcontainers==2.4.0
sympy==1.13.1
torch==2.5.1
typing-extensions==4.15.0

# The following packages are considered to be unsafe in a requirements file:
setuptools==82.0.1
28 changes: 28 additions & 0 deletions .riot/requirements/17a8226.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/17a8226.in
#
attrs==26.1.0
coverage[toml]==7.14.1
filelock==3.29.1
fsspec==2026.4.0
hypothesis==6.45.0
iniconfig==2.3.0
jinja2==3.1.6
markupsafe==3.0.3
mock==5.2.0
mpmath==1.3.0
networkx==3.6.1
opentracing==2.4.0
packaging==26.2
pluggy==1.6.0
pygments==2.20.0
pytest==9.0.3
pytest-cov==7.1.0
pytest-mock==3.15.1
sortedcontainers==2.4.0
sympy==1.14.0
torch==2.1.2
typing-extensions==4.15.0
30 changes: 30 additions & 0 deletions .riot/requirements/181e2d5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/181e2d5.in
#
attrs==26.1.0
coverage[toml]==7.10.7
exceptiongroup==1.3.1
filelock==3.19.1
fsspec==2025.10.0
hypothesis==6.45.0
iniconfig==2.1.0
jinja2==3.1.6
markupsafe==3.0.3
mock==5.2.0
mpmath==1.3.0
networkx==3.2.1
opentracing==2.4.0
packaging==26.2
pluggy==1.6.0
pygments==2.20.0
pytest==8.4.2
pytest-cov==7.1.0
pytest-mock==3.15.1
sortedcontainers==2.4.0
sympy==1.14.0
tomli==2.4.1
torch==2.1.2
typing-extensions==4.15.0
30 changes: 30 additions & 0 deletions .riot/requirements/1989fbc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1989fbc.in
#
attrs==26.1.0
coverage[toml]==7.10.7
exceptiongroup==1.3.1
filelock==3.19.1
fsspec==2025.10.0
hypothesis==6.45.0
iniconfig==2.1.0
jinja2==3.1.6
markupsafe==3.0.3
mock==5.2.0
mpmath==1.3.0
networkx==3.2.1
opentracing==2.4.0
packaging==26.2
pluggy==1.6.0
pygments==2.20.0
pytest==8.4.2
pytest-cov==7.1.0
pytest-mock==3.15.1
sortedcontainers==2.4.0
sympy==1.14.0
tomli==2.4.1
torch==2.4.1
typing-extensions==4.15.0
Loading
Loading