heeliiuum commited on
Commit
b84d443
·
verified ·
1 Parent(s): 04e8d89

Use the bundled shell launcher in BIRD evaluation instructions

Browse files
Files changed (1) hide show
  1. README.md +9 -25
README.md CHANGED
@@ -15,37 +15,21 @@ KDGC Team’s adapter release for BIRD evaluation contains two configurations of
15
  | SQL Generator | `sql-generator-sft/` | `sql-generator-sft-rl/` |
16
  | Candidate Selector | `candidate-selector/` | `candidate-selector/` |
17
 
18
- ## Download the public weights
19
 
20
- For BIRD evaluation, extract the inference code supplied by KDGC Team and follow its `CUDA_SETUP.md` for one A100. In the activated environment, run these commands from the directory containing `run.py` before mounting benchmark data. Both repositories support anonymous downloads.
21
 
22
  ```bash
23
- (
24
- set -e
25
- hf download heeliiuum/RePO-SQL-Preview --revision 8d989c70459235116c08deacd4885f559bfcc254 \
26
- --include '*/adapter_*' --local-dir adapters
27
- hf download Qwen/Qwen3.5-9B --revision c202236235762e1c871ad0ccb60c8ee5ba337b9a --local-dir base
28
- )
29
  ```
30
 
31
- ## Run both checkpoints on BIRD Test
32
-
33
- Set `BIRD_TEST` to the directory containing `test.json` and `test_databases/`. This block checks both checkpoints on CPU, then runs SFT and SFT+RL in sequence on the assigned GPU. A failed step stops the sequence.
34
 
35
  ```bash
36
- export BIRD_TEST=/path/to/bird-test
37
- (
38
- set -e
39
- mkdir -p logs
40
- for ckpt in SFT SFT+RL; do
41
- python -u run.py --checkpoint "$ckpt" --base base --adapters adapters \
42
- --data "$BIRD_TEST" --output "preflight/test/$ckpt" --preflight
43
- done
44
- for ckpt in SFT SFT+RL; do
45
- python -u run.py --checkpoint "$ckpt" --base base --adapters adapters \
46
- --data "$BIRD_TEST" --output "runs/$ckpt" >> "logs/$ckpt.log" 2>&1
47
- done
48
- )
49
  ```
50
 
51
- The two prediction files are `runs/SFT/submission/predict_test.json` and `runs/SFT+RL/submission/predict_test.json`. The logs are `logs/SFT.log` and `logs/SFT+RL.log`. After correcting an interruption, repeat the same command with the same output directories to resume. The bundled README also covers public Dev scoring and reproduction.
 
 
 
15
  | SQL Generator | `sql-generator-sft/` | `sql-generator-sft-rl/` |
16
  | Candidate Selector | `candidate-selector/` | `candidate-selector/` |
17
 
18
+ ## BIRD evaluation
19
 
20
+ Extract the **inference code package supplied by KDGC Team** and open a terminal in the directory containing `bird.sh`. On the assigned A100, run the first two commands before mounting benchmark data. The download command retrieves the fixed base and four adapters anonymously.
21
 
22
  ```bash
23
+ bash bird.sh setup
24
+ bash bird.sh download
 
 
 
 
25
  ```
26
 
27
+ After mounting BIRD Test, pass the directory containing `test.json` and `test_databases/`.
 
 
28
 
29
  ```bash
30
+ bash bird.sh test /path/to/bird-test
 
 
 
 
 
 
 
 
 
 
 
 
31
  ```
32
 
33
+ The script checks both entries on CPU, then runs SFT followed by SFT+RL offline on the same GPU. Predictions are written to `runs/SFT/submission/predict_test.json` and `runs/SFT+RL/submission/predict_test.json`. Each entry appends to its own file in `logs/`. After correcting an interruption, repeat the same Test command to resume. For Dev scoring and reproduction, see the English or Chinese README in the code package.
34
+
35
+ The frozen adapter revision is `8d989c70459235116c08deacd4885f559bfcc254`. The base revision is `c202236235762e1c871ad0ccb60c8ee5ba337b9a`.