Skip to main content

Mirror a Hugging Face dataset into a region-local S3 bucket and load it into memory fast (with HF fallback + benchmark).

Project description

scigantic-transfer

Mirror a Hugging Face dataset into a region-local S3 bucket, then load it into memory fast on a GPU instance in that region.

Install

pip install scigantic-transfer

Mirror a dataset (Hugging Face to S3)

scigantic-transfer --region REGION --name HF_DATASET --bucket-name BUCKET [--include GLOB] [--endpoint-url URL]

Flags:

--region         region of the bucket and the GPU instance (must match)
--name           Hugging Face dataset id
--bucket-name    destination S3 bucket; data lands at s3://BUCKET/NAME/
--include GLOB   files to mirror, repeatable; default '*' (whole repo)
--endpoint-url   S3-compatible endpoint for neoclouds; omit on AWS (see below)

Examples:

scigantic-transfer --region us-east-1 --name org/ds --bucket-name my-mirror
scigantic-transfer --region us-east-1 --name org/ds --bucket-name my-mirror --include 'data/*'

Neoclouds (Nebius and other non-AWS GPU clouds)

--endpoint-url is for neoclouds. The speed win only exists when the bucket and the GPU instance are in the same cloud and region, so on a neocloud you mirror into that cloud's own S3-compatible object storage and point the tool at its endpoint. On AWS, omit the flag.

scigantic-transfer --region eu-north1 --name org/ds --bucket-name my-mirror \
    --endpoint-url https://storage.eu-north1.nebius.cloud

Works against any S3-compatible store (Nebius, MinIO, Cloudflare R2). Credentials are read the usual way (env vars / config) and apply to that endpoint.

Load into memory

from scigantic_transfer import load

result = load("org/ds", region="us-east-1", bucket="my-mirror")
data = result.blob

Benchmark

scigantic-transfer-bench --size-gib 1
scigantic-transfer-bench --live --region us-east-1 --name org/ds --bucket-name my-mirror

License

Proprietary, evaluation use only. No redistribution or derivative works. See LICENSE. Contact support@scigantic.com.

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

scigantic_transfer-0.1.2.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scigantic_transfer-0.1.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file scigantic_transfer-0.1.2.tar.gz.

File metadata

  • Download URL: scigantic_transfer-0.1.2.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for scigantic_transfer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6b3f3a1bc5293c6237cc4cb67be0f731f31147f3aa776c46a8f47ac350dfae9c
MD5 6b894752d3aa1868f5a1a3fb30fa271b
BLAKE2b-256 91b7c97e584d6ac29310a5817e9cb18cbdfcf89b44a7aa0d72e559ec7f1f3184

See more details on using hashes here.

File details

Details for the file scigantic_transfer-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for scigantic_transfer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 702dc03448d9057cdc3dd6ad5b643a8cf621f502fdcb1792b741ce09cf7f92b1
MD5 fe4dad95158020e3d901d9efd6d8e9fd
BLAKE2b-256 64454ceb15b3f6ade10feb911262de0dd14656cfe74275f0c31d7ce3bfdc9b87

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