Jupyterlab how to

I used
module "jupyterlab" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jupyterlab/coder"
version = "1.0.30"
agent_id = coder_agent.main.id
}
module "jupyterlab" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jupyterlab/coder"
version = "1.0.30"
agent_id = coder_agent.main.id
}
Not sure if it create conda env, but i cant install other packages. Also i want to use my gpu in that coder space. I use kubernetes, k3s and my pods are ready
kube-amd-gpu amd-gpu-operator-gpu-operator-charts-controller-manager-56vj26n 1/1 Running 36 (26m ago) 12d
kube-amd-gpu amd-gpu-operator-kmm-controller-7555dfd458-jm79v 1/1 Running 38 (26m ago) 12d
kube-amd-gpu amd-gpu-operator-kmm-webhook-server-8549795656-dftmj 1/1 Running 23 (26m ago) 12d
kube-amd-gpu amd-gpu-operator-node-feature-discovery-gc-76ddd7ff65-5m8kj 1/1 Running 23 (26m ago) 12d
kube-amd-gpu amd-gpu-operator-node-feature-discovery-master-75649cc887-lhmb8 1/1 Running 23 (26m ago) 12d
kube-amd-gpu amd-gpu-operator-node-feature-discovery-worker-sd99w 1/1 Running 28 (26m ago) 12d
kube-amd-gpu amd-gpu-operator-gpu-operator-charts-controller-manager-56vj26n 1/1 Running 36 (26m ago) 12d
kube-amd-gpu amd-gpu-operator-kmm-controller-7555dfd458-jm79v 1/1 Running 38 (26m ago) 12d
kube-amd-gpu amd-gpu-operator-kmm-webhook-server-8549795656-dftmj 1/1 Running 23 (26m ago) 12d
kube-amd-gpu amd-gpu-operator-node-feature-discovery-gc-76ddd7ff65-5m8kj 1/1 Running 23 (26m ago) 12d
kube-amd-gpu amd-gpu-operator-node-feature-discovery-master-75649cc887-lhmb8 1/1 Running 23 (26m ago) 12d
kube-amd-gpu amd-gpu-operator-node-feature-discovery-worker-sd99w 1/1 Running 28 (26m ago) 12d
Checked docs/articles but non found. Having some for this would be great. Thank you
No description
13 Replies
emircanerkul
emircanerkulOP•2w ago
GitHub
[Feature]: RDNA 2 Support · Issue #154 · ROCm/gpu-operator
Suggestion Description I have 6800xt but it do not detect my card. Name: rocminfo Namespace: default Priority: 0 Service Account: default Node: <none> Labels: <none> Annotations: <no...
emircanerkul
emircanerkulOP•2w ago
sample pod with amd gpu
apiVersion: v1
kind: Pod
metadata:
name: amd-smi
spec:
containers:
- image: docker.io/rocm/pytorch:latest
name: amd-smi
command: ["/bin/bash"]
args: ["-c","amd-smi version && amd-smi monitor -ptum"]
resources:
limits:
amd.com/gpu: 1
requests:
amd.com/gpu: 1
restartPolicy: Never
apiVersion: v1
kind: Pod
metadata:
name: amd-smi
spec:
containers:
- image: docker.io/rocm/pytorch:latest
name: amd-smi
command: ["/bin/bash"]
args: ["-c","amd-smi version && amd-smi monitor -ptum"]
resources:
limits:
amd.com/gpu: 1
requests:
amd.com/gpu: 1
restartPolicy: Never
Phorcys
Phorcys•2w ago
it doesn't seem to create a conda env, no so either you'll have to set up a virtualenv yourself or use !sudo apt install python3-<package> instead in your notebook
emircanerkul
emircanerkulOP•2w ago
okay, what about gpu passthrough? or lets say gpu scheduling in kubernetes world 🙂 I had proxmox background
emircanerkul
emircanerkulOP•2w ago
after checking scripts i see pipx does the thing
!pipx install tensorflow
!pipx inject jupyterlab tensorflow
!pipx install tensorflow
!pipx inject jupyterlab tensorflow
No description
emircanerkul
emircanerkulOP•2w ago
resources {
requests = {
"cpu" = "250m"
"memory" = "512Mi"
"amd.com/gpu" = 1
}
limits = {
"cpu" = "${data.coder_parameter.cpu.value}"
"memory" = "${data.coder_parameter.memory.value}Gi"
"amd.com/gpu" = 1
}
}
resources {
requests = {
"cpu" = "250m"
"memory" = "512Mi"
"amd.com/gpu" = 1
}
limits = {
"cpu" = "${data.coder_parameter.cpu.value}"
"memory" = "${data.coder_parameter.memory.value}Gi"
"amd.com/gpu" = 1
}
}
not sure but could be driver issue..
emircanerkul
emircanerkulOP•2w ago
No description
Atif
Atif•2w ago
Usually the expectation is that the environment(workspace) is pre-configured with GPU access and any other tools i.e. pytorch etc. The module only starts (and optionally installs) the jupyterlab ik the workspace
Phorcys
Phorcys•7d ago
(@emircanerkul )
emircanerkul
emircanerkulOP•7d ago
couldn't get it @Phorcys I already installed the module also spesified gpu labels as like i did in other outside coder pods but getting that error. second run i only see cpus not gpu
Phorcys
Phorcys•5d ago
would you be able to share your base image?
emircanerkul
emircanerkulOP•5d ago
Sure; here all tf code.
emircanerkul
emircanerkulOP•5d ago
codercom/enterprise-base:ubuntu

Did you find this page helpful?