src.util.paths.create_paths

create_paths(run_id: str, model: str, run_dir: str, cache_dir: str) Dict[str, Path][source]

Create the necessary directories and sub-directories conditioned on the run_id, checkpoint directory, and cache directories.

Parameters
  • run_id – Unique Run Identifier.

  • model – Huggingface.Transformers Model ID for specifying the desired configuration.

  • run_dir – Path to run directory to save model checkpoints and run metrics.

  • cache_dir – Path to artifacts/cache directory to store any intermediate values, configurations, etc.

Returns

Dictionary mapping str ids –> paths on the filesystem.