forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RLlib] APPO TF with RLModule and Learner API (ray-project#33310)
Signed-off-by: Avnish <[email protected]> Signed-off-by: elliottower <[email protected]>
- Loading branch information
1 parent
437ed40
commit 09cf678
Showing
28 changed files
with
1,025 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from ray.rllib.algorithms.ppo.ppo_catalog import PPOCatalog | ||
|
||
|
||
class APPOCatalog(PPOCatalog): | ||
"""The Catalog class used to build models for APPO. | ||
PPOCatalog provides the following models: | ||
- ActorCriticEncoder: The encoder used to encode the observations. | ||
- Pi Head: The head used to compute the policy logits. | ||
- Value Function Head: The head used to compute the value function. | ||
The ActorCriticEncoder is a wrapper around Encoders to produce separate outputs | ||
for the policy and value function. See implementations of PPORLModuleBase for | ||
more details. | ||
Any custom ActorCriticEncoder can be built by overriding the | ||
build_actor_critic_encoder() method. Alternatively, the ActorCriticEncoderConfig | ||
at PPOCatalog.actor_critic_encoder_config can be overridden to build a custom | ||
ActorCriticEncoder during RLModule runtime. | ||
Any custom head can be built by overriding the build_pi_head() and build_vf_head() | ||
methods. Alternatively, the PiHeadConfig and VfHeadConfig can be overridden to | ||
build custom heads during RLModule runtime. | ||
""" |
Empty file.
Oops, something went wrong.