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.11rc1.tar.gz (21.4 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.11rc1-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file safetensors_dataset-0.0.11rc1.tar.gz.

File metadata

  • Download URL: safetensors_dataset-0.0.11rc1.tar.gz
  • Upload date:
  • Size: 21.4 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.11rc1.tar.gz
Algorithm Hash digest
SHA256 25cd99a0d0f22fa35300b878e442f799e654b2a7773b0354eb1bafd185703d50
MD5 f0d99bb6d152c270c3008b283b9ead89
BLAKE2b-256 bf6c38e0a4d1bc31fcff17ad0439b3f7de613ac28fc53aaa1344dc7b1d0ea556

See more details on using hashes here.

File details

Details for the file safetensors_dataset-0.0.11rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for safetensors_dataset-0.0.11rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 99022574425f3ab370a5da5610da8a0a803637f2a1ebf78d58cfac250044ae80
MD5 a09282477bbd4a68baa565576d87769a
BLAKE2b-256 32ce33ec48450b7d9557a8ee5cfb9bee916948b12f8a2b7725f92375e959af92

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