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]
Flags:
--region AWS 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)
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/*'
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scigantic_transfer-0.1.0.tar.gz.
File metadata
- Download URL: scigantic_transfer-0.1.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9efd559f7a1e581c6e35470dcfd700666eb749a1f003bf0c12cae9e621187a0f
|
|
| MD5 |
cf75d8f604b4a173feed1d2e6ae3a04e
|
|
| BLAKE2b-256 |
45ea1b23d127dca65762a1a866c70fb1ad51771b9ed7ff7ea6bafe46e8f7c0fa
|
File details
Details for the file scigantic_transfer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: scigantic_transfer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61e6bdf13f7cb6b5b497de4a1ff282d1c64346ae796f8e2413e1eb9b48692f3c
|
|
| MD5 |
7fb14010526a622d94ed1bea1cea59aa
|
|
| BLAKE2b-256 |
f7c02de6abdede66bbacc8998b68b362538768144e708935053cdd5d84775a93
|