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)

Metadata

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 Provenance Actions
storeweights-1.0.2.tar.gz 2.7 kB Without provenance Details for storeweights-1.0.2.tar.gz

Built distribution (wheel)

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

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

Security for storeweights 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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