Algorithms¶
Algorithms run on the server and are selected via Tyro subcommands.
Quickstart¶
Two minimal commands.
plugrl-run-server dummy-policy default dummy default
plugrl-run-server dppo-policy default dppo hopper
Verify¶
List registered algorithms.
Run a smoke test loop.
plugrl-run-server dummy-policy default dummy default
plugrl-run-env-client dummy-v1 --num-episodes 1
How selection works¶
Command shape.
<policy_uid> <policy_variant> <algo_uid> <algo_variant>
Config sources.
- Policy and algorithm configs are independent dataclasses.
- Override fields with
--policy.*and--algo.*.
Discovery.
- Registries live in
plugrl_server.policy.registrationandplugrl_server.algorithm.registration. - Your modules must be imported before the CLI is built.
Built-in algorithms¶
Five UIDs are registered in plugrl-server.
fpo: FPO training loop - the algorithm the quickstarts rundummy: protocol and connectivity smoke testseval: run a policy without training it, optionally from--algo.policy-checkpoint-pathdppo: DPPO training loop, needs thedppoextradppo-dist: distributed DPPO via the Ray launcher, needs thedppoextra
Without the dppo extra installed, plugrl-run-server logs
Could not import DPPO algorithm module at startup and the dppo-dist
subcommand is absent.
Troubleshooting¶
- Algorithm UID not listed: registration module was not imported.
- CLI flags conflict across policy and algo: keep shared concepts in one config.