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

Uploaded Python 3

File details

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

File metadata

  • Download URL: safetensors_dataset-0.0.8.tar.gz
  • Upload date:
  • Size: 15.3 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.8.tar.gz
Algorithm Hash digest
SHA256 0b07c7087705151e9a804041870aee7852c80e22580e9a50e782ca83332e0f7d
MD5 662df9591fb847c60e2765cf28c7f521
BLAKE2b-256 108033564392293485766acbe03d140a6536aec06a842437fdf4da3fd5a9a5db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for safetensors_dataset-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 70def6830b7fac604d1468e1797037ac0806edff60304180a2f860ff2ce13f20
MD5 d8b602c1312a5aa62f6390e55d060675
BLAKE2b-256 1e322faaaf18443d3fac89c112d88d351bf07b422240c8ff1675893d0e8b1eb7

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