mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 20:24:03 +08:00
[rllib] Add -v and --torch flags to first page of docs (#7032)
* add verbose doc * torch
This commit is contained in:
@@ -25,13 +25,17 @@ Then, you can try out training in the following equivalent ways:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
rllib train --run=PPO --env=CartPole-v0 # --eager [--trace] for eager execution
|
||||
rllib train --run=PPO --env=CartPole-v0 # -v [-vv] for verbose,
|
||||
# --eager [--trace] for eager execution,
|
||||
# --torch to use PyTorch
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from ray import tune
|
||||
from ray.rllib.agents.ppo import PPOTrainer
|
||||
tune.run(PPOTrainer, config={"env": "CartPole-v0"}) # "eager": True for eager execution
|
||||
tune.run(PPOTrainer, config={"env": "CartPole-v0"}) # "log_level": "INFO" for verbose,
|
||||
# "eager": True for eager execution,
|
||||
# "torch": True for PyTorch
|
||||
|
||||
Next, we'll cover three key concepts in RLlib: Policies, Samples, and Trainers.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user