Skip to main content

No project description provided

Project description

deepmux-python

deepmux is a PaaS solution to effortlessly deploy trained machine learning models on the cloud and generate predictions without setting up any hardware.

At the moment only pytorch models are supported.

Installation

pip install deepmux

Getting token

You can get your deepmux token at https://app.deepmux.com/api_key.

Quickstart

Creating model

Initialize a model and upload it to deepmux servers

from deepmux import create_model

model = create_model(<YOUR PYTORCH MODEL>, <MODEL_NAME>, <SHAPE OF INPUT DATA>, <SHAPE OF OUTPUT DATA>, <TOKEN>)

Getting model by name

On your production server you can simply get model by it's name.

from deepmux import get_model

model = get_model(<MODEL NAME>, <TOKEN>)

Executing model on your import

After initializing your model with create_model or get_model you can run the model. All computations will be performed on deepmux infrastucture.

output = model.run(<YOUR INPUT>)

Complete example on a model from PyTorch Hub

import numpy as np
import torch

from deepmux import create_model

token = "<YOUR_TOKEN>"

pytorch_model = torch.hub.load('pytorch/vision:v0.5.0', 'squeezenet1_0', pretrained=True)

deepmux_model = create_model(
    pytorch_model,
    model_name='my_model',
    input_shape=[1, 3, 227, 227],
    output_shape=[1, 1000],
    token=token)

dummy_input = np.zeros([1, 3, 227, 227], dtype=np.float32)

output = deepmux_model.run(dummy_input)

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

deepmux-0.3.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

deepmux-0.3.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file deepmux-0.3.2.tar.gz.

File metadata

  • Download URL: deepmux-0.3.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.5

File hashes

Hashes for deepmux-0.3.2.tar.gz
Algorithm Hash digest
SHA256 a09f69616b92d95249bbe2f0db8732ab4fd1a4c7aa1d5ea257034510fd74b22f
MD5 addf184e1ded8efce245912153377f1b
BLAKE2b-256 965f4419ff43d93642c022bf164c6b429a36d989b27dfe1fe0f2a00cfd221307

See more details on using hashes here.

File details

Details for the file deepmux-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: deepmux-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.5

File hashes

Hashes for deepmux-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5a75baa5343b9bb008855d6b2bf6a0990eaa4d32cd88b6c8d58e292f85854047
MD5 f0456c974c1629c883ea3466327cb8a2
BLAKE2b-256 180c4efb6b5cd6fc602263fa98f2df0dad5b2bb498dda2f54584f652b9d5847d

See more details on using hashes here.

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