Instructions to use while-ai/text-to-sql-shop-r2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use while-ai/text-to-sql-shop-r2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B") model = PeftModel.from_pretrained(base_model, "while-ai/text-to-sql-shop-r2") - Notebooks
- Google Colab
- Kaggle
Zero Proof AI commited on
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen3-4B
|
| 3 |
+
library_name: peft
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- text-to-sql
|
| 7 |
+
- grpo
|
| 8 |
+
- lora
|
| 9 |
+
- zeroproof
|
| 10 |
+
datasets:
|
| 11 |
+
- zero-proof-ai/text-to-sql-shop
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# text-to-sql-shop-r2
|
| 15 |
+
|
| 16 |
+
LoRA adapter on `Qwen/Qwen3-4B` from training run `run_b250062f96c07786` of the
|
| 17 |
+
[`recipes/04-train/text-to-sql`](https://github.com/Zero-Proof-AI/zeroproof-sdk/tree/main/recipes/04-train/text-to-sql)
|
| 18 |
+
recipe (execution-match reward on a seeded Postgres schema). Holdout pass@1 at this
|
| 19 |
+
checkpoint: 0.604 (140 tasks, 4 samples each, thinking on).
|
| 20 |
+
Its holdout rollouts are the `eval-r2` config of `zero-proof-ai/text-to-sql-shop`.
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
from peft import PeftModel
|
| 24 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 25 |
+
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B")
|
| 26 |
+
model = PeftModel.from_pretrained(base, "zero-proof-ai/text-to-sql-shop-r2")
|
| 27 |
+
```
|