Decision Workspace
safetensors vs pystse-safetensors vs bintensors
Side-by-side comparison of Rust crates
Provides functions to read and write safetensors which aim to be safer than their PyTorch counterpart. The format is 8 bytes which is an unsized int, being the size of a JSON header, the JSON header refers the `dtype` the `shape` and `data_offsets` which are the offsets for the values in the rest of the file.
Provides functions to read and write safetensors which aim to be safer than their PyTorch counterpart. The format is 8 bytes which is an unsized int, being the size of a JSON header, the JSON header refers the `dtype` the `shape` and `data_offsets` which are the offsets for the values in the rest of the file.
Bintensors is a high-performance binary tensor serialization format designed to be faster eliminating use of JSON serialization metadata.
Core Metrics
| safetensors | pystse-safetensors | bintensors | |
|---|---|---|---|
| Health Score | 67 | 36 | 42 |
| Total Downloads | 14.2M | 1.8K | 3.7K |
| 30d Downloads | 1.8M | 0 | 0 |
| Dependents | 2.1K | 1 | 0 |
| Releases | 21 | 1 | 6 |
| Last Updated | 187d ago | 762d ago | 390d ago |
| Age | 3y 5m | 2y 1m | 1y 1m |
Health Breakdown
Technical Details
| safetensors | pystse-safetensors | bintensors | |
|---|---|---|---|
| Version | 0.7.0 | 0.0.1 | 0.1.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 | Apache-2.0 | MIT |
| Dependencies | 6 | 5 | 10 |
| Crate Size | 31KB | 14KB | 29KB |
| Features | 3 | 0 | 4 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | 1.80 | — | 1.85 |
| Owners | 2 | 1 | 1 |
Links
Quick Verdict
- •safetensors leads with a health score of 67/100, but none of the options score above 80.
- •safetensors is depended on by 2.1K crates — strongest ecosystem trust.
- •⚠ pystse-safetensors, bintensors have not been updated in over a year.