Views
No views yet
r=32, alpha=64, LoRA over Qwen/Qwen2.5-Coder-3B-Instruct.ARCTIC_SYSTEM, shipped here as system_prompt.txt:You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
engine, db_details, question, output_format),
output_format = the terse fenced-SQL block, not the <think>/<answer>
reasoning scaffold. The rung is duckdb-values: evidence, comments and sample
values on, reasoning off.| decoding | greedy, temperature=0 |
max_new_tokens | 4096 at evaluation — median output is 165 characters, but the long tail reached 13,598 |
| extractor | first ```sql fence, then strip the leading sql tag |
| arm | correct | paired vs PyRel | |
|---|---|---|---|
| 3B → PyRel direct | 165/428 | 38.6% | — |
| 3B → SQL → transpiler (this adapter) | 179/428 | 41.8% | +60/−46, p = 0.21 |
| routed: SQL where it fires, PyRel where it declines | 206/428 | 48.1% | +60/−19, p = 4.2e-06 |
synthesize_ast:302 admitted (ast_join 165, ast_single 54, ast_join_n 36, ast_bound 26, +6 patterns)
143 no template
0 raisedno template is a transpiler gap, not a model error — the SQL may be perfectly
correct. Each one is a deterministic, permanently fixable Python bug, which is the
improvement path this arm has and a direct-to-PyRel model does not.sqlglot is a hard dependency and its absence is silent. synthesize_ast
catches the ImportError and returns None, which is also how it signals a
decline — so a deployment without sqlglot declines 100% of requests and looks like
a transpiler that cannot handle your queries. Verified: it returned 60 of 60
no template on a machine that was simply missing the package.california_schools, debit_card_specializing, superhero,
thrombosis_prediction).