Quickstart Guide

Introduction

Fortanix Confidential AI is a service for developing and deploying AI models on sensitive data using confidential computing. The service provides multiple stages of the data pipeline for an AI project and secures the following stages using confidential computing which ensures that the data can be processed, and models can be developed while keeping the data confidential even when in use:

  • Data ingestion
  • Data preparation
  • Learning
  • Inference

This quickstart guide will help you get started with Fortanix Confidential AI. For a detailed user guide refer to User's Guide: Confidential AI.  

Step 1: Sign Up and Log In - Existing DSM SaaS Users

  1. Log in to Fortanix DSM SaaS using your existing Fortanix DSM SaaS credentials. CAI_signin.pngFigure 1: Log in to Fortanix DSM SaaS
  2. Select an existing Fortanix DSM SaaS account or create a new account. CAI_selectAccount.pngFigure 2: Select the account
  3. In the Fortanix DSM SaaS dashboard, click the GO TO CONFIDENTIAL AI button on the banner at the top of the page. CAI_banner.pngFigure 3: Go to Confidential AI workspace
  4. You can now proceed to the first page of the Confidential AI workspace, that is, Data Ingestion. CAI__workspace.pngFigure 4: Confidential AI workspace

For a more detailed guide about the Confidential AI existing user sign-up process, refer to the User's Guide: Sign up (Existing Users).

Step 1: Sign Up and Log In - New Users

If you are a new user and want to sign up for Confidential AI:

  1. Go to the Confidential AI product page on the Fortanix product page.
  2. Register for a free trial by filling the “Start your free trial” form.
  3. Once your free trial starts, in the Confidential AI signup form, enter the user’s Email address, First name, Last name, and Password.
  4. Select the check box I agree to Terms and Conditions.
  5. Click SIGN UP to complete the signup process. DSMSaaS4.pngFigure 5: Sign up for Confidential AI
  6. This will take you to the Fortanix DSM SaaS dashboard. Click the GO TO CONFIDENTIAL AI button on the banner at the top of the page.CAI_banner.pngFigure 6: Go to Confidential AI workspace
  7. You can now proceed to the first page of the Confidential AI workspace, that is, Data Ingestion. CAI__workspace.pngFigure 7: Confidential AI workspace

For a more detailed guide about the Confidential AI new user signup process, refer to the User's Guide: Sign Up (New Users).

Step 2: Data Ingestion

This is the first phase, where the data will be collected either by connecting to an S3 bucket or uploading a file to the Confidential AI platform.

To collect the data:

  1. On the Data Ingestion page, click CREATE DATASET, and select CSV Dataset if you have a structured tabular data that consists of rows and columns in CSV format or an Image Dataset if your data is of the format bmp, jpg, jpeg, png, tif, tiff, dng.
  2. Enter the Dataset name. For example: patient_input_dataset
  3. Select the Upload a file option if you want to upload your data directly to the Fortanix Confidential AI platform.
    • Upload a *.csv file for a tabular dataset.
    • Upload a tar.gz file for an image dataset. This file will contain images in the format: *.bmp, *.jpg, *.jpeg, *.png, *.tif, *.tiff, *.dng.
      1. In the File Upload section, upload the file. In a CSV dataset, notice that after the file is uploaded, the headers (column names) are detected and displayed. For example: Name, Weight, Age, and so on. The number of rows is also detected and displayed.
      NOTE
      Input data size is limited to 200 MB per dataset for the 3.9 release.
    CAI_Uploadfile.pngCAI_Uploadfile1.pngFigure 8: Upload a file
    OR
    Select S3 URL if you want to bring your data by connecting to an S3 account. For details on how to prepare your S3 bucket for Confidential AI, refer to the User's Guide: Preparing Your S3 Bucket for Confidential AI.
    1. Enter the S3 bucket URL (The S3 URL should start with `s3://`), Access Key ID, Secret Key, and Encryption key (optional):
      1. S3 Bucket URL – The AWS S3 URL pointing to the input file
      2. Access Key ID – The AWS access key id needed to access the S3 URL
      3. Secret Key – The AWS secret access key needed to access the S3 URL
      4. Encryption Key – An optional encryption key that was used to encrypt the data that is available on the S3 account. The encryption supported is AES-256-GCM and the provided encryption key is expected to be a 64 character long hex string.
    2. Click RETRIEVE to save the S3 details and retrieve your data. CAI__S3.pngCAI__S3Create.pngFigure 9: S3 details
      If you selected a CSV dataset, notice that the headers (column names) are detected and displayed. For example: Name, Weight, Age, and so on. The number of rows is also detected and displayed.
  4. Add Labels: To track what the data is used for; you can optionally add Labels in the form of “Key:Value” pairs.
  5. Click CREATE DATASET to save the data. CAI_DatasetCreated.pngFigure 10: Saved dataset
    For a more detailed guide about the Confidential AI data ingestion process, refer to the User's Guide: Data Ingestion.

