This repository was archived by the owner on Sep 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·54 lines (47 loc) · 1.99 KB
/
install.sh
File metadata and controls
executable file
·54 lines (47 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
dpkg -s sudo &> /dev/null
if [ $? != 0 ]
then
DEBIAN_FRONTEND=noninteractive apt update
DEBIAN_FRONTEND=noninteractive apt install sudo -y
fi
source activate-conda.sh
# one-time installs
if [ "$1" == "--skip" ]
then
echo "Skipping chapterization dependencies"
activate_conda
else
echo "Installing chapterization dependencies"
sudo DEBIAN_FRONTEND=noninteractive apt update
sudo DEBIAN_FRONTEND=noninteractive apt install git ffmpeg vim wget -y
CUR_DIR=`pwd`
cd /tmp
miniforge_script=Miniforge3-$(uname)-$(uname -m).sh
[ -e $miniforge_script ] && rm $miniforge_script
wget "https://github.com/conda-forge/miniforge/releases/latest/download/$miniforge_script"
bash $miniforge_script -b -u
# used to activate conda install
activate_conda
conda init
cd $CUR_DIR
# neo/opencl drivers 24.45.31740.9
mkdir neo
cd neo
wget https://github.com/intel/intel-graphics-compiler/releases/download/v2.5.6/intel-igc-core-2_2.5.6+18417_amd64.deb
wget https://github.com/intel/intel-graphics-compiler/releases/download/v2.5.6/intel-igc-opencl-2_2.5.6+18417_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/24.52.32224.5/intel-level-zero-gpu-dbgsym_1.6.32224.5_amd64.ddeb
wget https://github.com/intel/compute-runtime/releases/download/24.52.32224.5/intel-level-zero-gpu_1.6.32224.5_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/24.52.32224.5/intel-opencl-icd-dbgsym_24.52.32224.5_amd64.ddeb
wget https://github.com/intel/compute-runtime/releases/download/24.52.32224.5/intel-opencl-icd_24.52.32224.5_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/24.52.32224.5/libigdgmm12_22.5.5_amd64.deb
sudo dpkg -i *.deb
# sudo apt install ocl-icd-libopencl1
cd ..
fi
echo "Installing chapterization"
# Default Python to Ubuntu 22.04.5
conda create -n langchain_chapterization_env python=3.10.12 -y # for a specific version
conda activate langchain_chapterization_env
echo 'y' | conda install pip
pip install -r requirements.txt