Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Elyra notebook server example #575

Merged
merged 4 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading