Functions for safer PyTorch safetensors read/write operations
56.88 KB
built 2026-10-21 09:33:25 GMT
Description
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.
Dependencies
21 totalRequires17
- (crate(hashbrown/default) >= 0.16.0 with crate(hashbrown/default) < 0.17.0~)
- (crate(hashbrown/serde) >= 0.16.0 with crate(hashbrown/serde) < 0.17.0~)
- (crate(memmap2/default) >= 0.9.0 with crate(memmap2/default) < 0.10.0~)
- (crate(proptest/default) >= 1.7.0 with crate(proptest/default) < 2.0.0~)
- (crate(serde/alloc) >= 1.0.0 with crate(serde/alloc) < 2.0.0~)
- (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)
- (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)
- (crate(serde_json/alloc) >= 1.0.0 with crate(serde_json/alloc) < 2.0.0~)
- (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0~)
- (crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0~)
- cargo-rpm-macros >= 24
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(DynamicBuildRequires) <= 4.15.0-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(RichDependencies) <= 4.12.0-1
- rpmlib(TildeInVersions) <= 4.10.0-1
- rust >= 1.80
Provides4
- rust-safetensors+alloc-devel = 0.8.0-2.fc45
- rust-safetensors+default-devel = 0.8.0-2.fc45
- rust-safetensors+std-devel = 0.8.0-2.fc45
- rust-safetensors-devel = 0.8.0-2.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
4Name ![]() |
Size |
|---|---|
| rust-safetensors.spec | 5.60 KB |
| safetensors-0.8.0.crate | 33.71 KB |
| safetensors-fix-metadata-auto.diff | 263.00 B |
| safetensors-fix-metadata.diff | 273.00 B |
Files 1–4 of 4
Component of
buildroots that installed this RPMNo Buildroots
