Skip to main content

Efficient binary storage of ML models

Project description

BinPickle - efficient binary pickled data

Test and Build codecov

This package uses the new Pickle Protocol 5 in Python 3.8 (or its pickle5 backport) to efficiently serialize large objects, particularly from scientific Python packages, to an on-disk format. This format is designed to support two use cases:

  1. Serializing data-intensive statistical models in a memory-mappable format so multiple processes can share the same (read-only) model memory.
  2. Serializing data-intensive statistical models with good compression for long-term storage and cross-machine transportation.

BinPickle does this by using Pickle 5's out-of-band buffer serialization support to write buffers uncompressed and page-aligned for memory mapping (use case 1) or with per-buffer efficient compression with libraries like Blosc (use case 2).

Acknowledgements

This material is based upon work supported by the National Science Foundation under Grant No. IIS 17-51278. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. This page has not been approved by Boise State University and does not reflect official university positions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

binpickle-0.1.zip (15.1 kB view details)

Uploaded Source

Built Distribution

binpickle-0.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file binpickle-0.1.zip.

File metadata

  • Download URL: binpickle-0.1.zip
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for binpickle-0.1.zip
Algorithm Hash digest
SHA256 d4025e409e84b0fd1d558c9d79c2d3f9b03027d26042ed3fabdbad0f56a96814
MD5 67e6438142f834bb3fdf7c905d20b176
BLAKE2b-256 eb9b00d6cafaee4013f6e2487291855714d25950ac6008666c95cc64068fedfc

See more details on using hashes here.

File details

Details for the file binpickle-0.1-py3-none-any.whl.

File metadata

  • Download URL: binpickle-0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for binpickle-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2cfc58de9bdc6c703c57495741b860e5cabdea9f4564c95ca987a37599d25948
MD5 6a53d1def22a1d1834218a3e08e02010
BLAKE2b-256 aae7721cb6ea138eaa10355d6f6d120f3244db4ccfcefd33a7c5c77dbac10554

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page