Skip to content

SageMaker

Ryan Loney edited this page Nov 3, 2022 · 2 revisions

Instructions to Run the Notebooks in Amazon SageMaker Studio

The steps below assume that you have an AWS account and access to Amazon SageMaker Studio. The entire one-time setup process may take up to 15 minutes.

Pre-requisite: Log into your Amazon SageMaker Studio Environment

image _Note: The Amazon SageMaker free tier usage per month for the first 2 months is 250 hours of ml.t3.medium instance on Studio notebook. In this example, we are using an ml.t3.medium instance.

Allow a couple minutes for your environment to spin up. You should see the following loading screen: image

Then, open a Terminal Session: image

Step 1:

conda create --name openvino_env python=3.9

Step 2: Activate the Environment

conda activate openvino_env

Step 2b: Ensure packages are installed in the environment

conda install ipykernel

Step 3: Clone OpenVINO Notebooks

git clone https://github.com/openvinotoolkit/openvino_notebooks.git

Step 4: Change Directory to openvino_notebooks

cd openvino_notebooks

Step 5: Upgrade pip

python -m pip install --upgrade pip

Step 5b: Install Requirements

pip install -r requirements.txt

Step 6: Add openvino_env to PATH

set PATH="/anaconda/envs/openvino_env/bin;%PATH%"

Step 7: Run the Notebooks!

To run the notebooks, click on the top level ‘openvino_notebooks’ folder and navigate to your example: image

We chose the hello world notebook.

Note: Please also make sure you are using the 'openvino_env' environment (not Python 3). image

Next, run the cells: image

Clone this wiki locally