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 and saving them as a new destination-owned checkpoint.
Note: this only works for trainable weights/... checkpoints, not sampler-only
sampler_weights/... checkpoints.
Usage:
python -m tinker_cookbook.scripts.copy_checkpoint \
--source-path tinker://
To save into a specific destination project, pass --destination-project-id:
python -m tinker_cookbook.scripts.copy_checkpoint \
--source-path tinker://
For cross-org copies, pass --source-access-token or set
SRC_TINKER_ACCESS_TOKEN to a token that can read the source checkpoint:
python -m tinker_cookbook.scripts.copy_checkpoint \
--source-path tinker://
By default, this script saves sampler weights; pass --output-kind training to
save a trainable weights/... checkpoint instead.