Skip to content

feat: add dataset preparation script for spider2_lite - #959

Merged
bxyu-nvidia merged 1 commit into
mainfrom
rlempka/spider2-prepare-dataset
Mar 25, 2026
Merged

bxyu-nvidia merged 1 commit into
mainfrom
rlempka/spider2-prepare-dataset

Conversation

@ryan-lempka

Copy link
Copy Markdown
Contributor

Summary

Adds the script that converts raw Spider 2.0-Lite data (from xlang-ai/Spider2) into NeMo Gym JSONL format. This was used to generate the existing datasets but wasn't previously committed.

Generates example.jsonl (5 tasks) and spider2_lite_sqlite_validation.jsonl (135 tasks) from the Spider2 reference repo. Output is byte-for-byte identical to the existing committed data.

python resources_servers/spider2_lite/scripts/prepare_dataset.py \
    --spider2-dir /path/to/Spider2/spider2-lite \
    --sqlite-dir resources_servers/spider2_lite/.spider2_lite/sqlite \
    --output-dir resources_servers/spider2_lite/data

Test plan

  • Output matches existing example.jsonl (5/5 tasks)
  • Output matches existing validation JSONL (135/135 tasks)
  • Lint clean

Converts Spider 2.0-Lite source data (xlang-ai/Spider2) into NeMo Gym
JSONL format. Produces byte-for-byte identical output to the existing
example.jsonl and spider2_lite_sqlite_validation.jsonl.

Usage:
  python prepare_dataset.py \
    --spider2-dir /path/to/Spider2/spider2-lite \
    --sqlite-dir resources_servers/spider2_lite/.spider2_lite/sqlite \
    --output-dir resources_servers/spider2_lite/data
Signed-off-by: Ryan Lempka <[email protected]>
@bxyu-nvidia
bxyu-nvidia merged commit 4f57622 into main Mar 25, 2026
10 checks passed
@bxyu-nvidia
bxyu-nvidia deleted the rlempka/spider2-prepare-dataset branch March 25, 2026 23:26
kajalj22 pushed a commit that referenced this pull request Apr 7, 2026
## Summary

Adds the script that converts raw Spider 2.0-Lite data (from
xlang-ai/Spider2) into NeMo Gym JSONL format. This was used to generate
the existing datasets but wasn't previously committed.

Generates `example.jsonl` (5 tasks) and
`spider2_lite_sqlite_validation.jsonl` (135 tasks) from the Spider2
reference repo. Output is byte-for-byte identical to the existing
committed data.

```bash
python resources_servers/spider2_lite/scripts/prepare_dataset.py \
    --spider2-dir /path/to/Spider2/spider2-lite \
    --sqlite-dir resources_servers/spider2_lite/.spider2_lite/sqlite \
    --output-dir resources_servers/spider2_lite/data
```

## Test plan

- [x] Output matches existing example.jsonl (5/5 tasks)
- [x] Output matches existing validation JSONL (135/135 tasks)
- [x] Lint clean

Signed-off-by: Ryan Lempka <[email protected]>
jsw-zorro pushed a commit to niletron/Gym that referenced this pull request Apr 7, 2026
## Summary

Adds the script that converts raw Spider 2.0-Lite data (from
xlang-ai/Spider2) into NeMo Gym JSONL format. This was used to generate
the existing datasets but wasn't previously committed.

Generates `example.jsonl` (5 tasks) and
`spider2_lite_sqlite_validation.jsonl` (135 tasks) from the Spider2
reference repo. Output is byte-for-byte identical to the existing
committed data.

```bash
python resources_servers/spider2_lite/scripts/prepare_dataset.py \
    --spider2-dir /path/to/Spider2/spider2-lite \
    --sqlite-dir resources_servers/spider2_lite/.spider2_lite/sqlite \
    --output-dir resources_servers/spider2_lite/data
```

## Test plan

- [x] Output matches existing example.jsonl (5/5 tasks)
- [x] Output matches existing validation JSONL (135/135 tasks)
- [x] Lint clean

Signed-off-by: Ryan Lempka <[email protected]>
cmunley1 pushed a commit that referenced this pull request Apr 8, 2026
## Summary

Adds the script that converts raw Spider 2.0-Lite data (from
xlang-ai/Spider2) into NeMo Gym JSONL format. This was used to generate
the existing datasets but wasn't previously committed.

Generates `example.jsonl` (5 tasks) and
`spider2_lite_sqlite_validation.jsonl` (135 tasks) from the Spider2
reference repo. Output is byte-for-byte identical to the existing
committed data.

```bash
python resources_servers/spider2_lite/scripts/prepare_dataset.py \
    --spider2-dir /path/to/Spider2/spider2-lite \
    --sqlite-dir resources_servers/spider2_lite/.spider2_lite/sqlite \
    --output-dir resources_servers/spider2_lite/data
```

## Test plan

- [x] Output matches existing example.jsonl (5/5 tasks)
- [x] Output matches existing validation JSONL (135/135 tasks)
- [x] Lint clean

Signed-off-by: Ryan Lempka <[email protected]>
Signed-off-by: cmunley1 <[email protected]>

This branch was previously deployed

1 inactive deployment
public — 7d7f8347 Deployed Mar 25, 2026 by ryan-lempka via build-test-publish-wheel / publish-wheel #430
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants