File size: 733 Bytes
04b5c8e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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

export HF_ALLOW_CODE_EVAL=1
export HF_DATASETS_TRUST_REMOTE_CODE=true

pkill -9 python
sleep 2

for seed in {0..19}
do
    
    output_path="./outputs/truthfulqa/llada_conf/genlen-32_T-32_blocksize-32_seed-${seed}"
    mkdir -p $output_path

    accelerate launch --num_processes 1 --main_process_port 0 eval_llada.py \
        --seed $seed \
        --tasks truthfulqa_gen \
        --model llada_dist \
        --confirm_run_unsafe_code \
        --output_path $output_path \
        --model_args model_path='<PATH_TO_YOUR_LLaDA_8B_INSTRUCT_WEIGHTS>',mask_length=32,sampling_steps=32,block_size=32,sampler='llada_conf'

    if ls ./*.json 1> /dev/null 2>&1; then
        cp ./*.json "$output_path/"
        rm ./*.json
    fi
done