Releases: huggingface/safetensors
v0.3.2
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
andload_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
- Prepare 0.3.2 by @Narsil in #239
- Fixing conda workflow. by @Narsil in #240
- Adding a banner to the README. by @Narsil in #244
- [doc] Add a doc page about (remote) Metadata parsing by @julien-c in #243
- [doc] Improve metadata parsing doc by @mishig25 in #245
- There should be
.dev0
while onmain
by @mishig25 in #246 - [doc] Add logo img to index doc page by @mishig25 in #247
- [doc] featured projects by @mishig25 in #249
- Update to actions/checkout@v3 by @mfuntowicz in #251
- Added method
len
onSafeTensors
by @mfuntowicz in #252 - [docs] Safetensors format by @mishig25 in #248
- Fixing the spec with mention about the buffer which cannot be non-contiguous. by @Narsil in #253
- Update metadata_parsing.mdx by @mishig25 in #261
- Add
safejax
in "Featured Projects" by @alvarobartt in #260 - Adding error checking, convertion can fail on schedulers. by @Narsil in #266
- Add BERTopic to Featured Projects by @davanstrien in #267
- Fix typos in documents by @kiszk in #257
- Adding issue templates. by @Narsil in #268
- Remove ISSUE links. by @Narsil in #269
- [doc build] Use secrets by @mishig25 in #270
- Make tensor identifier a bit more robust, and transformers compatible by @thomasw21 in #264
- Add a reference to tch-rs by @LaurentMazare in #274
- fix syntax error in import statement of safetensors pytorch api docs code example by @kaczmarj in #276
- Missing files. by @Narsil in #282
- Fix wrong docstring for SafeTensors' names method (#250) by @dirac3000 in #284
- Fixing uniform empty tensor handling by @Narsil in #283
- Superseed #279 by @Narsil in #285
- Fix failing doc build workflows by @mishig25 in #287
- Revert dev change by @mishig25 in #288
- Fix numpy.save(-file) docstring. by @amitani in #290
- Adding more control to the chosen weights saved on disk. by @Narsil in #292
- Autodoc for save_model and load_model by @wouterzwerink in #293
- Fix link to shared tensor page by @wouterzwerink in #294
- Support musicgen conversion. by @Narsil in #296
- Passing the token around. by @Narsil in #302
- Adding
slice
get_dtype()
method to get the dtype directly on slices. by @Narsil in #303 - fix: typo in
attacks/README.md
by @bliutech in #305 - feat: Add filter for shared storage non overlapping tensors by @Narsil in #309
- feat: Supporting big endian architecture. by @Narsil in #310
- 0.3.2.rc1 by @Narsil in #311
- Fixes release scripts - Release ready version by @Narsil in #312
New Contributors
- @nickkolok made their first contribution in #201
- @mfuntowicz made their first contribution in #251
- @davanstrien made their first contribution in #267
- @kiszk made their first contribution in #257
- @LaurentMazare made their first contribution in #274
- @kaczmarj made their first contribution in #276
- @dirac3000 made their first contribution in #284
- @amitani made their first contribution in #290
- @wouterzwerink made their first contribution in #293
- @bliutech made their first contribution in #305
Full Changelog: v0.3.0...v0.3.2
v0.3.1
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
andload_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
- @nickkolok made their first contribution in #201
Full Changelog: v0.3.0...v0.3.1
v0.3.1rc1
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
andload_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
- @nickkolok made their first contribution in #201
Full Changelog: v0.3.0...v0.3.1rc1
v0.3.0
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
- Improve type hinting by @thomasw21 in #159
- New unreleased version. by @Narsil in #161
- Update README.md by @thomasw21 in #163
- Enabling 3.8 support for M1. by @Narsil in #162
- Added JSONSchema of the header. by @KOLANICH in #151
- Adding custom error type for users to properly catch. by @Narsil in #165
- Fixing the fact that the context manager wasn't properly cleaning up after itself. by @Narsil in #166
- Minor pydoc fixes for torch bindings by @jbn in #167
- Better error messages on outdated context manager. by @Narsil in #168
- Clippy fix. by @Narsil in #171
- Update README.md by @Narsil in #170
- Fixing error message for FileNotFound. by @Narsil in #175
- Add PaddlePaddle backend by @JunnYu in #176
- [Docs] add paddlepaddle docs by @JunnYu in #177
- [Major Change] Enforcing tensor alignment by @Narsil in #148
- README.md proposed clarity by @fdwr in #181
- Better Rust API (tch-rs) by @Narsil in #179
- Faster GPU Loads ?? by @Narsil in #184
- Preparing for release 0.3rc1. by @Narsil in #185
- Version 0.3.0 by @Narsil in #186
New Contributors
- @jbn made their first contribution in #167
- @JunnYu made their first contribution in #176
- @fdwr made their first contribution in #181
Full Changelog: v0.2.8...v0.3.0
v0.3.0rc1
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
- Improve type hinting by @thomasw21 in #159
- New unreleased version. by @Narsil in #161
- Update README.md by @thomasw21 in #163
- Enabling 3.8 support for M1. by @Narsil in #162
- Added JSONSchema of the header. by @KOLANICH in #151
- Adding custom error type for users to properly catch. by @Narsil in #165
- Fixing the fact that the context manager wasn't properly cleaning up after itself. by @Narsil in #166
- Minor pydoc fixes for torch bindings by @jbn in #167
- Better error messages on outdated context manager. by @Narsil in #168
- Clippy fix. by @Narsil in #171
- Update README.md by @Narsil in #170
- Fixing error message for FileNotFound. by @Narsil in #175
- Add PaddlePaddle backend by @JunnYu in #176
- [Docs] add paddlepaddle docs by @JunnYu in #177
- [Major Change] Enforcing tensor alignment by @Narsil in #148
- README.md proposed clarity by @fdwr in #181
- Better Rust API (tch-rs) by @Narsil in #179
- Faster GPU Loads ?? by @Narsil in #184
- Preparing for release 0.3rc1. by @Narsil in #185
New Contributors
- @jbn made their first contribution in #167
- @JunnYu made their first contribution in #176
- @fdwr made their first contribution in #181
Full Changelog: python-v0.2.8...v0.3.0rc1
Rust 0.2.8
Python v0.2.8
What's Changed
- Fixing torch version parsing. by @Narsil in #143
- Updating rust ergonomics. by @Narsil in #144
- Preparing next version. by @Narsil in #158
- Fix byte order detection for
np.uint8
and other types for which byte order is not defined. by @Narsil in #160
Full Changelog: python-v0.2.7...python-v0.2.8
Rust 0.2.7
- Fixing SAFETENSORS_FAST_GPU=1 on Windows : #140
Python v0.2.7
- Fixing
SAFETENSORS_FAST_GPU=1
on Windows : #140
Rust 0.2.6
First Rust release.