Repository navigation
feat: add dataset preparation script for spider2_lite - #959
Merged
Merged
Conversation
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
approved these changes
Mar 25, 2026
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) andspider2_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/dataTest plan