Skip to content

fix(deps): update dependency safetensors to ^0.8.0#428

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/safetensors-0.x
Open

fix(deps): update dependency safetensors to ^0.8.0#428
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/safetensors-0.x

Conversation

@renovate

@renovate renovate Bot commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
safetensors ^0.5.0^0.8.0 age confidence

Release Notes

huggingface/safetensors (safetensors)

v0.8.0

Compare Source

News

safetensors joins the PyTorch foundation!

image

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 serialize and serialize_file functions now release the GIL during writes, enabling true multithreaded saves from Python. Their input contract has also changed: tensor metadata is now passed via a TensorSpec class (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-level serialize / serialize_file API 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::Narrow now carries a step: NonZeroUsize parameter, so a slice is now start:stop:step. This is a fix as this silent error was hidden behind the Storage::Torch variant 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
  • Direct MPS load on Apple Silicon: tensors are directly loaded in an MTLBuffer and handed to the frameworks that support it (only torch atm) via DLPack, skipping needless copies.
  • New backend parameter introduced, for the addition of the pread backend. We now support loading files via pread(2) syscall instead of just mmap. Useful for specific archs/platforms.
  • get_slice now handles ellipsis [...] and strided slices [:, ::8] wherever safetensors does the slicing itself (pread for any framework, MPS, and mmap outside torch/paddle), which silently dropped the step or rejected ... before.
  • MUSA device support for MooreThreads GPUs.
  • New dtype support includes float8_e4m3fnuz and float8_e5m2fnuz (AMD FNUZ FP8 formats).
  • The reader is now explicitly lenient about leading whitespace in the JSON header, which keeps the door open for future page-aligned writes.
Improvements/perf
  • File writes on macOS now use F_NOCACHE for direct I/O, yielding roughly 30% faster save_file on Apple Silicon.
  • The packaging dependency has been dropped from the [torch] extra, replaced by a simple hasattr probe for efficiency.
What's Changed
New Contributors

Full Changelog: safetensors/safetensors@v0.7.0...v0.8.0

v0.7.0

Compare Source

What's new

complex64 support

This release adds support for storing complex64 tensors.

What's Changed

New Contributors

Full Changelog: safetensors/safetensors@v0.6.2...v0.7.0

v0.6.2

Compare Source

What's Changed

Full Changelog: safetensors/safetensors@v0.6.1...v0.6.2

v0.6.1

Compare Source

What's Changed

New Contributors

Full Changelog: safetensors/safetensors@v0.6.0...v0.6.1


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/safetensors-0.x branch 2 times, most recently from 29ee8b6 to 93f0a30 Compare August 10, 2025 14:01
@renovate renovate Bot force-pushed the renovate/safetensors-0.x branch from 93f0a30 to e1224e5 Compare August 19, 2025 15:42
@renovate renovate Bot force-pushed the renovate/safetensors-0.x branch from e1224e5 to 89729ff Compare November 19, 2025 17:52
@renovate renovate Bot changed the title fix(deps): update dependency safetensors to ^0.6.0 fix(deps): update dependency safetensors to ^0.7.0 Nov 19, 2025
@renovate renovate Bot force-pushed the renovate/safetensors-0.x branch 2 times, most recently from 5d9542b to d838a13 Compare May 18, 2026 11:45
@renovate renovate Bot force-pushed the renovate/safetensors-0.x branch from d838a13 to 274171c Compare June 9, 2026 12:06
@renovate renovate Bot changed the title fix(deps): update dependency safetensors to ^0.7.0 fix(deps): update dependency safetensors to ^0.8.0 Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants