|
@@ -32,17 +32,15 @@ done
|
|
|
###########################
|
|
|
|
|
|
source ~/miniconda3/etc/profile.d/conda.sh
|
|
|
-if conda env list | grep ".*bloom-demo.*" &>/dev/null; then
|
|
|
+if conda env list | grep ".*bloom-demo.*" >/dev/null 2>/dev/null; then
|
|
|
conda activate bloom-demo
|
|
|
else
|
|
|
conda create -y --name bloom-demo python=3.8.12 pip
|
|
|
conda activate bloom-demo
|
|
|
|
|
|
conda install -y -c conda-forge cudatoolkit-dev==11.3.1 cudatoolkit==11.3.1 cudnn==8.2.1.32
|
|
|
- pip install -i https://pypi.org/simple torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/torch_stable.html
|
|
|
- pip install -i https://pypi.org/simple accelerate==0.10.0 huggingface-hub==0.7.0 hivemind==1.1.0
|
|
|
- pip install -i https://pypi.org/simple bitsandbytes-cuda113==0.26.0
|
|
|
- pip install -i https://pypi.org/simple https://github.com/huggingface/transformers/archive/6589e510fa4e6c442059de2fab84752535de9b23.zip
|
|
|
+ pip install -i https://pypi.org/simple torch==1.12.0+cu113 -f https://download.pytorch.org/whl/torch_stable.html
|
|
|
+ pip install -i https://pypi.org/simple -r requirements.txt
|
|
|
fi
|
|
|
|
|
|
|
|
@@ -88,7 +86,7 @@ do
|
|
|
done < ${CONFIG_PATH}/server_${SERVER_ID}.cfg
|
|
|
|
|
|
echo "=== Server #${SERVER_ID} ==="
|
|
|
- echo "Server ID: ${id_path}"
|
|
|
+ echo "Server ID: ${cfg[id_path]}"
|
|
|
echo "Device: ${cfg[device]}"
|
|
|
echo "Bloom block ids: ${cfg[block_ids]}"
|
|
|
echo "Host maddr: ${cfg[maddr]}"
|