Skip to main content

Checkptr

Simple, framework-agnostic standard for model checkpointing

pip install checkptr
from checkptr import Checkpointer

chkptr = Checkpointer.pytorch('path/to/checkpoints')
# or Checkpointer('path', save_fn=torch.save, load_fn=torch.load)

chkptr.checkpoint(model, f'model_{epoch}.pth')
model = checkptr.load(f'model_{epoch}.pth')


print('Checkpoints:', chkptr.checkpoints()) # ['model_0.pth', 'model_1.pth', ...]

Creates:

checkpoints/
  model_0.pth
  model_1.pth
  ...

And that's it! Simple.

Metadata

Release files for checkptr 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for checkptr 0.1.3
File Size Uploaded
checkptr-0.1.3.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for checkptr 0.1.3
File Interpreter ABI Platform
checkptr-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 kB

Release files / checkptr-0.1.3.tar.gz

Download URL checkptr-0.1.3.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c6a7c316b393086969fcb9ea9c2c1be640415ae7d75869e1d78428346bc386ee
BLAKE2b-256 checksum
How to use checksums
33fe9bf5a75ccd04db2bf7ac1b1e019655bc624ae3759bc1c5af2feaffd3a665
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.6

Release files / checkptr-0.1.3-py3-none-any.whl

Download URL checkptr-0.1.3-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c313c457eb9b6dd475ea994e63dd53376a792fffb0e70d148d2dc2a6ac4193ed
BLAKE2b-256 checksum
How to use checksums
95c94e2a4f7fd827c08ab29918ddcc379e6c49d09813d92949f67ba2ef3dde39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page