Skip to content

Releases: huggingface/safetensors

v0.4.0

06 Oct 10:48
Compare
Choose a tag to compare

Highlights

  • Revamped the build pipeline to use maturin
  • Reduced allocations (speedup for small safetensors files with many small tensors)

What's Changed

New Contributors

Full Changelog: v0.3.2...v0.4.0

v0.4.0rc1

05 Oct 13:43
Compare
Choose a tag to compare
v0.4.0rc1 Pre-release
Pre-release

Highlights

  • Revamped entire build pipeline
  • Fixed a bug on small files containing many small tensors allocating too much

What's Changed

New Contributors

Full Changelog: v0.3.2...v0.4.0rc1

v0.3.3

23 Aug 13:35
Compare
Choose a tag to compare

What's Changed

Mostly fixes for big endian machines.

New Contributors

Full Changelog: v0.3.2...v0.3.3

v0.3.3rc1

23 Aug 11:57
Compare
Choose a tag to compare
v0.3.3rc1 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v0.3.2...v0.3.3.rc1

v0.3.2.rc1

07 Aug 13:47
f6dd871
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.1rc1...v0.3.2.rc1

v0.3.2

08 Aug 07:21
7e275f9
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.0...v0.3.2

v0.3.1

25 Apr 12:15
Compare
Choose a tag to compare

Notable changes

  • Fix warning for PyTorch 2.0
  • Fix alignment
  • Overall hardened code + test suite

What's Changed

  • Remove too many keywords. by @Narsil in #187
  • Adding memmap example to read from file. by @Narsil in #189
  • Making sure the safetensors existing PR is up-to-date. by @Narsil in #192
  • Nicer error when failed to find tensor in Rust. by @Narsil in #191
  • Adding commit description to convertion PR. by @Narsil in #198
  • Python 2.0 added a warning on ByteStorage, so using UntypedStorage by @Narsil in #196
  • Adding a minimal version for torch. by @Narsil in #204
  • Minor improvements for README by @nickkolok in #201
  • More badges. by @Narsil in #210
  • Remove unwrap in prod code. by @Narsil in #209
  • Upload codecov for main branch. by @Narsil in #211
  • Upload codecov for main branch. by @Narsil in #212
  • Fixing codecov rust tag. by @Narsil in #213
  • Increase coverage on the error paths. by @Narsil in #214
  • Deactivating codecov commenting. by @Narsil in #217
  • Zero width shape are OK (0-rank tensors). They are simply a scalar. by @Narsil in #208
  • Adding simple proptest. by @Narsil in #216
  • Disallowing zero-width tensor. by @Narsil in #205
  • Disallow erroneous buffer. by @Narsil in #206
  • Overspecify a bit the format. by @Narsil in #215
  • Adding arithmetic overflow checks (unchecked in release builds). by @Narsil in #207
  • Add a safety warning in the convertion script. by @Narsil in #219
  • Fixing empty shape test. by @Narsil in #218
  • Remove the breaking change of disallowing zero sized tensors. by @Narsil in #221
  • Adding last missing test for validate. by @Narsil in #225
  • 0-sized tensors allowed. by @Narsil in #226
  • Specify python versions. by @Narsil in #227
  • Minor checks + proptest in python. by @Narsil in #228
  • Committing Cargo.lock. by @Narsil in #233
  • Fixing the logic to determine if PR is up-to-date. by @Narsil in #230
  • Fixing alignment by @Narsil in #235
  • Adding save_model and load_model to help with shared tensors with PyTorch. by @Narsil in #236
  • Fixing shared detection logic. by @Narsil in #232
  • New release candidate. by @Narsil in #224

New Contributors

Full Changelog: v0.3.0...v0.3.1

v0.3.1rc1

24 Apr 14:21
3e35555
Compare
Choose a tag to compare
v0.3.1rc1 Pre-release
Pre-release

