Decision Workspace
pt-loader vs safetensors vs ztensor
Side-by-side comparison of Rust crates
46
pt-loader
experimentalv0.1.4
Safe parser-based PyTorch checkpoint converter to safetensors
65
safetensors
growingv0.8.0
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.
60
ztensor
stablev2.1.1
zTensor v2: an aligned, verifiable container format for tensor data
Core Metrics
| pt-loader | safetensors | ztensor | |
|---|---|---|---|
| Health Score | 46 | 65 | 60 |
| Total Downloads | 131 | 30.0M | 2.0K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 4.3K | 15 |
| Releases | 5 | 22 | 11 |
| Last Updated | 169d ago | 123d ago | 66d ago |
| Age | 5m | 3y 10m | 1y 4m |
Health Breakdown
pt-loader
Maintenance
15
Quality
9
Community
6
Popularity
3
Documentation
13
safetensors
Maintenance
13
Quality
15
Community
14
Popularity
8
Documentation
15
ztensor
Maintenance
15
Quality
18
Community
11
Popularity
4
Documentation
12
Technical Details
| pt-loader | safetensors | ztensor | |
|---|---|---|---|
| Version | 0.1.4 | 0.8.0 | 2.1.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | Apache-2.0 | MIT |
| Dependencies | 9 | 8 | 6 |
| Crate Size | 38KB | 35KB | 87KB |
| Features | 2 | 3 | 1 |
| Yanked % | 20.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.80 | 1.87 |
| Owners | 1 | 2 | 2 |
Links
Quick Verdict
- •safetensors leads with a health score of 65/100, but none of the options score above 80.
- •safetensors is depended on by 4.3K crates — strongest ecosystem trust.
- •pt-loader, safetensors are pre-1.0 — API may change.