LLM-Server / on_startup.sh
zerrin's picture
Update on_startup.sh
06a3e3d verified
raw
history blame contribute delete
No virus
580 Bytes
#!/bin/bash
# Write some commands here that will run on root user before startup.
# For example, to clone transformers and install it in dev mode:
# git clone https://github.com/huggingface/transformers.git
# cd transformers && pip install -e ".[dev]"
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.10
git clone https://github.com/itszerrin/DeepInfra-Wrapper.git
cd DeepInfra-Wrapper
python3 -m venv myvenv
source myvenv/bin/activate
pip install -r requirements.txt
python3.10 app.py