tinker_cookbook.scripts.copy_checkpoint
Copy trainable Tinker weights into the currently authenticated account.
This copies a trainable Tinker checkpoint by loading the source weights with an access token and saving them as a new destination-owned checkpoint.
Note: this only works for trainable weights/... checkpoints, not sampler-only
sampler_weights/... checkpoints.
Usage: export SRC_TINKER_ACCESS_TOKEN=... # grants access to the source checkpoint; # a Tinker API key works for now
python -m tinker_cookbook.scripts.copy_checkpoint \
--source-path tinker://<run-id>:train:0/weights/<name> \
--source-access-token "$SRC_TINKER_ACCESS_TOKEN"
# Prints: sampler_path: tinker://<new-run-id>:train:0/sampler_weights/<name>
By default, this script saves sampler weights; pass --output-kind training to
save a trainable weights/... checkpoint instead.