mse-text-img-dataset / process_mse_data.sh
Zenos5's picture
Upload dataset text and code
2e865d1 verified
#!/bin/bash
#SBATCH --time=1:00:00 # walltime. hours:minutes:seconds
#SBATCH --ntasks=8 # number of processor cores (i.e. tasks)
#SBATCH --nodes=1 # number of nodes
#SBATCH --gpus=1
#SBATCH --mem=80G # 164G memory per CPU core
#SBATCH --mail-user=aw742@byu.edu # email address
#SBATCH --mail-type=BEGIN
#SBATCH --mail-type=END
#SBATCH --mail-type=FAIL
#SBATCH --qos=cs
#SBATCH --partition=cs
# some helpful debugging options
set -e
set -u
# LOAD MODULES, INSERT CODE, AND RUN YOUR PROGRAMS HERE
# module load python/3.11
source ./mse_env/Scripts/activate
# python mse_text_img_process.py
# python convert_mse.py
# pip install jsonlines
# pip install deepeval
NUM_TEST_CASES=100
# python mse_ollama_run.py --num $NUM_TEST_CASES --test f --shot 0 --out_file metric_test_orig_100_f.txt
# echo "Test case faithfulness finished"
NUM_SHOT=1
# deepeval set-local-model --model-name Hudson/llemma:7b
# deepeval set-ollama Hudson/llemma:7b
# python mse_ollama_run.py --num $NUM_TEST_CASES --test ar --shot $NUM_SHOT --out_file metric_test_1_shot_100_ar.txt
# echo "Test case answer relevancy finished"
python mse_ollama_run.py --num $NUM_TEST_CASES --test crec --shot $NUM_SHOT --out_file metric_test_1_shot_100_crec.txt
echo "Test case contexual recall finished"
python mse_ollama_run.py --num $NUM_TEST_CASES --test cp --shot $NUM_SHOT --out_file metric_test_1_shot_100_cp.txt
echo "Test case contextual precision finished"
NUM_SHOT=5
python mse_ollama_run.py --num $NUM_TEST_CASES --test ar --shot $NUM_SHOT --out_file metric_test_5_shot_100_ar.txt
echo "Test case answer relevancy finished"
python mse_ollama_run.py --num $NUM_TEST_CASES --test crec --shot $NUM_SHOT --out_file metric_test_5_shot_100_crec.txt
echo "Test case contexual recall finished"
python mse_ollama_run.py --num $NUM_TEST_CASES --test cp --shot $NUM_SHOT --out_file metric_test_5_shot_100_cp.txt
echo "Test case contextual precision finished"
NUM_SHOT=10
python mse_ollama_run.py --num $NUM_TEST_CASES --test ar --shot $NUM_SHOT --out_file metric_test_10_shot_100_ar.txt
echo "Test case answer relevancy finished"
python mse_ollama_run.py --num $NUM_TEST_CASES --test crec --shot $NUM_SHOT --out_file metric_test_10_shot_100_crec.txt
echo "Test case contexual recall finished"
python mse_ollama_run.py --num $NUM_TEST_CASES --test cp --shot $NUM_SHOT --out_file metric_test_10_shot_100_cp.txt
echo "Test case contextual precision finished"
# python mse_ollama_run.py --num $NUM_TEST_CASES --test crel --out_file metric_test_orig_100_crel.txt
# echo "Test case contextual relevancy finished"
# python mse_ollama_run.py --num $NUM_TEST_CASES --test f --out_file metric_test_orig_100_f.txt
# echo "Test case faithfulness finished"
# python mse_jsonl_resize.py
# python finetune.py