How aluro7in/acme works
Acme is a reinforcement-learning research framework offering reusable agents and components, with both single-stream and distributed use documented in the README. The main workflow is environment interaction through an actor, optional trajectory recording and replay sampling, then learner updates; evaluation and experiment orchestration surround that loop. The graph retains major JAX and TensorFlow agent families, environment preprocessing, offline datasets, and centralized inference. Some subsystem links are documentation- or index-supported because their implementations were not sampled; uncertain wiring is omitted.
Main entry points: environment_loop.py Environment loop · agents Agent algorithms · wrappers Environment wrappers · core.py Learner interface
Components 21
Environment interaction
- Environment wrappers
acme/wrappers - Atari preprocessing
acme/wrappers/atari_wrapper.py - Environment loop
acme/environment_loop.py - Actor interface
acme/core.py
Agents and learning
- Agent algorithms
acme/agents - JAX agents
acme/agents/jax - TensorFlow agents
acme/agents/tf - Learner interface
acme/core.py - JAX networks
acme/jax/networks
Replay and datasets
- Adder interface
acme/adders/base.py - Reverb adders
acme/adders/reverb - Replay service
- Reverb datasets
acme/datasets/reverb.py - Offline datasets
acme/datasets
Runtime services
- Environment specs
acme/specs.py - Counters
acme/utils/counting.py - Logging
acme/utils/loggers - Inference server
acme/jax/inference_server.py - Variable source
acme/core.py
Other components
- Researcher
- Environment
Connections 23
- Researcher → Agent algorithms: selects algorithms
- Environment → Environment wrappers: is adapted by
- Environment wrappers → Environment loop: provides environment
- Atari preprocessing → Environment wrappers: uses wrapper base
acme/wrappers/atari_wrapper.py - Atari preprocessing → Environment wrappers: uses frame stacking
acme/wrappers/atari_wrapper.py - Environment loop → Environment: steps
acme/environment_loop.py - Environment loop → Actor interface: calls actor
acme/environment_loop.py - Actor interface → Agent algorithms: implemented by
- Agent algorithms → JAX agents: includes
acme/agents/jax/mpo/learning.py - Agent algorithms → TensorFlow agents: includes
acme/agents/tf/mcts/search.py - JAX agents → Learner interface: implements learning
- JAX agents → JAX networks: uses networks
acme/agents/jax/mpo/networks.py - Environment loop → Counters: updates counts
acme/environment_loop.py - Environment loop → Logging: logs results
acme/environment_loop.py - Environment loop → Environment specs: reads environment specs
- Actor interface → Adder interface: records experience
- Adder interface → Reverb adders: implemented by
acme/adders/reverb/base.py - Reverb adders → Replay service: writes trajectories
acme/adders/reverb/structured.py - Replay service → Reverb datasets: supplies samples
acme/datasets/reverb.py - Reverb datasets → Learner interface: provides batches
- Offline datasets → Learner interface: provides offline data
- Learner interface → Variable source: publishes variables
acme/core.py - Variable source → Inference server: supplies parameters
acme/jax/inference_server.py