forked from lm-sys/FastChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mixtral-8x22.slurm
33 lines (27 loc) · 1.11 KB
/
mixtral-8x22.slurm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
#SBATCH --job-name=Mixtral-8x22B-v0.1
#SBATCH --output=/p/haicluster/llama/FastChat/logs/%j.txt
#SBATCH --error=/p/haicluster/llama/FastChat/logs/%j.txt
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=16
#SBATCH --gres=gpu:8
echo "I AM ON "$(hostname) " running Mixtral-8x22B-v0.1"
export BLABLADOR_DIR="/p/haicluster/llama/FastChat"
source $BLABLADOR_DIR/config-blablador.sh
cd $BLABLADOR_DIR
# Avoid the ModuleNotFoundError
source $BLABLADOR_DIR/sc_venv_sglang2/activate.sh
#source $BLABLADOR_DIR/sc_venv_2024/activate.sh
export PATH=$BLABLADOR_DIR:$PATH
export PYTHONPATH=$BLABLADOR_DIR:$PYTHONPATH
#srun python3 fastchat/serve/model_worker.py \
srun python3 $BLABLADOR_DIR/fastchat/serve/model_worker.py \
--controller $BLABLADOR_CONTROLLER:$BLABLADOR_CONTROLLER_PORT \
--port 31029 --worker-address http://$(hostname).fz-juelich.de:31029 \
--num-gpus 8 \
--host 0.0.0.0 \
--model-path models/Mixtral-8x22B-v0.1 \
--model-name "alias-large,Mixtral-8x7B-Instruct-v0.1 The best one" \
# --load-8bit It's faster without it
# --max-gpu-memory 22Gb \