Update setup.sh
Browse files
setup.sh
CHANGED
|
@@ -1,20 +1,4 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
|
| 3 |
-
curl -O https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh
|
| 4 |
-
bash /notebooks/Anaconda3-2024.02-1-Linux-x86_64.sh -b -p $HOME/anaconda3
|
| 5 |
-
activateBase () {
|
| 6 |
-
. /root/anaconda3/bin/activate
|
| 7 |
-
}
|
| 8 |
-
activateBase
|
| 9 |
-
conda init
|
| 10 |
-
conda create -n newpy python=3.11
|
| 11 |
-
activateEnv (){
|
| 12 |
-
conda activate newpy
|
| 13 |
-
}
|
| 14 |
-
activateEnv
|
| 15 |
-
pip install ipykernel jupyter ipywidgets jupyterlab
|
| 16 |
-
python -m ipykernel install --user --name newpy
|
| 17 |
-
python -m pip install torch==2.1.0+cu121 torchvision==0.16.0+cu121 torchaudio==2.1.0 torchtext==0.16.0+cpu torchdata==0.7.0 --index-url https://download.pytorch.org/whl/cu121torch --index-url https://download.pytorch.org/whl/cu121
|
| 18 |
python -m pip install git+https://github.com/huggingface/transformers.git
|
| 19 |
python -m pip install pytorch-crf
|
| 20 |
python -m pip install --upgrade pip
|
|
@@ -27,4 +11,4 @@ python -m pip install \
|
|
| 27 |
"cuxfilter-cu12>=24.4.0a0,<=24.4" "cucim-cu12>=24.4.0a0,<=24.4" \
|
| 28 |
"pylibraft-cu12>=24.4.0a0,<=24.4" "raft-dask-cu12>=24.4.0a0,<=24.4" \
|
| 29 |
"dask-cuda>=24.4.0a0,<=24.4"
|
| 30 |
-
python -m
|
|
|
|
| 1 |
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
python -m pip install git+https://github.com/huggingface/transformers.git
|
| 3 |
python -m pip install pytorch-crf
|
| 4 |
python -m pip install --upgrade pip
|
|
|
|
| 11 |
"cuxfilter-cu12>=24.4.0a0,<=24.4" "cucim-cu12>=24.4.0a0,<=24.4" \
|
| 12 |
"pylibraft-cu12>=24.4.0a0,<=24.4" "raft-dask-cu12>=24.4.0a0,<=24.4" \
|
| 13 |
"dask-cuda>=24.4.0a0,<=24.4"
|
| 14 |
+
python -m pip install poetry
|