Client and convenient connectors for PyTorch and TensorFlow to AIStore cluster
Project description
AIStore Python Client
Experimental project to provide Client and PyTorch as well as TensorFlow connectors to access cluster. The objective is two-fold:
-
allow Python developers and researchers to run existing PyTorch or TF-based models with almost no modifications
-
utilize AIStore on the backend using the code that looks as follows:
-
for PyTorch:
import aistore train_loader = torch.utils.data.DataLoader( aistore.pytorch.Dataset( "http://ais-gateway-url:8080", "lpr-imagenet", prefix="train/", transform_id="imagenet-etl", ), batch_size=args.batch_size, shuffle=True, num_workers=args.workers, pin_memory=True, )
-
or for TensorFlow:
import aistore from aistore.tf import Rename, Decode, Rotate, Resize, Select conversions = [ Rename(img="jpeg;png"), Decode("img"), Rotate("img"), Resize("img", (224, 244)), ] selections = [Select("img"), Select("cls")] dataset = aistore.tf.Dataset( "http://ais-gateway-url:8080", "lpr-imagenet", conversions, selections, ) train_dataset = dataset.load("train-{0..9999}.tar", num_workers=64)
-
This repository provides for deploying custom ETL containers on AIStore, with subsequent user-defined extraction, transformation, and loading in parallel, on the fly and/or offline, local to the user data.
Please also see the main AIStore repository, AIStore documentation, and AIStore and ETL videos.
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
File details
Details for the file aistore-0.0.5.tar.gz
.
File metadata
- Download URL: aistore-0.0.5.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b1fdb575eead2433f74bd18f9b6ee93abe6da6f57e9e02f01c02d25322d3aa6 |
|
MD5 | 6f06e049dcdd9403a34f4e5cc50bdff3 |
|
BLAKE2b-256 | f97586ac0e7ccd384d1d71ddbf025577ed4b53d7af503e8b335572e654880f5a |
File details
Details for the file aistore-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: aistore-0.0.5-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf2ffd1bcce438eac5fb49a3c6abd43aa9920622af07007d18553bd0bb2db1ad |
|
MD5 | 4d30e1e09356b1a4b81fc8e75a450cc4 |
|
BLAKE2b-256 | 27f5d2ff889784d2e9db1a0deacb788c7e99fd65ce2b3f5b58fe6cbf1bad7984 |