Repository navigation
Expand file tree
/
Copy pathrun.sh
More file actions
69 lines (54 loc) · 3.91 KB
/
Copy pathrun.sh
File metadata and controls
69 lines (54 loc) · 3.91 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
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
set -e
########################################################################################################################
# IDEALISTICSQLBENCH PREPARATION
########################################################################################################################
python scripts/benchmark/make_clean_lake.py
python scripts/benchmark/make_idealistic_queries.py
python scripts/benchmark/prepare_idealistic_queries_for_checking.py
python scripts/benchmark/gather_idealistic_queries_after_checking.py
python scripts/benchmark/queries_to_markdown.py dataset=idealisticsqlbench-dev
python scripts/benchmark/queries_to_markdown.py dataset=idealisticsqlbench-test
########################################################################################################################
# QCP-DB DATASET PREPARATION
########################################################################################################################
python scripts/prepare_qcpdb_dataset.py
########################################################################################################################
# EXPERIMENTS
########################################################################################################################
dataset=idealisticsqlbench-test
llm_model=gpt-6-luna
n_jobs=50
# result table correctness
python scripts/run.py --multirun exp_name=exacc dataset=$dataset approach=reader,rewriter,sqlake llm_model=$llm_model n_jobs=$n_jobs do_failure_analysis=true "$@"
python scripts/run.py --multirun exp_name=qcpdb dataset=dataset_qcpdb_eval golden_database_suffix=.golden approach=reader,rewriter,sqlake llm_model=$llm_model n_jobs=$n_jobs "$@"
python scripts/gather_accuracy_by_difficulty.py "$@"
python scripts/gather_accuracy_on_qcpdb.py "$@"
python scripts/plot_accuracy_by_difficulty_with_qcpdb.py dataset=$dataset llm_model=$llm_model "$@"
# Query Challenges
python scripts/gather_accuracy_by_required_tables.py "$@"
python scripts/gather_accuracy_by_challenges.py "$@"
python scripts/plot_accuracy_by_challenges.py dataset=$dataset llm_model=$llm_model "$@"
# iterations
python scripts/gather_num_iterations.py "$@"
python scripts/gather_scores_at_iteration.py "$@"
python scripts/plot_iterations.py dataset=$dataset llm_model=$llm_model "$@"
# action calls
python scripts/gather_action_calls.py "$@"
python scripts/gather_action_calls_at_iteration.py "$@"
python scripts/plot_action_calls.py dataset=$dataset llm_model=$llm_model "$@"
# table retrieval and usage
python scripts/gather_retrieval_at_iteration.py "$@"
python scripts/plot_retrieval_at_iteration.py dataset=$dataset llm_model=$llm_model "$@"
# model ablations
python scripts/run.py --multirun exp_name=modelablations dataset=$dataset approach=reader,rewriter,sqlake llm_model=gpt-6-luna,gpt-6.1-sol n_jobs=$n_jobs "$@"
python scripts/gather_model_ablations.py "$@"
python scripts/plot_model_ablations.py dataset=$dataset "$@"
# architecture ablations
python scripts/run.py --multirun exp_name=architectureablations dataset=$dataset approach=sqlake llm_model=$llm_model n_jobs=$n_jobs "$@"
python scripts/run.py --multirun exp_name=architectureablations dataset=$dataset approach=sqlake llm_model=$llm_model n_jobs=$n_jobs sqlake_disable_artifact_deduplication=true "$@"
python scripts/run.py --multirun exp_name=architectureablations dataset=$dataset approach=sqlake llm_model=$llm_model n_jobs=$n_jobs sqlake_constructor_use_ledger=true "$@"
python scripts/run.py --multirun exp_name=architectureablations dataset=$dataset approach=sqlake llm_model=$llm_model n_jobs=$n_jobs sqlake_max_feedback_iterations=1 "$@"
python scripts/run.py --multirun exp_name=architectureablations dataset=$dataset approach=sqlake llm_model=$llm_model n_jobs=$n_jobs "sqlake_disabled_actions=[search_table,search_value,find_union,find_join_path]" "$@"
python scripts/gather_architecture_ablations.py "$@"
python scripts/plot_architecture_ablations.py dataset=$dataset llm_model=$llm_model "$@"