card: links, team, usage
Browse files
README.md
CHANGED
|
@@ -1,12 +1,32 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-4.0
|
| 3 |
language: [en]
|
| 4 |
-
tags: [text-to-sql, reward-modeling, grpo, counterfactual, sqlite]
|
| 5 |
pretty_name: Counterfactual-DB rewards for SQL agents
|
| 6 |
---
|
| 7 |
# Counterfactual-DB rewards for SQL agents: data, results and rollout logs
|
| 8 |
|
| 9 |
-
Lexsi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
| Path | What |
|
| 12 |
|---|---|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-4.0
|
| 3 |
language: [en]
|
| 4 |
+
tags: [text-to-sql, reward-modeling, grpo, counterfactual, sqlite, lexsi-hackathon]
|
| 5 |
pretty_name: Counterfactual-DB rewards for SQL agents
|
| 6 |
---
|
| 7 |
# Counterfactual-DB rewards for SQL agents: data, results and rollout logs
|
| 8 |
|
| 9 |
+
**Lexsi Labs AI Safety & Alignment Hackathon, Track 3 (PS #6 data and database agents + #9 reward design and
|
| 10 |
+
reward-hacking defences), team Teen_khapeetars:** Shreshth Rai (lead, [@hi-phi-r25i](https://huggingface.co/hi-phi-r25i)),
|
| 11 |
+
Rishii Kumar Singh ([@LogicPalette](https://huggingface.co/LogicPalette)), Aksh Aggarwal ([@AkshAgg](https://huggingface.co/AkshAgg)).
|
| 12 |
+
|
| 13 |
+
[Collection](https://huggingface.co/collections/sqlcf-lexsi/counterfactual-db-rewards-for-a-small-sql-agent-6af174f77dbae0bf0a54c3c4) · [Demo](https://huggingface.co/spaces/sqlcf-lexsi/counterfactual-sql-demo) ·
|
| 14 |
+
[Data](https://huggingface.co/datasets/sqlcf-lexsi/counterfactual-sql-data) ·
|
| 15 |
+
Adapters: [SFT](https://huggingface.co/sqlcf-lexsi/tiny-aya-global-sqlcf-sft),
|
| 16 |
+
[GRPO-B](https://huggingface.co/sqlcf-lexsi/tiny-aya-global-sqlcf-grpo-b),
|
| 17 |
+
[GRPO-C](https://huggingface.co/sqlcf-lexsi/tiny-aya-global-sqlcf-grpo-c) ·
|
| 18 |
+
[Code](https://github.com/RishiiGamer2201/sexsi_hack) · [Write-up](https://github.com/RishiiGamer2201/sexsi_hack/blob/main/ARTICLE.md)
|
| 19 |
+
|
| 20 |
+
Every number in the write-up is re-derived from these files by `python verify_all.py` in the code repo.
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
import tarfile
|
| 24 |
+
from huggingface_hub import snapshot_download
|
| 25 |
+
|
| 26 |
+
d = snapshot_download("sqlcf-lexsi/counterfactual-sql-data", repo_type="dataset")
|
| 27 |
+
for split in ("audit", "train", "test"):
|
| 28 |
+
tarfile.open(f"{d}/{split}/dbs.tar.gz").extractall(f"{d}/{split}") # SQLite DBs next to items.jsonl
|
| 29 |
+
```
|
| 30 |
|
| 31 |
| Path | What |
|
| 32 |
|---|---|
|