Datasets:
Update dataset card for 20k subsets
Browse files
README.md
CHANGED
|
@@ -845,7 +845,7 @@ dataset_info:
|
|
| 845 |
|
| 846 |
# Language Decoded | Multilingual Code Dataset
|
| 847 |
|
| 848 |
-
> **Note (2026-
|
| 849 |
|
| 850 |
Multilingual Python code datasets for the **Language Decoded** project (part of [Cohere's Tiny Aya Expedition](https://aya.for.ai)), investigating whether code's reasoning benefit for language models is **language-dependent** or **structure-dependent**.
|
| 851 |
|
|
@@ -870,20 +870,25 @@ Keyword-swapped variants are produced using [Legesher](https://github.com/legesh
|
|
| 870 |
|
| 871 |
## Available Configs
|
| 872 |
|
| 873 |
-
|
| 874 |
|
| 875 |
-
| Config
|
| 876 |
-
| -------------------- | ----------- | -------- | ------------------------------------------------
|
| 877 |
-
| `condition-1-en-
|
| 878 |
-
| `condition-1-en-
|
| 879 |
-
| `condition-
|
| 880 |
-
| `condition-2-zh-
|
| 881 |
-
| `condition-2-
|
| 882 |
-
| `condition-2-
|
| 883 |
-
| `condition-2-
|
| 884 |
-
| `condition-2-
|
| 885 |
-
| `condition-
|
| 886 |
-
| `condition-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 887 |
|
| 888 |
## Schema
|
| 889 |
|
|
@@ -960,7 +965,13 @@ The Language Decoded experiment uses a ladder of conditions to isolate the mecha
|
|
| 960 |
from datasets import load_dataset
|
| 961 |
|
| 962 |
# Load full-size English code (control)
|
| 963 |
-
ds = load_dataset("legesher/language-decoded-data", "condition-1-en-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 964 |
|
| 965 |
# Load 5k subset (for QLoRA fine-tuning)
|
| 966 |
ds = load_dataset("legesher/language-decoded-data", "condition-1-en-5k")
|
|
|
|
| 845 |
|
| 846 |
# Language Decoded | Multilingual Code Dataset
|
| 847 |
|
| 848 |
+
> **Note (2026-05-18):** Current Phase 3 configs use the short `condition-*` namespace and include `103k`, `20k`, and `5k` sizes for Conditions 1--2. Phase 2 configs remain available under the `phase-2-the-stack-v1-*` namespace for reproducibility.
|
| 849 |
|
| 850 |
Multilingual Python code datasets for the **Language Decoded** project (part of [Cohere's Tiny Aya Expedition](https://aya.for.ai)), investigating whether code's reasoning benefit for language models is **language-dependent** or **structure-dependent**.
|
| 851 |
|
|
|
|
| 870 |
|
| 871 |
## Available Configs
|
| 872 |
|
| 873 |
+
Conditions 1--2 are available in three current Phase 3 sizes: `-103k` full corpora, `-20k` random subsets sampled from the corresponding `-103k` config with seed 42, and `-5k` compact subsets. Phase 2 `-32k` configs are still available with the `phase-2-the-stack-v1-*` prefix.
|
| 874 |
|
| 875 |
+
| Config | Condition | Language | Description | Train | Val |
|
| 876 |
+
| ------------------------- | ----------- | -------- | ------------------------------------------------ | ------ | ------ |
|
| 877 |
+
| `condition-1-en-103k` | 1 (control) | English | Unmodified filtered Python | 93,549 | 10,395 |
|
| 878 |
+
| `condition-1-en-20k` | 1 (control) | English | Random 20k subset of `condition-1-en-103k` | 18,000 | 2,000 |
|
| 879 |
+
| `condition-1-en-5k` | 1 (control) | English | Compact 5k subset | 4,500 | 500 |
|
| 880 |
+
| `condition-2-zh-103k` | 2 | Chinese | Keyword-swapped Python via Legesher v0.7.3 | 93,547 | 10,395 |
|
| 881 |
+
| `condition-2-zh-20k` | 2 | Chinese | Random 20k subset of `condition-2-zh-103k` | 18,000 | 2,000 |
|
| 882 |
+
| `condition-2-zh-5k` | 2 | Chinese | Compact 5k subset | 4,500 | 500 |
|
| 883 |
+
| `condition-2-es-103k` | 2 | Spanish | Keyword-swapped Python via Legesher v0.7.3 | 93,547 | 10,395 |
|
| 884 |
+
| `condition-2-es-20k` | 2 | Spanish | Random 20k subset of `condition-2-es-103k` | 18,000 | 2,000 |
|
| 885 |
+
| `condition-2-es-5k` | 2 | Spanish | Compact 5k subset | 4,500 | 500 |
|
| 886 |
+
| `condition-2-ur-103k` | 2 | Urdu | Keyword-swapped Python via Legesher v0.7.3 | 93,547 | 10,395 |
|
| 887 |
+
| `condition-2-ur-20k` | 2 | Urdu | Random 20k subset of `condition-2-ur-103k` | 18,000 | 2,000 |
|
| 888 |
+
| `condition-2-ur-5k` | 2 | Urdu | Compact 5k subset | 4,500 | 500 |
|
| 889 |
+
| `condition-3-zh-5k` | 3 | Chinese | Blended: native Chinese code + transpiled Python | 4,500 | 500 |
|
| 890 |
+
| `condition-4-zh-5k` | 4 | Chinese | Strictly native Chinese code | 6,553 | 729 |
|
| 891 |
+
| `condition-5-ur-5k-c4ai-aya-expanse-32b` | 5 | Urdu | Model-translated Urdu condition | 4,024 | 447 |
|
| 892 |
|
| 893 |
## Schema
|
| 894 |
|
|
|
|
| 965 |
from datasets import load_dataset
|
| 966 |
|
| 967 |
# Load full-size English code (control)
|
| 968 |
+
ds = load_dataset("legesher/language-decoded-data", "condition-1-en-103k")
|
| 969 |
+
|
| 970 |
+
# Load random 20k subsets
|
| 971 |
+
ds = load_dataset("legesher/language-decoded-data", "condition-1-en-20k")
|
| 972 |
+
ds = load_dataset("legesher/language-decoded-data", "condition-2-zh-20k")
|
| 973 |
+
ds = load_dataset("legesher/language-decoded-data", "condition-2-es-20k")
|
| 974 |
+
ds = load_dataset("legesher/language-decoded-data", "condition-2-ur-20k")
|
| 975 |
|
| 976 |
# Load 5k subset (for QLoRA fine-tuning)
|
| 977 |
ds = load_dataset("legesher/language-decoded-data", "condition-1-en-5k")
|