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

Uploaded Python 3

File details

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

File metadata

  • Download URL: safetensors_dataset-0.0.11rc3.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for safetensors_dataset-0.0.11rc3.tar.gz
Algorithm Hash digest
SHA256 eafc8c2502f963db70ad4b6d098baf151db6ba992203e85128142d17778e195f
MD5 32b290834deffa7e1d5578b9b2d6336b
BLAKE2b-256 4c2fdb93b689279558981ddbefc108b73a3092c82862d7e2e6066a036cba4411

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for safetensors_dataset-0.0.11rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 8ab1638538cc4f2c06bb50ef3ddbe2cd931753238afc55ff5091f087bc81c48d
MD5 c7dc813db677b45020d2afb9582070a4
BLAKE2b-256 42d3a2685fc3d3d7f3e006ceee78ca24b2afeeb030346fc1cfd4438474f3f35d

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