Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aistore-0.0.5.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

aistore-0.0.5-py3-none-any.whl (12.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page