Skip to content

Commit

Permalink
feat: Add Elyra notebook server example (awslabs#575)
Browse files Browse the repository at this point in the history
Signed-off-by: omrishiv <327609+omrishiv@users.noreply.github.com>
  • Loading branch information
omrishiv authored and ovaleanu committed Aug 10, 2024
1 parent 9838675 commit 317a89a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM elyra/elyra:3.15.0

RUN pip install --upgrade jupyterhub==4.0.2
11 changes: 11 additions & 0 deletions ai-ml/jupyterhub/helm/jupyterhub/jupyterhub-values-dummy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ proxy:
singleuser:
startTimeout: 1200 # 20 mins to spin up a notebook server for GPU including the image pull
profileList:
- display_name: Elyra (CPU)
description: "Elyra Notebooks | Karpenter Autoscaling"
kubespawner_override:
image: public.ecr.aws/data-on-eks/elyra-jupyter:3.15.0
node_selector:
NodePool: default
cpu_guarantee: 2
mem_guarantee: 8G
cpu_limit: 4
mem_limit: 8G
cmd: null
- display_name: Data Engineering (CPU)
description: "PySpark Notebooks | Karpenter AutoScaling"
profile_options:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions website/docs/blueprints/ai-ml/jupyterhub.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,11 @@ kubectl port-forward svc/proxy-public 8080:80 -n jupyterhub
**Sign-in:** Navigate to [http://localhost:8080/](http://localhost:8080/) in your web browser. Input `user-1` as the username and choose any password.
![alt text](img/image.png)

Select server options: Upon sign-in, you’ll be presented with a variety of Notebook instance profiles to choose from. For this time-slicing feature demonstration, we’ll be using the **Data Science (GPU + Time-Slicing – G5)** profile. Go ahead and select this option and choose the Start button.
Select server options: Upon sign-in, you’ll be presented with a variety of Notebook instance profiles to choose from. The `Data Engineering (CPU)` server is for traditional, CPU based notebook work. The `Elyra` server provides [Elyra](https://github.com/elyra-ai/elyra) functionality, allowing you to quickly develop pipelines: ![workflow](img/elyra-workflow.png). `Trainium` and `Inferentia` servers will deploy the notebook server onto Trainium and Inferentia nodes, allowing accelerated workloads. `Time Slicing` and `MIG` are two different strategies for GPU sharing. Finally, the `Data Science (GPU)` server is a traditional server running on an NVIDIA GPU.

![alt text](img/image-1.png)
For this time-slicing feature demonstration, we’ll be using the **Data Science (GPU + Time-Slicing – G5)** profile. Go ahead and select this option and choose the Start button.

![alt text](img/notebook-server-list.png)

The new node created by Karpenter with the `g5.2xlarge` instance type has been configured to leverage the timeslicing feature provided by the [NVIDIA device plugin](https://github.com/NVIDIA/k8s-device-plugin). This feature allows for efficient GPU utilization by dividing a single GPU into multiple allocatable units. In this case, we have defined `4` allocatable GPUs in the NVIDIA device plugin Helm chart config map. Below is the status of the node:

Expand Down

0 comments on commit 317a89a

Please sign in to comment.