A simple but handy Python library to save PyTorch datasets in safetensors format.
Project description
safetensors-dataset
safetensors-dataset is a very simple and tiny package adding support to efficiently load and store Pytorch datasets in the safetensors file format:
import torch
from safetensors_dataset import SafetensorsDataset
dataset = SafetensorsDataset.from_dict({
"x": torch.randn(8, 12, 3),
"y": torch.randint(12, (8,))
})
dataset.save_to_file("test.safetensors")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
safetensors_dataset-0.0.8.tar.gz
(15.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file safetensors_dataset-0.0.8.tar.gz.
File metadata
- Download URL: safetensors_dataset-0.0.8.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b07c7087705151e9a804041870aee7852c80e22580e9a50e782ca83332e0f7d
|
|
| MD5 |
662df9591fb847c60e2765cf28c7f521
|
|
| BLAKE2b-256 |
108033564392293485766acbe03d140a6536aec06a842437fdf4da3fd5a9a5db
|
File details
Details for the file safetensors_dataset-0.0.8-py3-none-any.whl.
File metadata
- Download URL: safetensors_dataset-0.0.8-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70def6830b7fac604d1468e1797037ac0806edff60304180a2f860ff2ce13f20
|
|
| MD5 |
d8b602c1312a5aa62f6390e55d060675
|
|
| BLAKE2b-256 |
1e322faaaf18443d3fac89c112d88d351bf07b422240c8ff1675893d0e8b1eb7
|