Skip to content

Comments

Add Python bindings for TorchComm hooks and document registration with examples#739

Open
d4l3k wants to merge 1 commit intometa-pytorch:mainfrom
d4l3k:export-D93769004
Open

Add Python bindings for TorchComm hooks and document registration with examples#739
d4l3k wants to merge 1 commit intometa-pytorch:mainfrom
d4l3k:export-D93769004

Conversation

@d4l3k
Copy link
Member

@d4l3k d4l3k commented Feb 19, 2026

Summary:
Enable Python users to register pre/post/abort hooks for torchcomms operations, improving observability for debugging and profiling. Provide Sphinx docs with usage examples and FlightRecorder guidance to make hook adoption straightforward.


AI generated Summary & Test Plan from DEV71697077

Differential Revision: D93769004

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 19, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 19, 2026

@d4l3k has exported this pull request. If you are a Meta employee, you can view the originating Diff in D93769004.

Copy link
Member

@amirafzali amirafzali left a comment

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

Summary:
Enable observability of collective operations by exposing a Python hook API (pre, post, abort) and documenting its usage, including FlightRecorderHook. This helps users debug, profile, and correlate operations without modifying core code, with clear examples and guidance in the docs.

---
AI generated Summary & Test Plan from DEV71697077

Reviewed By: amirafzali, tushar00jain

Differential Revision: D93769004
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. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants