tinker checkpoint - Tinker Documentation

tinker checkpoint

tinker checkpoint

Manage checkpoints — list, download, publish, delete, and upload to HuggingFace.

All checkpoint commands take a CHECKPOINT_PATH in the format tinker://run-id/sampler_weights/final.

All commands support -f, --format [table|json] for output format.

tinker checkpoint list

List checkpoints across all runs, or for a specific run.

Options:

$ tinker checkpoint list --limit 3
          3 checkpoints (1789 more not shown)
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┓
┃ Checkpoint ID                  ┃ Type    ┃ Size    ┃ Pub   ┃ Crea  ┃ Expir ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━┩
│ sampler_weights/lifecycle_test │ sampler │ 88.2 MB │ No    │ 3h    │ Never │
│ sampler_weights/final          │ sampler │ 102 MB  │ No    │ 4h    │ Never │
│ weights/final                  │ train   │ 306 MB  │ No    │ 4h    │ Never │
└────────────────────────────────┴─────────┴─────────┴───────┴───────┴───────┘

tinker checkpoint info CHECKPOINT_PATH

Show details of a specific checkpoint.

$ tinker checkpoint info tinker://run-id/sampler_weights/final

Options:

tinker checkpoint download CHECKPOINT_PATH

Download and extract a checkpoint to a local directory.

Options:

# Download to current directory
$ tinker checkpoint download tinker://run-id/sampler_weights/final

# Download to a specific directory
$ tinker checkpoint download tinker://run-id/sampler_weights/final -o ./models/

# Force overwrite
$ tinker checkpoint download tinker://run-id/sampler_weights/final --force

tinker checkpoint publish CHECKPOINT_PATH

Make a checkpoint publicly accessible. Other users can load it by path.

$ tinker checkpoint publish tinker://run-id/sampler_weights/final

Options:

tinker checkpoint unpublish CHECKPOINT_PATH

Make a published checkpoint private again.

$ tinker checkpoint unpublish tinker://run-id/sampler_weights/final

Options:

tinker checkpoint set-ttl CHECKPOINT_PATH

Set or remove the time-to-live on a checkpoint. After the TTL expires, the checkpoint is automatically deleted.

Options:

# Expire after 7 days
$ tinker checkpoint set-ttl tinker://run-id/sampler_weights/step-100 --ttl 604800

# Keep forever (remove expiration)
$ tinker checkpoint set-ttl tinker://run-id/sampler_weights/step-100 --remove

tinker checkpoint delete CHECKPOINT_PATH [...]

Permanently delete one or more checkpoints.

$ tinker checkpoint delete tinker://run-id/sampler_weights/step-100

# Delete multiple
$ tinker checkpoint delete \
    tinker://run-id/sampler_weights/step-100 \
    tinker://run-id/sampler_weights/step-200

Options:

tinker checkpoint push-hf CHECKPOINT_PATH

Upload a checkpoint to the HuggingFace Hub as a PEFT LoRA adapter.

Options:

$ tinker checkpoint push-hf tinker://run-id/sampler_weights/final --repo my-org/my-model
$ tinker checkpoint push-hf tinker://run-id/sampler_weights/final --repo my-org/my-model --public --create-pr