GENC3-docker / setup_runtime.sh
roll-ai's picture
Update setup_runtime.sh
02bc3cb verified
raw
history blame
605 Bytes
#!/bin/bash
echo "πŸš€ Installing Python packages..."
# Install core dependencies from pip
pip install --upgrade pip
pip install --no-cache-dir -r /requirements.txt
# Transformer Engine
pip install transformer-engine[pytorch]==1.12.0
# Apex
git clone https://github.com/NVIDIA/apex
cd apex
CUDA_HOME=/usr/local/cuda pip install -v --no-cache-dir --disable-pip-version-check --no-build-isolation \
--config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" .
cd ..
# MoGe
pip install git+https://github.com/microsoft/MoGe.git
# Launch your app
cd /app
python app.py