Skip to main content

A cloud instance suggestor

Project description

Instance-Suggestor

Python module to help you pick the cheapest and the best performant instance any where across the globe on any cloud provider

Introduction

Data Science training is a computationally expensive job. With each computataionally expensive job, comes exponential costs. This repo is for Data Scientists to understand in real time to understand the best instance at any point in time which fits the exact need for the dataset and training job they have across any cloud provider

V0 (suggest.py)

Python Module which takes

  1. Source data
  2. Instance Name
  3. Cloud Provider
  4. Region

and outputs

  1. Alternate Instances across different cloud providers same region
  2. Alternate cheapest instance on the same provider same region
  3. Alternate cheapest instance on the same provider any region
  4. Cheapest Instance across any cloud provider same region
  5. Cheapest Instance across any cloud provider any region

Default arguments

  1. Instance Name : p3.16xlarge
  2. Provider : AWS
  3. Region : Price_US_East1

V1 (instance-suggestor.py)

Python Module which takes

  1. Source data
  2. Framework (MXNet, Tensorflow, PyTorch)
  3. Network
  4. Dataset

and outputs

  1. Similar instances across different cards
  2. Fastest instance on all cards
  3. Cheapest instance on all cards

Default arguments

  1. Framework : Tensorflow
  2. Network : ResNet-50 v1.5
  3. Dataset : ImageNet2012

How To Use

Requires basic Python packages like numpy, pandas preinstalled

Using as a Python Package

You can also do a pip install of the latest version of InstanceSuggestor

$ pip install InstanceSuggestor
$ python3 #open a python shell
> import InstanceSuggestor as inst
> inst.get_fastest_instance() #outputs result based on default arguments
> inst.get_fastest_instance(url, framework, network, dataset) #to make a custom call to function
> inst.get_similar_instances(url, framework, network, dataset)
> inst.get_cheapest_instance(url, framework, network, dataset)
> inst.predictor_sameRegion(url, instance, region)
> inst.predictor_anyRegion(url, instance, provider, region)
> inst.predictor_cheapest(url, instance, region)
> inst.predictor_cheapest2(url, region)
> inst.predictor_sameRegion2(url, instance, provider, region)

Example Runs

get_similar_instances()

get_similar

predictor_cheapest() : input shows an AWS instance and the suggestor provides a cheaper instance on GCP.

get_cheapest

Project Status

Ongoing

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

InstanceSuggestor-1.1.4.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

InstanceSuggestor-1.1.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file InstanceSuggestor-1.1.4.tar.gz.

File metadata

  • Download URL: InstanceSuggestor-1.1.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for InstanceSuggestor-1.1.4.tar.gz
Algorithm Hash digest
SHA256 d4f390d2789f9d494e7bde687f7e14ab1f59f1119dfc0df325dffe3c9cbe09be
MD5 c405c49fc30607d18304979b4f40ce05
BLAKE2b-256 09c22507f63e4790e03ce87c3e0fdce4d2898e77d1f784bf1d71e961ca61174e

See more details on using hashes here.

File details

Details for the file InstanceSuggestor-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: InstanceSuggestor-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for InstanceSuggestor-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 af9e9dd0ac213a22f2880e832d645620efd93b8fffc60476fbc2a79d5cf23029
MD5 f6e9ae13ead13d14279583bb1e8267d5
BLAKE2b-256 40e7d8049b1179964fac31aa127f447229ae08bc8c6e6480c4ac631537530be2

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