mirror of
https://github.com/jasonppy/VoiceCraft.git
synced 2026-04-03 09:46:45 +02:00
Automate instalation of dependencies in notebook.
Add a note in README about running in docker too to reduce cruft on your host box. Good luck, be nice!
This commit is contained in:
21
start-jupyter.sh
Executable file
21
start-jupyter.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
## Assumes you have docker installed with nvidia container container-toolkit
|
||||
# https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/1.13.5/install-guide.html
|
||||
# sudo apt-get install -y nvidia-container-toolkit-base || yay -Syu nvidia-container-toolkit || echo etc...
|
||||
## Try to start an existing container otherwise create a new one
|
||||
docker start jupyter 2> /dev/null || \
|
||||
docker run -it \
|
||||
-d \
|
||||
--gpus all \
|
||||
-p 8888:8888 \
|
||||
--name jupyter \
|
||||
--user root \
|
||||
-e NB_USER="$USER" \
|
||||
-e CHOWN_HOME=yes \
|
||||
-e GRANT_SUDO=yes \
|
||||
-w "/home/${NB_USER}" \
|
||||
-v "$PWD":"/home/$USER/work" \
|
||||
jupyter/base-notebook
|
||||
|
||||
## `docker logs jupyter` to get the URL link and token e.g.
|
||||
## http://127.0.0.1:8888/lab?token=blahblahblahblabhlaabhalbhalbhal
|
||||
Reference in New Issue
Block a user