Spaces:
Sleeping
Sleeping
Akshaya Kumar commited on
Commit ·
8100965
1
Parent(s): 9804c89
Initial commit — sql-debug-env
Browse files
README.md
CHANGED
|
@@ -117,9 +117,10 @@ pip install -e ".[server,inference,dev]"
|
|
| 117 |
python -m uvicorn server.app:app --host 0.0.0.0 --port 7860
|
| 118 |
|
| 119 |
# in another terminal — run the baseline agent
|
| 120 |
-
|
| 121 |
-
export
|
| 122 |
-
export
|
|
|
|
| 123 |
export ENV_URL="http://localhost:7860"
|
| 124 |
python inference.py
|
| 125 |
```
|
|
@@ -183,14 +184,18 @@ sql-debug-env/
|
|
| 183 |
|
| 184 |
## Baseline scores
|
| 185 |
|
| 186 |
-
|
|
|
|
|
|
|
| 187 |
|
| 188 |
| Model | fix_syntax | fix_join | optimize_query | Avg |
|
| 189 |
|-------|-----------|----------|---------------|-----|
|
| 190 |
-
|
|
| 191 |
-
|
|
| 192 |
-
|
|
| 193 |
-
|
|
|
|
|
|
|
| 194 |
|
| 195 |
---
|
| 196 |
|
|
|
|
| 117 |
python -m uvicorn server.app:app --host 0.0.0.0 --port 7860
|
| 118 |
|
| 119 |
# in another terminal — run the baseline agent
|
| 120 |
+
# in another terminal — run the baseline agent
|
| 121 |
+
export API_BASE_URL="https://integrate.api.nvidia.com/v1" # or any OpenAI-compatible endpoint
|
| 122 |
+
export MODEL_NAME="meta/llama-3.3-70b-instruct" # NVIDIA NIM model name
|
| 123 |
+
export HF_TOKEN="your-nvidia-or-hf-api-key-here" # required — no default
|
| 124 |
export ENV_URL="http://localhost:7860"
|
| 125 |
python inference.py
|
| 126 |
```
|
|
|
|
| 184 |
|
| 185 |
## Baseline scores
|
| 186 |
|
| 187 |
+
Evaluated using NVIDIA NIM (OpenAI-compatible API) with LLaMA 3.3 70B Instruct.
|
| 188 |
+
|
| 189 |
+
Scores are computed as best reward across all steps per task (0.0–1.0 scale):
|
| 190 |
|
| 191 |
| Model | fix_syntax | fix_join | optimize_query | Avg |
|
| 192 |
|-------|-----------|----------|---------------|-----|
|
| 193 |
+
| meta/llama-3.3-70b-instruct (NVIDIA NIM) | 0.90 | 0.90 | 1.00 | 0.93 |
|
| 194 |
+
| meta/llama-3.1-70b-instruct (NVIDIA NIM) | 0.90 | 0.90 | 0.90 | 0.90 |
|
| 195 |
+
| meta/llama-3.1-8b-instruct (NVIDIA NIM) | 0.90 | 0.15 | 0.90 | 0.65 |
|
| 196 |
+
|
| 197 |
+
> Scores reflect correct queries submitted by the model. `fix_syntax` and `fix_join` max out at 0.90 (no efficiency bonus).
|
| 198 |
+
> `optimize_query` earns 1.0 only if the model eliminates the correlated subquery.
|
| 199 |
|
| 200 |
---
|
| 201 |
|