Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.13 KB

jupyter-gpu.md

File metadata and controls

49 lines (32 loc) · 1.13 KB

Jupyter GPU

QuickStart

Prerequisites

  • An ASK cluster is created. For more information, see Create an ASK cluster
  • The cluster runs as expected. You can log on to the Container Service for Kubernetes (ACK) console, navigate to the Clusters page, and then check whether the cluster is in the Running state.

Deploy Stable Diffusion

  1. create jupyter deployment & service
kubectl apply -f jupyter-gpu.yaml
  1. wait deployment ready
kubectl get po |grep notebook

# NAME                       READY   STATUS    RESTARTS   AGE
# notebook-d68d854c9-ptvtp   1/1     Running   0          8m5s
  1. connect to the Jupyter Notebook

Run the following command to port-forward:

kubectl port-forward -n <namespace> service/notebook-svc 8888:8888

And then open the console using the following URL:

http://localhost:8888

jupyter-gpu

Run the following command to check the gpu device:

! nvidia-smi