Repository navigation
[core][cgraph] Deprecate Ray Compiled Graphs - #65098
elliot-barn wants to merge 1 commit into
Conversation
Marks the Compiled Graphs (cgraph / aDAG) feature as deprecated, pointing users to Ray Direct Transport (RDT) as the successor for direct GPU-to-GPU tensor transfer between actors: - DAGNode.experimental_compile() now emits a RayDeprecationWarning (single funnel through which all cgraph usage flows). - Deprecation notes added to the CompiledDAG, DAGContext, and CompiledDAGRef docstrings. - Docs: the compiled-graph landing page banner replaces the beta notice with a deprecation warning linking to RDT; the same banner is added to the quickstart/profiling/overlap/troubleshooting/API pages and the Ray DAG page note is updated. - Adds a regression test asserting the warning fires on experimental_compile(). The feature itself is unchanged and remains fully functional: compiled_graphs CI test targets and the manual-frequency compiled_graphs* release benchmarks continue to run as before. Shared infra reused by RDT and Serve (ray.experimental.channel, ray.experimental.collective, base ray.dag nodes, with_tensor_transport) is intentionally untouched. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request deprecates the Ray Compiled Graph feature across documentation, docstrings, and runtime warnings, recommending Ray Direct Transport (RDT) as its replacement. The reviewer pointed out that the Sphinx .. deprecated:: directive used in several Python docstrings requires a version argument to prevent documentation build warnings or errors, and provided suggestions to specify the deprecation version.
| .. deprecated:: | ||
| Ray Compiled Graph is deprecated and will be removed in a future | ||
| release. For direct GPU-to-GPU tensor transfer between actors, use | ||
| Ray Direct Transport (RDT) instead: | ||
| https://docs.ray.io/en/latest/ray-core/direct-transport/direct-transport.html |
There was a problem hiding this comment.
In Sphinx, the .. deprecated:: directive requires a version argument (e.g., .. deprecated:: 2.40.0). Omitting the version argument will cause Sphinx documentation build warnings or errors. Please specify the version in which this feature is deprecated, or use .. warning:: if the version is not yet determined.
| .. deprecated:: | |
| Ray Compiled Graph is deprecated and will be removed in a future | |
| release. For direct GPU-to-GPU tensor transfer between actors, use | |
| Ray Direct Transport (RDT) instead: | |
| https://docs.ray.io/en/latest/ray-core/direct-transport/direct-transport.html | |
| .. deprecated:: 2.40.0 | |
| Ray Compiled Graph is deprecated and will be removed in a future | |
| release. For direct GPU-to-GPU tensor transfer between actors, use | |
| Ray Direct Transport (RDT) instead: | |
| https://docs.ray.io/en/latest/ray-core/direct-transport/direct-transport.html |
| .. deprecated:: | ||
| Ray Compiled Graph is deprecated and will be removed in a future | ||
| release. For direct GPU-to-GPU tensor transfer between actors, use | ||
| Ray Direct Transport (RDT) instead: | ||
| https://docs.ray.io/en/latest/ray-core/direct-transport/direct-transport.html |
There was a problem hiding this comment.
In Sphinx, the .. deprecated:: directive requires a version argument (e.g., .. deprecated:: 2.40.0). Omitting the version argument will cause Sphinx documentation build warnings or errors. Please specify the version in which this feature is deprecated, or use .. warning:: if the version is not yet determined.
| .. deprecated:: | |
| Ray Compiled Graph is deprecated and will be removed in a future | |
| release. For direct GPU-to-GPU tensor transfer between actors, use | |
| Ray Direct Transport (RDT) instead: | |
| https://docs.ray.io/en/latest/ray-core/direct-transport/direct-transport.html | |
| .. deprecated:: 2.40.0 | |
| Ray Compiled Graph is deprecated and will be removed in a future | |
| release. For direct GPU-to-GPU tensor transfer between actors, use | |
| Ray Direct Transport (RDT) instead: | |
| https://docs.ray.io/en/latest/ray-core/direct-transport/direct-transport.html |
| .. deprecated:: | ||
| Ray Compiled Graph is deprecated and will be removed in a future | ||
| release. For direct GPU-to-GPU tensor transfer between actors, use | ||
| Ray Direct Transport (RDT) instead: | ||
| https://docs.ray.io/en/latest/ray-core/direct-transport/direct-transport.html |
There was a problem hiding this comment.
In Sphinx, the .. deprecated:: directive requires a version argument (e.g., .. deprecated:: 2.40.0). Omitting the version argument will cause Sphinx documentation build warnings or errors. Please specify the version in which this feature is deprecated, or use .. warning:: if the version is not yet determined.
| .. deprecated:: | |
| Ray Compiled Graph is deprecated and will be removed in a future | |
| release. For direct GPU-to-GPU tensor transfer between actors, use | |
| Ray Direct Transport (RDT) instead: | |
| https://docs.ray.io/en/latest/ray-core/direct-transport/direct-transport.html | |
| .. deprecated:: 2.40.0 | |
| Ray Compiled Graph is deprecated and will be removed in a future | |
| release. For direct GPU-to-GPU tensor transfer between actors, use | |
| Ray Direct Transport (RDT) instead: | |
| https://docs.ray.io/en/latest/ray-core/direct-transport/direct-transport.html |
| .. deprecated:: | ||
| Ray Compiled Graph is deprecated and will be removed in a future | ||
| release. For direct GPU-to-GPU tensor transfer between actors, use | ||
| Ray Direct Transport (RDT) instead: | ||
| https://docs.ray.io/en/latest/ray-core/direct-transport/direct-transport.html |
There was a problem hiding this comment.
In Sphinx, the .. deprecated:: directive requires a version argument (e.g., .. deprecated:: 2.40.0). Omitting the version argument will cause Sphinx documentation build warnings or errors. Please specify the version in which this feature is deprecated, or use .. warning:: if the version is not yet determined.
| .. deprecated:: | |
| Ray Compiled Graph is deprecated and will be removed in a future | |
| release. For direct GPU-to-GPU tensor transfer between actors, use | |
| Ray Direct Transport (RDT) instead: | |
| https://docs.ray.io/en/latest/ray-core/direct-transport/direct-transport.html | |
| .. deprecated:: 2.40.0 | |
| Ray Compiled Graph is deprecated and will be removed in a future | |
| release. For direct GPU-to-GPU tensor transfer between actors, use | |
| Ray Direct Transport (RDT) instead: | |
| https://docs.ray.io/en/latest/ray-core/direct-transport/direct-transport.html |
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
|
This pull request has been automatically closed because there has been no more activity in the 14 days Please feel free to reopen or open a new pull request if you'd still like this to be addressed. Again, you can always ask for help on our discussion forum or Ray's public slack channel. Thanks again for your contribution! |
Why are these changes needed?
Marks Ray Compiled Graphs (cgraph / aDAG) as deprecated, pointing users to Ray Direct Transport (RDT) as the successor for direct GPU-to-GPU tensor transfer between actors. The wind-down has already informally started (the GPU cgraph test target is disabled with a "will be deprecated/removed soon" note, and all
compiled_graphs*release benchmarks arefrequency: manual); this makes it official and user-visible.What this does:
DAGNode.experimental_compile()emits aRayDeprecationWarning— the single funnel all cgraph usage flows through.CompiledDAG,DAGContext, andCompiledDAGRefdocstrings.direct-transport; the same banner is added to the quickstart/profiling/overlap/troubleshooting/API sub-pages; the recommendation note inray-dag.rstis updated.test_experimental_compile_deprecation_warningasserting the warning fires.What this deliberately does NOT do:
compiled_graphsCI targets and the manual-frequencycompiled_graphs*release benchmarks keep working; the warning fires once at compile time, outside benchmark timing loops.ray.experimental.channel,ray.experimental.collective, the baseray.dagnodes (InputNode/DAGNode/MultiOutputNode,py_obj_scanner— used by Serve), andwith_tensor_transport.Related issue number
N/A
Checks
RayDeprecationWarningfires with the expected message,pytest.warnsin the new test passes, and a compiled DAG still executes end-to-end and tears down cleanly afterward. Ray's rootpytest.iniignores warnings globally, so existing cgraph tests are unaffected.🤖 Generated with Claude Code