Skip to main content

Installing ML SDK Libraries

Installing DynamoFL ML SDKs

In this tutorial, we will showcase installing DynamoFL's private ML SDKs.

Prerequisites:

  • DynamoFL API token
  • DynamoFL ML SDK Runtime License Key

AWS configuration

First, we install the aws cli following the instructions here

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

Now we setup the AWS CLI. This will ask for an Access Key, Secret Key, and Region. The keys should have been shared with your team over email.

aws configure

Now, login to code artifacts

aws codeartifact login --tool pip --repository dynamofl --domain dynamofl --domain-owner 014917819250 --region us-east-1

Now, install the DynamoFL SDK(s) you intend to use. It is recommended to install/use each one in a virtual env.

dynamofl.privacy

pip install dynamofl-privacy==0.0.28 --extra-index-url https://pypi.python.org/simple
# (for some python versions, you may need to install setuptools_scm: pip install setuptools_scm)
pip config unset global.index-url

To use the SDK, we need to copy the license key you were sent into the SDK. Replace pyXXX with the python version you are using and /content/pyarmor.rkey with the location of your license file.

cp /content/pyarmor.rkey $(pip show dynamofl-privacy | grep Location| cut -d ' ' -f 2)/dynamofl/privacy/pyarmor_runtime_005114/py310
import dynamofl.privacy

dynamofl.guard

pip install dynamofl-guard --extra-index-url https://pypi.python.org/simple

To use the SDK, we need to copy the license key you were sent into the SDK. Replace pyXXX with the python version you are using and /content/pyarmor.rkey with the location of your license file.

cp /content/pyarmor.rkey $(pip show dynamofl-guard | grep Location| cut -d ' ' -f 2)/dynamofl/guard/pyarmor_runtime_005114/py310
import dynamofl.guard

dynamofl.evaluate

pip install dynamofl-evaluate --extra-index-url https://pypi.python.org/simple

To use the SDK, we need to copy the license key you were sent into the SDK. Replace pyXXX with the python version you are using and /content/pyarmor.rkey with the location of your license file.

cp /content/pyarmor.rkey $(pip show dynamofl-evaluate | grep Location| cut -d ' ' -f 2)/dynamofl/evaluate/pyarmor_runtime_005114/py310
import dynamofl.evaluate

dynamofl.optimize

pip install dynamofl-optimize --extra-index-url https://pypi.python.org/simple

To use the SDK, we need to copy the license key you were sent into the SDK. Replace pyXXX with the python version you are using and /content/pyarmor.rkey with the location of your license file.

cp /content/pyarmor.rkey $(pip show dynamofl-optimize | grep Location| cut -d ' ' -f 2)/dynamofl/optimize/pyarmor_runtime_005114/py310
import dynamofl.optimize

Cleanup

Once we are done installing the SDK, we can reset the pip index so regular packages can be installed as normal.

pip config unset global.index-url

Copyright 2023 DynamoFL, Inc. All rights reserved.

For evaluation purposes only. No use, copying or distribution of the software is permitted.Copyright 2023 DynamoFL, Inc. All rights reserved.

All use of the software is subject to the license terms and conditions in the Terms of Use between you or your employer and DynamoFL. Without limiting the terms and conditions of the Terms of Use, you may not:

  • Use the software in any manner that isn't directly tied to your use of the DynamoFL platform, including any use that attempts to remove or circumvent the dependency of the software on the DynamoFL platform;
  • Reverse engineer or otherwise attempt to discover underlying structure, ideas, or algorithms of the software;
  • Copy, distribute, publish, or otherwise make available the software.

You may make minor edits to the software solely as necessary to train your models on the DynamoFL platform.