Skip to main content

storeweights

Storing PyTorch checkpoints in efficient way.

Install

pip install storeweights

Running

from storeweights import weights

##PyTorch code ....
model = TheModelClass()
optimizer = optim.SGD(model.parameters(), lr=0.001, momentum=0.9)

....

Saving model (local)

weights.save('model_name',model,optimizer,extra_info={'epoch':40})

Loading model (local)

weights.load('model_name',model,optimizer,return_extra_info=True)

Saving model (gdrive colab)

weights.save('model_name',model,optimizer,extra_info={'epoch':40},gdrive=True)

Loading model (gdrive colab)

weights.load('model_name',model,optimizer,return_extra_info=True,gdrive=True)

Release files for storeweights 1.0.2

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

Source distribution (sdist)

Source distribution for storeweights 1.0.2
File Size Uploaded
storeweights-1.0.2.tar.gz 2.7 kB Details

Built distribution (wheel)

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

Total release size: 6.7 kB

Release files / storeweights-1.0.2.tar.gz

Download URL storeweights-1.0.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5092ecdb885090cd332708cf539a6503a930be0fd0555e9c22511856209cf976
BLAKE2b-256 checksum
How to use checksums
796a98dc6d6a8d59c54ea1eb30ab9307e4d434c355475616894a4ffb0558ac48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / storeweights-1.0.2-py3-none-any.whl

Download URL storeweights-1.0.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
625b20f6877eff0f59a490598f4fa8f294fac6646af13010285a12b438b30d58
BLAKE2b-256 checksum
How to use checksums
408efaa8614ff2e3b415589f758b344164c181c3de17c7e3466e60a0f7a100cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.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