Step 3: Data Preparation

NOTE
The data preparation phase is only limited to Tabular datasets.
  1. In the Data Preparation page, click ADD VARIABLES to select the features and target. CAI_AddVariables.pngFigure 11: Add variables
  2. Select one or more features from the SET A FEATURE column and select one target from the SET A TARGET column for the model training phase. These features and targets are called Variables, for example:
    • X: (Age, Gender) and Y: (Cholesterol) as one set of features AND
    • X: (Age, Height) and Y: (Cholesterol) as another set of features.
    Where X is the feature set and Y is the target. For each set of features (X) you can choose only one target (Y). 
  3. Click ADD to add the variables. CAI_AddVariables1.pngFigure 12: Select the features and target
  4. The variables are added, click SAVE to save the variables and proceed to the next phase, that is, build a model.
    For a more detailed guide about the Confidential AI data preparation process, refer to the User's Guide: Data Preparation.

Step 4: Build a Model

In the build a model stage, you choose to run a selection of pre-curated AI algorithms on the datasets defined in the previous phases, to build AI models.

NOTE
This stage is applicable only for tabular datasets.

For more details about the AI algorithms please refer to Confidential AI-Algorithms.
In the “Build a Model” form:

  1. Select the BUILD A MODEL tab and click BUILD MODEL to build a training model for the dataset created in the previous phase. CAI_BuildModel.pngFigure 13: Build a model
  2. In the “Build a Model” form, enter the Training flow name, that is, the name of the model, for example: Patient_Workflow1.
  3. In the Training Dataset field, select the training dataset on which you want to run the AI algorithm and build a trained model.
  4. In the Algorithm field, select the algorithm that you want to run on the training dataset to get a trained model.
  5. Select ML variables that you created in the Data Preparation phase.
  6. In the Model name field, enter the name of the output dataset. This is the output model that will be used in the data inference phase.
  7. Click BUILD MODEL to run the selected algorithm on the training data and build the model for inference. CAI__BuildModel.pngFigure 14: Build a model
  8. To run the training model, click the RUN button below the model. CAI_RunTrainingModel.pngFigure 15: Run training model
  9. After the execution is completed successfully, the model is now trained and ready for inference. CAI_BuildSuccess.pngFigure 16: Model training success
  10. Click the download report icon to download the execution log report.

For a more detailed guide about the Confidential AI "build a model" process, refer to the User's Guide:Build a Model.

Step 5: Data Inference

In this stage, the data (CSV or images) is passed through a machine learning model to identify and predict the output from the data.

  1. In the INFERENCE tab, click BUILD INFERENCE to predict the data output.
  2. Enter the Inference flow name and select the training dataset in the Input dataset
  3. In the Algorithm field, select the prediction algorithm.
  4. In the Model field, select the trained model that was built in the “build a model” stage.
  5. In the Output Configuration field, enter a name for the output dataset that will contain the predicted output.
  6. The output dataset will be encrypted, hence Encrypt Dataset is enabled to add an extra layer of protection to the output data. Copy or download the encryption key to decrypt the output data for viewing.
  7. Click CREATE INFERENCE FLOW to pass the data through a machine learning model and predict the output. CAI__Inference.pngFigure 17: Build inference
  8. The inference is successfully created. Click RUN below the inference workflow to run the model and predict the output. CAI__RunInference.pngFigure 18: Run inference
  9. If the model was executed successfully, you would see the status of the execution under the Execution Log. Click the Execution Log link to view the log details.
  10. After the execution is completed successfully, the output is now predicted and ready to be viewed. To view the output, click the DOWNLOAD button. CAI_DownalodInferenceOutput.pngFigure 19: Download output
  11. 15. In the DOWNLOAD dialog box, enter the Decryption key to decrypt the output. CAI_DecryptionKey.pngFigure 20: Decrypt output
  12. A *.tar file is generated on your local machine. Extract the contents of the file. The output appears as shown below. A snapshot of the output appears as shown below.
    CAI_Output1.png
          Figure 21: Output

For a more detailed guide about the Confidential AI "build a model" process, refer to the User's Guide: Inference.

Comments

Please sign in to leave a comment.

Was this article helpful?
0 out of 0 found this helpful