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)
| File | Size | Uploaded | |
|---|---|---|---|
| checkptr-0.1.3.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|