fix(deps): update dependency safetensors to ^0.8.0#428
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
29ee8b6 to
93f0a30
Compare
93f0a30 to
e1224e5
Compare
e1224e5 to
89729ff
Compare
5d9542b to
d838a13
Compare
d838a13 to
274171c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.5.0→^0.8.0Release Notes
huggingface/safetensors (safetensors)
v0.8.0Compare Source
News
safetensors joins the PyTorch foundation!
Read more on that: https://huggingface.co/blog/safetensors-joins-pytorch-foundation
What's changed
Safetensors 0.8.0 brings direct to Metal loading on Apple Silicon, GIL-free serialization, broader hardware and dtype coverage, and a stronger Python API.
Breaking
The
serializeandserialize_filefunctions now release the GIL during writes, enabling true multithreaded saves from Python. Their input contract has also changed: tensor metadata is now passed via aTensorSpecclass (exported from safetensors) instead of plain dicts, making API more explicit and robust to misinputs. This is a breaking change for anyone calling the low-levelserialize/serialize_fileAPI directly; the high-level wrappers (safetensors.torch,safetensors.numpy,safetensors.paddle) are updated internally and their public API is unchanged.The minimum supported Python version is now 3.10 (was 3.9). Python 3.9 reached end-of-life in October 2025.
TensorIndexer::Narrownow carries astep: NonZeroUsizeparameter, so a slice is nowstart:stop:step. This is a fix as this silent error was hidden behind theStorage::Torchvariant which offloaded slicing logic to torch directly.CI
On the platform side, this release adds Windows ARM64 wheel builds, riscv64 Linux wheels, and CI has been hardened with pinned GitHub Actions SHAs.
Also dropped the anaconda CI we had as there's already an automatic tracker via conda-forge.
New features
MTLBufferand handed to the frameworks that support it (only torch atm) via DLPack, skipping needless copies.backendparameter introduced, for the addition of thepreadbackend. We now support loading files viapread(2)syscall instead of just mmap. Useful for specific archs/platforms.get_slicenow handles ellipsis[...]and strided slices[:, ::8]wherever safetensors does the slicing itself (preadfor any framework, MPS, andmmapoutside torch/paddle), which silently dropped the step or rejected...before.float8_e4m3fnuzandfloat8_e5m2fnuz(AMD FNUZ FP8 formats).Improvements/perf
F_NOCACHEfor direct I/O, yielding roughly 30% fastersave_fileon Apple Silicon.[torch]extra, replaced by a simplehasattrprobe for efficiency.What's Changed
2.4by @McPatate in safetensors#710packagingfor Torch 2.3.0+ datatype support by @akx in safetensors#705__version__as str in the stub by @tarekziade in safetensors#730TensorSpecparam toserialize*fns by @McPatate in safetensors#7380.8.0-dev.0by @McPatate in safetensors#7403.9in conda release by @McPatate in safetensors#741convert.pyscript by @McPatate in safetensors#746backendwith pread file by @McPatate in safetensors#760_host_alias_storagew/MTLBufferby @McPatate in safetensors#7670.9.0-dev.0by @McPatate in safetensors#777New Contributors
Full Changelog: safetensors/safetensors@v0.7.0...v0.8.0
v0.7.0Compare Source
What's new
complex64supportThis release adds support for storing
complex64tensors.What's Changed
packagingas a dependency for thetorchextra by @danieldk in #666New Contributors
Full Changelog: safetensors/safetensors@v0.6.2...v0.7.0
v0.6.2Compare Source
What's Changed
Full Changelog: safetensors/safetensors@v0.6.1...v0.6.2
v0.6.1Compare Source
What's Changed
New Contributors
Full Changelog: safetensors/safetensors@v0.6.0...v0.6.1
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.