mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-23 17:01:04 +02:00
| .. | ||
| eval | ||
| 0-download_data.py | ||
| 1-train.sh | ||
| 2-train-chunk.sh | ||
| gen_data.sh | ||
| gen_data_test.sh | ||
| README.md | ||
| self_gen_data_mistral_7b_lvl_1.sh | ||
| self_gen_data_qwen_4b_lvl_1.sh | ||
| train-cross-enc-chunk-slurm.sh | ||
| train-cross-enc-slurm.sh | ||
| train-mistral.sh | ||
| train-qwen-slurm.sh | ||
| train-qwen.sh | ||
D2L pipeline
Data
You can either download the generated data (recommended) or generate them by youself.
# download training data (recommended)
uv run bash scripts/main_exp/0-download_data.sh
Generating data from scratch can take very long if not parallelized across multiple gpus.
# generate training data (takes very long if not parallelized across multiple gpus)
# optional: use the command below for generating data from scratch
# uv run bash scripts/main_exp/gen_data.sh
Training
Simply run the training script.
# train
uv run bash scripts/main_exp/1-train.sh
Evaluation
All evaluation scripts for reproducing the main results in the paper are included in eval directory.