Spaces:
Build error
Build error
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 | |