mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
chore: add dev-containers
This commit is contained in:
parent
2bc1505dac
commit
382d0d8bf7
20
backends/trtllm/.devcontainer/install-dev-tools.sh
Normal file
20
backends/trtllm/.devcontainer/install-dev-tools.sh
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# update system
|
||||||
|
apt-get update
|
||||||
|
apt-get upgrade -y
|
||||||
|
# install Linux tools and Python 3
|
||||||
|
apt-get install software-properties-common wget curl git build-essential \
|
||||||
|
python3-dev python3-pip python3-wheel python3-setuptools -y
|
||||||
|
# install Python packages
|
||||||
|
python3 -m pip install --upgrade pip
|
||||||
|
pip3 install --user -r .devcontainer/requirements.txt
|
||||||
|
# update CUDA Linux GPG repository key
|
||||||
|
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb
|
||||||
|
dpkg -i cuda-keyring_1.0-1_all.deb
|
||||||
|
rm cuda-keyring_1.0-1_all.deb
|
||||||
|
# install recommended packages
|
||||||
|
apt-get install zlib1g g++ freeglut3-dev \
|
||||||
|
libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev libfreeimage-dev -y
|
||||||
|
# clean up
|
||||||
|
pip3 cache purge
|
||||||
|
apt-get autoremove -y
|
||||||
|
apt-get clean
|
Loading…
Reference in New Issue
Block a user