mirror of
https://github.com/wassname/ray.git
synced 2026-09-10 12:38:43 +08:00
ray exec and ray attach commands (#2560)
ray exec CLUSTER CMD [--screen] [--start] [--stop] ray attach CLUSTER [--start] Example: ray exec sgd.yaml 'source activate tensorflow_p27 && cd ~/ray/python/ray/rllib && ./train.py --run=PPO --env=CartPole-v0' --screen --start --stop This will in one command create a cluster and run the command on it in a screen session. The screen can later be attached to via ray attach. After the command finishes, the cluster workers will be terminated and the head node stopped.
This commit is contained in:
+10
-2
@@ -37,11 +37,19 @@ The Ray Command Line API
|
||||
:show-nested:
|
||||
|
||||
.. click:: ray.scripts.scripts:create_or_update
|
||||
:prog: ray create_or_update
|
||||
:prog: ray up
|
||||
:show-nested:
|
||||
|
||||
.. click:: ray.scripts.scripts:teardown
|
||||
:prog: ray teardown
|
||||
:prog: ray down
|
||||
:show-nested:
|
||||
|
||||
.. click:: ray.scripts.scripts:exec_cmd
|
||||
:prog: ray exec
|
||||
:show-nested:
|
||||
|
||||
.. click:: ray.scripts.scripts:attach
|
||||
:prog: ray attach
|
||||
:show-nested:
|
||||
|
||||
.. click:: ray.scripts.scripts:get_head_ip
|
||||
|
||||
Reference in New Issue
Block a user