New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental features in Ray AIR #36949
Comments
ray-project#36950) Instead of tracking the experimental features in the docs, we will track them in this pinned issue instead: ray-project#36949 Signed-off-by: Kai Fricke <kai@anyscale.com>
ray-project#36950) Instead of tracking the experimental features in the docs, we will track them in this pinned issue instead: ray-project#36949 Signed-off-by: Kai Fricke <kai@anyscale.com> Signed-off-by: 久龙 <guyang.sgy@antfin.com>
ray-project#36950) Instead of tracking the experimental features in the docs, we will track them in this pinned issue instead: ray-project#36949 Signed-off-by: Kai Fricke <kai@anyscale.com> Signed-off-by: harborn <gangsheng.wu@intel.com>
ray-project#36950) Instead of tracking the experimental features in the docs, we will track them in this pinned issue instead: ray-project#36949 Signed-off-by: Kai Fricke <kai@anyscale.com>
@krfricke I'm using a customized progress reporter. with new feature enabled, how do I customize it? I couldn't find docs. help pls:D |
ray-project#36950) Instead of tracking the experimental features in the docs, we will track them in this pinned issue instead: ray-project#36949 Signed-off-by: Kai Fricke <kai@anyscale.com> Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
I think that when using RAY_AIR_RICH_LAYOUT=1
to this:
Voila! they all looking great! |
Where exactly should I set up the environmental variables? Local machine? Head node? Worker nodes? All of them? |
As of Ray 2.6, its backend will auto-detect the context it was called in (whether that be an interactive session or otherwise) and adjust the progress reporter accordingly. This was previously done our end, so the `reporter` argument is no longer needed. See ray-project/ray#36949
Set them as a variable in the |
Experimental features in Ray AIR
The Ray Team is testing a number of experimental features in Ray AIR.
During development, the features are disabled per default. You can opt-in by setting a feature-specific environment variable.
After some time, the Ray Team enables the feature by default to gather more feedback from the community. In that case, you can still disable the feature using the same environment variable to fully revert to the old behavior.
If you run into issues with experimental features, open an issue on GitHub. The Ray Team considers feedback before removing the old implementation and making the new implementation the default.
Context-aware progress reporting
A context-aware output engine is available for Ray Train and Ray Tune runs.
This output engine affects how the training progress is printed in the console. The output changes depending on the execution context: Ray Tune runs will be displayed differently to Ray Train runs.
The features include:
This output feature only works for the regular console. It is automatically disabled when you use Jupyter Notebooks or Ray client.
Rich layout (sticky status)
The context-aware output engine exposes an advanced layout using the rich library.
The rich layout provides a sticky status table: The regular console logs are still printed as before, but the trial overview table (in Ray Tune) is stuck to the bottom of the screen and periodically updated.
This feature is still in development. You can opt-in to try it out.
To opt-in, set the
RAY_AIR_RICH_LAYOUT=1
environment variable and install rich (pip install rich).Event-based trial execution engine
Ray Tune has an updated trial execution engine. Since Ray Tune is also the execution backend for Ray Train, the updated engine affects both tuning and training runs.
The update is a refactor of the TrialRunner which uses a generic Ray actor and future manager instead of the previous RayTrialExecutor. This manager exposes an interface to react to scheduling and task execution events, which makes it easier to maintain and develop.
This is a drop-in replacement of an internal class, and you shouldn’t see any change to the previous behavior.
However, if you notice any odd behavior, you can opt out of the event-based execution engine and see if it resolves your problem.
In that case, please open an issue on GitHub, ideally with a reproducible script.
Things to look out for:
Any exceptions are raised that indicate an error in starting or stopping trials or the experiment
Note that some edge cases may not be captured in the regression tests. Your feedback is welcome.
The text was updated successfully, but these errors were encountered: