Shreshth Gandhi
commited on
Commit
·
affe86a
1
Parent(s):
7b072d3
Hackathon instructions
Browse files- tutorials/hackathon_setup.md +10 -4
tutorials/hackathon_setup.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
|
2 |
# 🐳 Minimal Jupyter via SSH + Docker (Lambda Cloud)
|
3 |
|
4 |
-
This guide sets up Jupyter running **inside a Docker container** on your
|
|
|
5 |
|
6 |
---
|
7 |
|
@@ -19,6 +20,8 @@ Replace `<YOUR_SSH_KEY_PATH>` with your private key path and `<INSTANCE_IP>` wit
|
|
19 |
|
20 |
## ✅ 2. Start your Docker container with Jupyter
|
21 |
|
|
|
|
|
22 |
```bash
|
23 |
sudo docker run --gpus all --shm-size=64g -dit \
|
24 |
--name bionemo \
|
@@ -37,11 +40,11 @@ sudo docker exec -it bionemo bash
|
|
37 |
|
38 |
## ✅ 3. Install Jupyter and other Python tools inside the container
|
39 |
|
40 |
-
Inside the container shell
|
41 |
|
42 |
```bash
|
43 |
-
pip install jupyter
|
44 |
-
git clone
|
45 |
```
|
46 |
|
47 |
Then launch Jupyter:
|
@@ -57,6 +60,8 @@ Note the access token printed in the terminal output (you’ll need it to log in
|
|
57 |
## ✅ 4. Forward Jupyter port from remote to local
|
58 |
|
59 |
On your **local machine**, open a new terminal and run:
|
|
|
|
|
60 |
|
61 |
```bash
|
62 |
ssh -i <YOUR_SSH_KEY_PATH> -L 8888:127.0.0.1:8888 ubuntu@<INSTANCE_IP>
|
@@ -80,3 +85,4 @@ To stop and remove the container:
|
|
80 |
sudo docker stop bionemo
|
81 |
sudo docker rm bionemo
|
82 |
```
|
|
|
|
1 |
|
2 |
# 🐳 Minimal Jupyter via SSH + Docker (Lambda Cloud)
|
3 |
|
4 |
+
This guide sets up Jupyter running **inside a Docker container** on your
|
5 |
+
Lambda Cloud instance and forwards it securely to your local machine
|
6 |
|
7 |
---
|
8 |
|
|
|
20 |
|
21 |
## ✅ 2. Start your Docker container with Jupyter
|
22 |
|
23 |
+
Please replace the image URL with an image of your choosing. The BioNemo image has pytorch and datasets pre-installed
|
24 |
+
as well as implementations of several Bio-FMs.
|
25 |
```bash
|
26 |
sudo docker run --gpus all --shm-size=64g -dit \
|
27 |
--name bionemo \
|
|
|
40 |
|
41 |
## ✅ 3. Install Jupyter and other Python tools inside the container
|
42 |
|
43 |
+
Inside the container shell, replace the pip and git commands with the packages that you need.
|
44 |
|
45 |
```bash
|
46 |
+
pip install jupyter anndata
|
47 |
+
git clone https://huggingface.co/datasets/tahoebio/Tahoe-100M
|
48 |
```
|
49 |
|
50 |
Then launch Jupyter:
|
|
|
60 |
## ✅ 4. Forward Jupyter port from remote to local
|
61 |
|
62 |
On your **local machine**, open a new terminal and run:
|
63 |
+
Please note that you can do the same port-forwarding setup to use VScode if you prefer.
|
64 |
+
|
65 |
|
66 |
```bash
|
67 |
ssh -i <YOUR_SSH_KEY_PATH> -L 8888:127.0.0.1:8888 ubuntu@<INSTANCE_IP>
|
|
|
85 |
sudo docker stop bionemo
|
86 |
sudo docker rm bionemo
|
87 |
```
|
88 |
+
|