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.11rc2.tar.gz (22.1 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.11rc2-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: safetensors_dataset-0.0.11rc2.tar.gz
  • Upload date:
  • Size: 22.1 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.11rc2.tar.gz
Algorithm Hash digest
SHA256 31fad1fbbf0185aa745394936af2b8684577d4b965c9fbcfaa86cb13210203be
MD5 256888f23efdbd1eee44efaf2cc78a39
BLAKE2b-256 9919b0b59d3734d628e1f2885242d93c3f14d8db502b20dce8af47804ec1f937

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for safetensors_dataset-0.0.11rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 eba48dd69969c5804194a5427c1482081746d17b2b3a1b2079dac8ec316be156
MD5 93bfa2a6284592069bd3fc1afef3c31b
BLAKE2b-256 fb387cee66bf47be3283000351158436fef60bd4d6c048775b255da3f3aa43d8

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