├── README.md ├── data └── system.txt └── src ├── CoTSynthesis.py ├── CreateDPODataset.py ├── EvalSingleModel.py ├── MultiStrategySampleEval.py ├── SingleCheckPointSample.py ├── SingleModelSample.py ├── evaluate_bird_ex.py ├── evaluate_bird_ex_sampling.py ├── evaluate_bird_ex_sampling_maj.py ├── merge_outputs.py ├── multi-device_sample.sh ├── split_data.py └── utils ├── db_utils.py └── load_sft_dataset.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/README.md -------------------------------------------------------------------------------- /data/system.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/data/system.txt -------------------------------------------------------------------------------- /src/CoTSynthesis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/CoTSynthesis.py -------------------------------------------------------------------------------- /src/CreateDPODataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/CreateDPODataset.py -------------------------------------------------------------------------------- /src/EvalSingleModel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/EvalSingleModel.py -------------------------------------------------------------------------------- /src/MultiStrategySampleEval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/MultiStrategySampleEval.py -------------------------------------------------------------------------------- /src/SingleCheckPointSample.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/SingleCheckPointSample.py -------------------------------------------------------------------------------- /src/SingleModelSample.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/SingleModelSample.py -------------------------------------------------------------------------------- /src/evaluate_bird_ex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/evaluate_bird_ex.py -------------------------------------------------------------------------------- /src/evaluate_bird_ex_sampling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/evaluate_bird_ex_sampling.py -------------------------------------------------------------------------------- /src/evaluate_bird_ex_sampling_maj.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/evaluate_bird_ex_sampling_maj.py -------------------------------------------------------------------------------- /src/merge_outputs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/merge_outputs.py -------------------------------------------------------------------------------- /src/multi-device_sample.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/multi-device_sample.sh -------------------------------------------------------------------------------- /src/split_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/split_data.py -------------------------------------------------------------------------------- /src/utils/db_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/utils/db_utils.py -------------------------------------------------------------------------------- /src/utils/load_sft_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RUCKBReasoning/DPO_Text2SQL/HEAD/src/utils/load_sft_dataset.py --------------------------------------------------------------------------------