Arabic text-to-SQL LoRA adapters
LoRA adapters (rank 16, alpha 32) for Qwen3-1.7B and Qwen3-4B trained on Spider and BIRD training questions in English, Arabic (machine-translated) and code-switched Arabic, from the paper Arabic Text-to-SQL with a Small Language Model (under review). Code and data: GitHub repository arabic-sql (link inserted at publication).
| folder | base | training data |
|---|---|---|
| p4_EN | Qwen3-1.7B | English only |
| p4_AR | Qwen3-1.7B | Arabic only |
| p4_ENAR | Qwen3-1.7B | English + Arabic |
| p4_EN_AR10 / 25 / 50 | Qwen3-1.7B | English + 10 / 25 / 50 % Arabic |
| p4_ENCS | Qwen3-1.7B | English + code-switched Arabic |
| p4_EN_s2, p4_EN_s3, p4_ENAR_s2, p4_ENAR_s3, p4_ENCS_s2, p4_ENCS_s3 | Qwen3-1.7B | seeds 2 and 3 |
| p4_EN_4b, p4_ENCS_4b | Qwen3-4B (4-bit) | English; English + code-switched |
| p4_gulf_fold0, p4_gulf_fold1 | Qwen3-1.7B | p4_ENCS continued on 75 Gulf-dialect questions |
Execution accuracy on Spider dev / BIRD dev, Arabic questions: p4_EN 52.8 / 22.6, p4_ENAR 58.6 / 28.6, p4_ENCS 60.1 / 28.0, p4_ENCS_4b 66.0 / 35.0 (seed 42). See the paper and the experiment log for all numbers.
Usage: load the base model with transformers, then PeftModel.from_pretrained(base, "<this repo>", subfolder="p4_ENCS"). The prompt format is in infer_p3.py in the code repository.
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support