Spaces:
Build error
Build error
File size: 1,059 Bytes
29d9234 6599eac 29d9234 1c71523 5f8e689 29d9234 5f8e689 29d9234 |
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 34 35 36 37 38 39 |
#!/bin/sh
BASEDIR=$(dirname "$0")
cd $BASEDIR/..
echo Current Directory:
pwd
BASEDIR=`pwd`
nvidia-smi
uname -a
cat /etc/os-release
lscpu
grep MemTotal /proc/meminfo
pip install -r requirements.txt
#cd ../LLaMA-Factory && pip install -e .[torch,bitsandbytes]
export LOGICAL_REASONING_DATA_PATH=datasets/mgtv
export RESIZE_TOKEN_EMBEDDINGS=true
export START_EPOCH=1
export USING_LLAMA_FACTORY=false
export MODEL_NAME=THUDM/glm-4-9b-chat-1m
export MODEL_PREFIX=glm-4-9b_lora_sft_bf16
export LOGICAL_REASONING_RESULTS_PATH=results/$MODEL_PREFIX-p1.csv
export ADAPTER_PATH_BASE=llama-factory/saves/glm-4-9b/lora/sft_bf16_p1_full
export USING_P1_PROMPT_TEMPLATE=true
echo "Eval $MODEL_NAME with $ADAPTER_PATH_BASE"
python llm_toolkit/eval_logical_reasoning_all_epochs.py
export LOGICAL_REASONING_RESULTS_PATH=results/$MODEL_PREFIX-p2.csv
export ADAPTER_PATH_BASE=llama-factory/saves/glm-4-9b/lora/sft_bf16_p2_full
export USING_P1_PROMPT_TEMPLATE=false
echo "Eval $MODEL_NAME with $ADAPTER_PATH_BASE"
python llm_toolkit/eval_logical_reasoning_all_epochs.py
|