-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtriton-build-script-ng.sh
More file actions
23 lines (17 loc) · 920 Bytes
/
triton-build-script-ng.sh
File metadata and controls
23 lines (17 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# First time users run:
# TRITON_SCRIPT_ENV_FIRST_RUN=1 \
# bash ~/fbsource/fbcode/scripts/plotfi/triton-build-script/triton-build-script-ng.sh
source `dirname $0`/auto-env.sh
echo "⚛ Attempting to Clone Triton from $TRITON_URL ..."
if [ ! -d triton ]; then git clone $TRITON_URL $PROJECT_DIR; fi
echo "🐍🔥 Setting Up VENV ($VENV_PROJECT_NAME), Installing PyTorch Nightly ($TORCH_URL), Removing pytorch-triton ..."
python3.11 -m venv $PROJECT_DIR/.venv --prompt $VENV_PROJECT_NAME
source $PROJECT_DIR/.venv/bin/activate
pip install --no-cache-dir --pre torch torchvision torchaudio --index-url $TORCH_URL
pip uninstall -y pytorch-triton pytorch-triton-rocm
echo "🐲 Building+Installing Triton+Requirements+LLVM ..."
make -C $PROJECT_DIR dev-install-llvm
echo "Now Please Run:"
echo "source env.sh # run just once"
echo "DEBUG=$DEBUG python -m pip install -e $PROJECT_DIR --no-build-isolation"