</>PackageGraphPackageGraph

safetensors

PyPIv0.8.0

Not recommended for new projects

No — safetensors should not be adopted for new projects. No license declared — you have no explicit right to use this code.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 92 days ago. 19 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 462 KB installed.

  • BSupply chain: grade B, Good.

    This package lists no maintainer.

  • FLicense: grade F, Failing.

    No license declared — you have no explicit right to use this code.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding safetensors to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

462 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Python
python >=3.10

Quick start

A usage example from the safetensors README.

from safetensors.numpy import save_file, load_file
import numpy as np

tensors = {
   "a": np.zeros((2, 2)),
   "b": np.zeros((2, 3), dtype=np.uint8)
}

save_file(tensors, "./model.safetensors")


# Now loading
loaded = load_file("./model.safetensors")

Used by

Popular packages that depend on safetensors.

Relationship graph

Dependencies (left) and dependents (right) of safetensors.

transformerssafetensors
safetensors dependencies dependents

Frequently installed together

Release history

18 releases in the last two years, typically about 8 days apart.

Recent versions of safetensors
VersionPublishedSizeLicense
0.8.0latest3 months ago462 KB
0.8.0rc13 months ago462 KB
0.8.0rc04 months ago458 KB
0.8.0.dev04 months ago458 KB
0.7.09 months ago457 KB
0.7.0rc19 months ago457 KB
0.7.0.dev09 months ago457 KB
0.7.0rc010 months ago453 KB
0.6.21 year ago444 KB
0.6.11 year ago445 KB
0.6.1rc01 year ago445 KB
0.6.0.dev01 year ago444 KB
0.6.0rc01 year ago444 KB
0.5.31 year ago427 KB
0.5.21 year ago417 KB

Overview

safetensors is an PyPI package. It has 1 known dependents in the graph. The latest version is 0.8.0.

Who should use it

Teams working in the PyPI ecosystem who need this functionality and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your PyPI stack.

Pros

  • Zero runtime dependencies — minimal footprint.

Cons

  • No license detected — review usage terms before adopting.

Auto-generated from collected registry metadata. No external claims are inferred.

Frequently asked questions

Should I use safetensors?

No — safetensors should not be adopted for new projects. No license declared — you have no explicit right to use this code.

How do I install safetensors?

Run `pip install safetensors` to add safetensors to your PyPI project.

What license is safetensors released under?

No license was detected in safetensors's metadata; review the repository before use.

How popular is safetensors?

PyPI does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on safetensors.

Is safetensors still maintained?

The most recent release of safetensors (v0.8.0) was published 3 months ago.