workspace
workspace
¶
Workspace for training and evaluating policies using PyTorch Lightning.
Workspace
¶
Single workspace for training any policy using PyTorch Lightning.
This workspace handles: - Data loading and normalization - Policy instantiation and wrapping with Lightning - Trainer setup with callbacks - Policy training - WandB logging - Checkpointing
Initialize workspace.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
DictConfig
|
Main configuration containing all settings, already instantiated |
required |
original_yaml_config
|
DictConfig
|
Original YAML config before instantiation, for saving |
required |
Source code in src/versatil/workspace.py
save_config
¶
Save configuration to YAML file in output directory.
The config is saved as 'config.yaml' and is required for inference and model explanation. This method should be called after workspace initialization to ensure the config is available for later use.
Source code in src/versatil/workspace.py
run
¶
Run the complete training workflow.