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.tar.gz (17.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-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: safetensors_dataset-0.0.10.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for safetensors_dataset-0.0.10.tar.gz
Algorithm Hash digest
SHA256 c9cee0e2e0fbb2b40316d294ad54eb5f5e1e3b372a11610baa25deaa660369d4
MD5 84188e4536dd4c32dff398e0f3b2a2fd
BLAKE2b-256 0e91cd125e74ecaccf723b77cddfd688313bb776df4cb9aea5daf320b89c4917

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for safetensors_dataset-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 7bd145dc904925ee461761c149940172b7c2adb9444b7c1c370604aee2e65d13
MD5 14c48c7af9b2a8293a03503fc26108e2
BLAKE2b-256 9770de5b59819d80e9522ba5755477b8327689c8ec20548f35683abf7b2b2ddc

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