Checkpoint
"# Checkpoint\n\n```python\nfrom modal_dojo import Checkpoint\n```\n\nA complete training checkpoint discovered on a Modal Volume.\n\n**Attributes**\n\n<div class=\"tg-param\">\n<p><strong>checkpoint_type</strong> <code>CheckpointType</code></p>\n<p>Hugging Face or Megatron layout.</p>\n</div>\n\n<div class=\"tg-param\">\n<p><strong>name</strong> <code>str</code></p>\n<p>Volume directory basename, such as <code>iter_0000050</code>.</p>\n</div>\n\n<div class=\"tg-param\">\n<p><strong>path</strong> <code>str</code></p>\n<p>Absolute path on the checkpoints volume mount.</p>\n</div>\n\n<div class=\"tg-param\">\n<p><strong>timestamp</strong> <code>float</code></p>\n<p>POSIX mtime of the checkpoint directory.</p>\n</div>\n\n<div class=\"tg-param\">\n<p><strong>training_run_id</strong> <code>str</code></p>\n<p>Training run that wrote this checkpoint. <span class=\"tg-param-default\">Default: \"\"</span></p>\n</div>\n\n<div class=\"tg-param\">\n<p><strong>app_name</strong> <code>str</code></p>\n<p>Modal app name for the run. <span class=\"tg-param-default\">Default: \"\"</span></p>\n</div>\n\n<div class=\"tg-param\">\n<p><strong>checkpoints_volume_name</strong> <code>str</code></p>\n<p>Modal Volume that stores the checkpoint. <span class=\"tg-param-default\">Default: \"\"</span></p>\n</div>\n\n<div class=\"tg-param\">\n<p><strong>checkpoints_mount_path</strong> <code>str</code></p>\n<p>Container mount path for that volume. <span class=\"tg-param-default\">Default: \"\"</span></p>\n</div>\n\n## `path_relative_to_volume`\n\n```python\npath_relative_to_volume: str\n```\n\nPath relative to the checkpoints volume mount.\n"
from modal_dojo import CheckpointA complete training checkpoint discovered on a Modal Volume.
Attributes
checkpoint_type CheckpointType
Hugging Face or Megatron layout.
name str
Volume directory basename, such as iter_0000050.
path str
Absolute path on the checkpoints volume mount.
timestamp float
POSIX mtime of the checkpoint directory.
training_run_id str
Training run that wrote this checkpoint. Default: ""
app_name str
Modal app name for the run. Default: ""
checkpoints_volume_name str
Modal Volume that stores the checkpoint. Default: ""
checkpoints_mount_path str
Container mount path for that volume. Default: ""
path_relative_to_volume
Section titled “path_relative_to_volume”path_relative_to_volume: strPath relative to the checkpoints volume mount.