What's Changed

  • Remove too many keywords. by @Narsil in #187
  • Adding memmap example to read from file. by @Narsil in #189
  • Making sure the safetensors existing PR is up-to-date. by @Narsil in #192
  • Nicer error when failed to find tensor in Rust. by @Narsil in #191
  • Adding commit description to convertion PR. by @Narsil in #198
  • Python 2.0 added a warning on ByteStorage, so using UntypedStorage by @Narsil in #196
  • Adding a minimal version for torch. by @Narsil in #204
  • Minor improvements for README by @nickkolok in #201
  • More badges. by @Narsil in #210
  • Remove unwrap in prod code. by @Narsil in #209
  • Upload codecov for main branch. by @Narsil in #211
  • Upload codecov for main branch. by @Narsil in #212
  • Fixing codecov rust tag. by @Narsil in #213
  • Increase coverage on the error paths. by @Narsil in #214
  • Deactivating codecov commenting. by @Narsil in #217
  • Zero width shape are OK (0-rank tensors). They are simply a scalar. by @Narsil in #208
  • Adding simple proptest. by @Narsil in #216
  • Disallowing zero-width tensor. by @Narsil in #205
  • Disallow erroneous buffer. by @Narsil in #206
  • Overspecify a bit the format. by @Narsil in #215
  • Adding arithmetic overflow checks (unchecked in release builds). by @Narsil in #207
  • Add a safety warning in the convertion script. by @Narsil in #219
  • Fixing empty shape test. by @Narsil in #218
  • Remove the breaking change of disallowing zero sized tensors. by @Narsil in #221
  • Adding last missing test for validate. by @Narsil in #225
  • 0-sized tensors allowed. by @Narsil in #226
  • Specify python versions. by @Narsil in #227
  • Minor checks + proptest in python. by @Narsil in #228
  • Committing Cargo.lock. by @Narsil in #233
  • Fixing the logic to determine if PR is up-to-date. by @Narsil in #230
  • Fixing alignment by @Narsil in #235
  • Adding save_model and load_model to help with shared tensors with PyTorch. by @Narsil in #236
  • Fixing shared detection logic. by @Narsil in #232
  • New release candidate. by @Narsil in #224

New Contributors

Full Changelog: v0.3.0...v0.3.1rc1

v0.3.0

03 Mar 14:22
b9b4682
Compare
Choose a tag to compare

Everything in this new release should be backward compatible.

The only thing which might not, is loading a file and saving it again might change it's layout.
Content will be the same, but the order and positions of tensors might be changed to improve the alignment of buffers which can enable much
faster loads on lower level languages. ( #148)

Major changes

  • Fixing the fact that the context manager wasn't properly cleaning up after itself. by @Narsil in #166
  • [Major Change] Enforcing tensor alignment by @Narsil in #148
  • Faster GPU Loads ?? by @Narsil in #184
  • Removed the need for SAFETENSORS_FAST_GPU=1 with a safe alternative that loads just as fast.

What's Changed

New Contributors

Full Changelog: v0.2.8...v0.3.0

v0.3.0rc1

02 Mar 10:58
47423c2
Compare
Choose a tag to compare
v0.3.0rc1 Pre-release
Pre-release

Everything in this new release should be backward compatible.

The only thing which might not, is loading a file and saving it again might change it's layout.
Content will be the same, but the order and positions of tensors might be changed to improve the alignment of buffers which can enable much
faster loads on lower level languages. ( #148)

Major changes

  • Fixing the fact that the context manager wasn't properly cleaning up after itself. by @Narsil in #166
  • [Major Change] Enforcing tensor alignment by @Narsil in #148
  • Faster GPU Loads ?? by @Narsil in #184
  • Removed the need for SAFETENSORS_FAST_GPU=1 with a safe alternative that loads just as fast.

What's Changed

New Contributors

Full Changelog: python-v0.2.8...v0.3.0rc1