Cannot find Sagemaker sample notebooks

0

The README for amazon-sagemaker-examples states "These example notebooks are automatically loaded into SageMaker Notebook Instances. They can be accessed by clicking on the SageMaker Examples tab in Jupyter or the SageMaker logo in JupyterLab."

I've search through Sagemaker Studio but cannot for the life of me find an Examples tab or the SageMaker logo (there's a logo in the top left but clicking on it doesn't do anything).

The secondary issue I have is examples such as https://github.com/aws/amazon-sagemaker-examples/blob/main/inference/nlp/realtime/triton/multi-model/t5_pytorch_python-backend/t5_pytorch_python-backend.ipynb simply don't work. I cannot find a Sagemaker Studio kernel that has the required dependencies. In particular

Running the first cell using the Data Science 3 kernel produces

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
distributed 2022.7.0 requires tornado<6.2,>=6.0.3, but you have tornado 6.3.2 which is incompatible.

and the next cell

/opt/conda/lib/python3.10/site-packages/scipy/__init__.py:155: UserWarning: A NumPy version >=1.18.5 and <1.25.0 is required for this version of SciPy (detected version 1.25.1
  warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"

I did eventually get the example to work, but I encountered another the other day which invoked docker and I have no idea how to run that one from Sagemaker Studio as none of the kernels I could find seemed to have docker installed.

So is there a way of opening the examples in Sagemaker Studio with the correct kernel?

Dave
asked 8 months ago269 views
2 Answers
0

Hi, The Sagemaker sample notebooks that you are looking for are located at https://sagemaker-examples.readthedocs.io/en/latest/ (see 2nd hyperlink in the page that you give,)

On your example, Github page says Note This notebook was tested with the conda_python3 kernel on an Amazon SageMaker notebook instance of type g5.xlarge.

Did you try with this setup?

Hope it helps!

Didier

profile pictureAWS
EXPERT
answered 8 months ago
0

I finally figured out what's going on, AWS released Sagemaker Studio which is what I've been using. But all of the examples still refer to and mostly only work on Notebook Instances - which is a totally different environment to Sagemaker Studio despite both being based on Jupyter.

This isn't really clear, in particular the fact that the "legacy" kernels aren't available on Sagemaker Studio, and the fact that despite being promoted as being newer and better the examples are still being developed/maintained/tested on Notebook Instances rather than Sagemaker Studio seems to be an odd decision.

Dave
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions