Commit ·
5815619
1
Parent(s): 7b9ecdb
README comit
Browse files- .gitignore +4 -0
- README.md +35 -3
.gitignore
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.py
|
| 2 |
+
*.jsonl
|
| 3 |
+
.claude
|
| 4 |
+
__pycache__/
|
README.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# NPset
|
| 6 |
+
|
| 7 |
+
A normalized Python dataset for training small language models on code logic without the overhead of raw code syntax.
|
| 8 |
+
|
| 9 |
+
## Why
|
| 10 |
+
|
| 11 |
+
Feeding raw Python into small LMs is expensive — code-specific tokens and syntax overhead consume capacity that could go toward reasoning. NPset normalizes Python source via AST → TinyDSL (pseudocode), giving the model the logical structure of code in a much more compact, readable form.
|
| 12 |
+
|
| 13 |
+
Small models already carry semantic understanding of concepts like iteration, conditions, data flow, and function composition from pretraining on natural language. Raw code forces the model to bridge that understanding through unfamiliar syntax — brackets, colons, indentation rules, and language-specific idioms it may have seen rarely. TinyDSL closes that gap by expressing the same logic in a form that maps directly onto the model's existing semantic representations, letting it reason about what code *does* rather than spending capacity parsing what it *looks like*.
|
| 14 |
+
|
| 15 |
+
## Format
|
| 16 |
+
|
| 17 |
+
Parquet, shuffled. Each row:
|
| 18 |
+
|
| 19 |
+
| Field | Type | Description |
|
| 20 |
+
|---|---|---|
|
| 21 |
+
| `code` | string | TinyDSL-normalized Python |
|
| 22 |
+
| `original_language` | string | Always `Python` |
|
| 23 |
+
| `source` | string | Origin dataset identifier |
|
| 24 |
+
|
| 25 |
+
## Sources
|
| 26 |
+
|
| 27 |
+
| Source | Dataset | Notes |
|
| 28 |
+
|---|---|---|
|
| 29 |
+
| `nomic_cornstack_python_v1` | nomic-ai/cornstack-python-v1 | Real GitHub files, max 5M rows |
|
| 30 |
+
| `zaydzuhri_stack_edu_python` | zaydzuhri/stack-edu-python | `license_type=no_license` only, max 10M rows |
|
| 31 |
+
| `jtatman_500k` | jtatman/python-code-dataset-500k | |
|
| 32 |
+
| `iamtarun_python_18k_alpaca` | iamtarun/python_code_instructions_18k_alpaca | |
|
| 33 |
+
| `flytech_python_25k` | flytech/python-codes-25k | |
|
| 34 |
+
| `dbands_pythonMath` | dbands/pythonMath | |
|
| 35 |
+
| `greatdarklord_python_dataset` | greatdarklord/python_dataset | |
|