GeorgeDe commited on
Commit
8e52f30
·
verified ·
1 Parent(s): 0c2382b

Create setup.sh

Browse files
Files changed (1) hide show
  1. setup.sh +10 -0
setup.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ sudo apt-get update -y
2
+ sudo apt-get install -y gcc-12 g++-12
3
+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 10 --slave /usr/bin/g++ g++ /usr/bin/g++-12
4
+ pip install --upgrade pip
5
+ pip install wheel packaging ninja "setuptools>=49.4.0" numpy
6
+ pip install -v -r requirements-cpu.txt --extra-index-url https://download.pytorch.org/whl/cpu
7
+ VLLM_TARGET_DEVICE=cpu python setup.py install
8
+ sudo apt-get install libtcmalloc-minimal4
9
+ find / -name *libtcmalloc*
10
+ export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4:$LD_PRELOAD