-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.sh
More file actions
executable file
·59 lines (48 loc) · 2.38 KB
/
Copy pathdebug.sh
File metadata and controls
executable file
·59 lines (48 loc) · 2.38 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
# run from structureddata dir
Datasets=("honeypot" "stroke" "cern" "lob" "moma" "olist" "bayesian")
source "$(conda info --base)/etc/profile.d/conda.sh"
conda activate sd
# prep all datasets (since not all model envs have the data construction libraries installed)
for dataset in "${Datasets[@]}"; do
python handler.py "$dataset"
done
# tabdiff dataset prep
cd models/TabDiff
conda activate tabdiff
for dataset in "${Datasets[@]}"; do
python process_dataset.py --dataname "$dataset"
done
cd ..
for dataset in "${Datasets[@]}"; do
cd CTAB-GAN-Plus
conda activate ctganp
python run_ctganp.py 1 "$dataset"
cd ../ICL
conda activate tabby
python run_icl.py --dataset "$dataset" --model_id /mnt/data/zoo/meta-llama/Meta-Llama-3-8B --num_samples 30 # only do one trial for ICL
cd ../tabby
conda activate tabby
python trainplain.py -t -p /mnt/data/sonia/sd/tabby/${dataset}/debug -d "$dataset" -mh -steps 5000 -n 0 -l1 --local -eff
python trainplain.py -p /mnt/data/sonia/sd/tabby/${dataset}/debug -d "$dataset" -mh -n 50 --local -l1 -eff
cp /mnt/data/sonia/sd/tabby/${dataset}/debug/samplesclean.csv ../../synth/"$dataset"/tabby_debug.csv
cd ../TabDiff
conda activate tabdiff
python main.py --dataname $dataset --mode train
python main.py --dataname $dataset --mode test --report --no_wandb
cp synthetic/${dataset}/test.csv ../../synth/${dataset}/tabdiff_debug.csv
cd ../TabDLM
conda activate tabdlm
TOKENIZERS_PARALLELISM=false PYTHONPATH=. python main.py train --dataset_name $dataset \
--description "_tabdlm" --epochs 10 --batch_size 32 --batch_accum 32 \
--loss_type no_divide_pmask --lora_r 16 --lora_alpha 64 --bf16
TOKENIZERS_PARALLELISM=false PYTHONPATH=. python main.py sample --dataset_name $dataset \
--description "_tabdlm" --save_description "_tabdlm_synth" --do_sampling \
--use_best_ckp --temperature 1.0 --sample_batch_size 32 --seed 1 --proportion 32
cp result/${dataset}/synthetic_result/_tabdlm_tabdlm_synth.csv ../../synth/${dataset}/tabdlm_debug.csv
cd ../TabKG
conda activate tabkg # need to also run VLLM
python main.py --method crkg --data $dataset --ensemble "gpt,gpt,gpt,gpt,gpt" --temp_range "0.1,0.2,0.3,0.4,0.5"
cp results/${dataset}/CRKG_FilteredOutput.csv ../../synth/"$dataset"/tabkg_debug.csv
cd ..
done