RuntimeContext
python
RuntimeContext(config: ConfigT, actor_device: torch.device, learner_device: torch.device, stop_event: Event, metrics: MetricsTracker, game_configuration: GameConfiguration, model_configuration: ModelConfiguration, training_configuration: TrainingConfiguration) -> NoneShared per-run wiring passed to every training component.
Bundles the experiment configuration, devices, stop signal, metrics tracker and OakEmu configurations that previously had to be threaded through every constructor, so components only declare their component-specific inputs. Agents run on actor_device; learners run on learner_device.
Values
actor_device
python
actor_device: torch.deviceThe device environment-interacting components run inference on.
config
python
config: ConfigTThe experiment configuration.
game_configuration
python
game_configuration: GameConfigurationOakEmu game configuration.
learner_device
python
learner_device: torch.deviceThe device learners run training on.
metrics
python
metrics: MetricsTrackerTracker for logging metrics.
model_configuration
python
model_configuration: ModelConfigurationOakEmu model configuration.
stop_event
python
stop_event: EventEvent signalling that all components should stop.
training_configuration
python
training_configuration: TrainingConfigurationOakEmu training configuration.