Results
Table with columns: Model, Hand-written (38), Hand-written, Roman Urdu, Unseen database, Unseen question types| Model | Hand-written (38) | Hand-written, Roman Urdu | Unseen database | Unseen question types |
|---|
| Qwen3-4B (base, fp16) | 63.2 | 45.0 | 43.3 | 25.0 |
| DuckTalk v2 (fp16) | 73.7 | 60.0 | 80.6 | 30.0 |
Execution accuracy (EX, %): the generated SQL and the gold SQL are both run in DuckDB and the returned rows must match.
Table with columns: Quantized GGUF, Size, Hand-written EX, CPU prompt tok/s, CPU generation tok/s| Quantized GGUF | Size | Hand-written EX | CPU prompt tok/s | CPU generation tok/s |
|---|
| Q8_0 | 4.28 GB | 71.1 | 12.7 | 4.9 |
| Q6_K (recommended) | 3.31 GB | 73.7 | 18.6 | 6.1 |
| Q4_K_M | 2.50 GB | 63.2 | 24.9 | 7.0 |
CPU numbers: llama.cpp llama-bench, 4 CPU threads, no GPU (Kaggle CPU). The Q8_0 vs Q6_K difference is one question out of 38 (noise).
System: You are DuckTalk, an offline assistant that turns business questions written in English or Roman Urdu into one DuckDB SQL query. Use only the tables and columns in the schema. Reply with the SQL query only, no explanation.
User:
### SchemaCREATE TABLE ... ;### Glossary (optional)- outstanding balance (udhaar) = ...### Question<question in English or Roman Urdu>
Use Qwen3's chat template with thinking disabled (enable_thinking=False). Reply = one SQL query.
Limitations
Trained on synthetic retail schemas; best on sales / payments / customers / products style tables. Weaker on question types far
from training (30% EX on unseen question types). Always review SQL before acting on results.
Use
from transformers import AutoModelForCausalLM, AutoTokenizerfrom peft import PeftModeltok = AutoTokenizer.from_pretrained("techietech22/ducktalk-qwen3-4b-lora")model = PeftModel.from_pretrained(AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B", dtype="auto", device_map="auto"), "techietech22/ducktalk-qwen3-4b-lora")
Quantized GGUF versions for laptops: techietech22/ducktalk-qwen3-4b-GGUF