| | #!/bin/bash |
| | echo "[$(date +%Y-%m-%dT%H:%M:%S)] Waiting for generate (PID 12611) to finish..." |
| |
|
| | |
| | while kill -0 12611 2>/dev/null; do |
| | sleep 60 |
| | done |
| |
|
| | echo "[$(date +%Y-%m-%dT%H:%M:%S)] Generate finished! Starting remaining 13 tasks..." |
| |
|
| | export PATH=/venv/main/bin:/usr/local/bin:/usr/bin:/bin |
| | export PYTHONUNBUFFERED=1 |
| | export CUDA_VISIBLE_DEVICES=0 |
| | export WORK=/dev/shm/eval |
| | export HF_DATASETS_TRUST_REMOTE_CODE=1 |
| | export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True |
| |
|
| | cd $WORK/lm-evaluation-harness |
| |
|
| | python -u $WORK/eval_polish_quip.py \ |
| | --model_path $WORK/model \ |
| | --tokenizer speakleash/Bielik-11B-v2.3-Instruct \ |
| | --output_dir $WORK/results_remaining \ |
| | --num_fewshot 5 \ |
| | --batch_size 8 \ |
| | --tasks polish_belebele_mc polish_belebele_regex \ |
| | polish_dyk_multiple_choice polish_dyk_regex \ |
| | polish_klej_ner_multiple_choice polish_klej_ner_regex \ |
| | polish_polqa_reranking_multiple_choice \ |
| | polish_polqa_open_book polish_polqa_closed_book \ |
| | polish_poquad_open_book \ |
| | polish_eq_bench polish_eq_bench_first_turn \ |
| | polish_poleval2018_task3_test_10k \ |
| | >> $WORK/remaining_log.txt 2>&1 |
| |
|
| | echo "[$(date +%Y-%m-%dT%H:%M:%S)] Remaining tasks DONE!" >> $WORK/remaining_log.txt |
| |
|