Skip to main content

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


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.10.post2.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

safetensors_dataset-0.0.10.post2-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file safetensors_dataset-0.0.10.post2.tar.gz.

File metadata

File hashes

Hashes for safetensors_dataset-0.0.10.post2.tar.gz
Algorithm Hash digest
SHA256 b827c8cc7659c53a649f431376041cc87b3d38162fd8cc68c52fafda60544fa0
MD5 b87fa0cd9801ee2ba6173ec8720396c0
BLAKE2b-256 be2b309736338d2d091b47c861ffe4d9d7a7c68fdb0d5afac8ac5ce01ec02018

See more details on using hashes here.

File details

Details for the file safetensors_dataset-0.0.10.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for safetensors_dataset-0.0.10.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 114e273cfe24fe3fca233250c9ae377a94cd5d03f2962235682353e06bd12f20
MD5 fe04ac1c085e0a2bf6cc7edcf95e7fdb
BLAKE2b-256 ad944322896005df18546835466a702333f21fdb272a5a5eb478663ac598976b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page