jk200201 commited on
Commit
78cadc9
·
verified ·
1 Parent(s): d5b49d3

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +11 -9
README.md CHANGED
@@ -38,21 +38,23 @@ model-index:
38
 
39
  A 7B text-to-SQL model that reasons step by step over a database schema and then writes the SQL. It is fine-tuned from `Qwen/Qwen2.5-Coder-7B-Instruct` by distilling execution-verified chain-of-thought solutions.
40
 
41
- On BIRD dev (realistic, messy schemas, the harder text-to-SQL benchmark) it reaches **52.1% greedy** result accuracy and **58.5% with self-consistency** (Best-of-N, K=8). The self-consistency score surpasses single-shot frontier models at a fraction of the size.
42
 
43
  ![BIRD dev results](bird_results.png)
44
 
45
  ## Results: BIRD dev (execution result accuracy)
46
 
47
- | Model | Result accuracy |
48
- |:--|--:|
49
- | Base Qwen2.5-Coder-7B-Instruct | 27.0% |
50
- | **This model, greedy (1 sample)** | **52.1%** |
51
- | DeepSeek-V3 (single-shot) | 54.7% |
52
- | Grok-4 (single-shot) | 55.4% |
53
- | **This model, self-consistency (K=8)** | **58.5%** |
54
 
55
- Result accuracy is the fraction of queries whose SQL executes to the same rows as the gold query (BIRD's official execution metric). Frontier numbers are single-shot. The 58.5% figure uses K=8 self-consistency, which costs roughly 8x inference.
 
 
 
 
 
 
 
 
56
 
57
  ## Usage
58
 
 
38
 
39
  A 7B text-to-SQL model that reasons step by step over a database schema and then writes the SQL. It is fine-tuned from `Qwen/Qwen2.5-Coder-7B-Instruct` by distilling execution-verified chain-of-thought solutions.
40
 
41
+ On BIRD dev (realistic, messy schemas, the harder text-to-SQL benchmark) it reaches **52.1% greedy** result accuracy and **58.5% with self-consistency** (Best-of-N, K=8). With self-consistency it matches DeepSeek V4-Pro (1.6T parameters) at roughly 0.4% of the size, running locally.
42
 
43
  ![BIRD dev results](bird_results.png)
44
 
45
  ## Results: BIRD dev (execution result accuracy)
46
 
47
+ All models use a single chain-of-thought sample unless noted, so the comparison is like for like.
 
 
 
 
 
 
48
 
49
+ | Model | Params | Result accuracy |
50
+ |:--|--:|--:|
51
+ | Base Qwen2.5-Coder-7B-Instruct | 7B | 27.0% |
52
+ | **This model, greedy** | **7B** | **52.1%** |
53
+ | **This model, self-consistency (K=8)** | **7B** | **58.5%** |
54
+ | DeepSeek V4-Pro | 1.6T | 58.7% |
55
+ | GLM 5.2 | 744B | 63.0% |
56
+
57
+ Result accuracy is the fraction of queries whose SQL executes to the same rows as the gold query (BIRD's official execution metric). The larger frontier models score higher, as expected. The point is that a 7B reaches their accuracy band at a fraction of the size and cost. The 58.5% figure uses K=8 self-consistency (roughly 8x inference).
58
 
59
  ## Usage
60