Elffuss BraidHub

kikocis/llama-stack public

efac2a2f572e · 637 BRawPermalink
1#!/bin/bash
2
3if [[ $# -ne 1 ]]; then
4 echo "Error: Please provide the name of CONDA environment you wish to create"
5 exit 1
6fi
7
8ENV_NAME=$1
9
10set -eu
11eval "$(conda shell.bash hook)"
12
13echo "Will build env (or overwrite) named '$ENV_NAME'"
14
15set -x
16
17run_build() {
18 # Set up the conda environment
19 yes | conda remove --name $ENV_NAME --all
20 yes | conda create -n $ENV_NAME python=3.10
21 conda activate $ENV_NAME
22
23 # PT nightly
24 pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
25
26 # install dependencies for `llama-agentic-system`
27 pip install -r fp8_requirements.txt
28}
29
30run_build