--- license: apache-2.0 language: - en pretty_name: "Zenyx Swallow Code v2 Python" size_categories: - 100K

847,259 Rewritten Python Documents, About 1.77 Billion Tokens

Pre-Training Text • Qwen3-235B Rewrites of The Stack v2 • Apache-2.0

--- ## 🧭 The Zenyx Dataset Family: Which Dataset Should You Use? Every Zenyx dataset lives under [`Arko007`](https://huggingface.co/Arko007) and follows one convention: a `messages` column holding a JSON string of chat turns (roles `system`, `user`, `assistant`, `tool`), optional `tools`, and a `src` tag naming the family. The tables below route you to the right repo. ### 🧱 General SFT and training collections | Dataset | Format | Volume | What it is | Best suited for | | :--- | :--- | :--- | :--- | :--- | | [**`Arko007/zenyx-sft-v2`**](https://huggingface.co/datasets/Arko007/zenyx-sft-v2) | Clean Parquet (train + validation) | 191,002 conversations, ~29.1M tokens | 45 domains of multi-turn, agentic, coding and reasoning chat; audited and de-duplicated | Standard supervised fine-tuning | | [**`Arko007/Zenyx-100M-SFT-synth`**](https://huggingface.co/datasets/Arko007/Zenyx-100M-SFT-synth) | JSONL + Parquet archive | 209k accepted + 114k rejected rows, ~41M tokens | Raw generation traces and the log of every rejected row | Studying synthetic-data pipelines and failure modes | | [**`Arko007/Zenyx-100M-SFT-data`**](https://huggingface.co/datasets/Arko007/Zenyx-100M-SFT-data) | Pre-tokenised NumPy `.npz` shards (+ Parquet view) | 149,571 sequences of 2,049 tokens (208.2M trained tokens) | 15-source mixture, already tokenised, with loss masks | Zero-overhead GPU training of Zenyx-100M | | [**`Arko007/zenyx-curated`**](https://huggingface.co/datasets/Arko007/zenyx-curated) | Parquet, 38 families | 2,520,243 rows | Filtered, de-duplicated, script-checked public and Zenyx-made sources | Building your own SFT mix family by family | | [**`Arko007/zenyx-v3-synthetic-sft-v4`**](https://huggingface.co/datasets/Arko007/zenyx-v3-synthetic-sft-v4) | JSONL shards | 101,523 samples | Distilled reasoning, code and math dialogues from five public sources | Reasoning-heavy SFT | | [**`Arko007/zenyx-v2-SFT-dataset`**](https://huggingface.co/datasets/Arko007/zenyx-v2-SFT-dataset) | Parquet, one config per source | about 187M rows (14 source sets) | Raw Nemotron SFT / RL, Cascade and math collections used for Zenyx V2 | Large-scale research on source data | ### 🎯 Instruction following, behaviour and constraints | Dataset | Format | Volume | What it is | Best suited for | | :--- | :--- | :--- | :--- | :--- | | [**`Arko007/zenyx-instruct-exact`**](https://huggingface.co/datasets/Arko007/zenyx-instruct-exact) | Parquet, 33 configs | ~250M templated rows | Rule-based exact-instruction data; every answer computed by code | Exact counts, formats, letters, multi-question, follow-ups, rules that persist | | [**`Arko007/zenyx-exact-mix`**](https://huggingface.co/datasets/Arko007/zenyx-exact-mix) | Parquet, 5 group configs | 1,183,373 rows, ~180M tokens | Trainer-ready, de-duplicated subset of zenyx-instruct-exact | Dropping the exact-instruction data straight into a training mix | | [**`Arko007/zenyx-constraint-write`**](https://huggingface.co/datasets/Arko007/zenyx-constraint-write) | Parquet + JSONL | 394,998 rows, ~98.1M tokens | Exact-rule writing: word lengths, letter counts, lipograms, acrostics | Controllable, rule-exact text generation | | [**`Arko007/zenyx-haiku-opus`**](https://huggingface.co/datasets/Arko007/zenyx-haiku-opus) | Parquet, 4 configs + raw JSONL | weak_games 2,496 / rest 14,843 / opus 40 / train 16,836 rows | Hand-written and solver-made behaviour data from Claude Haiku and Opus, in one repo | Calibration, tool recovery, games, multi-turn behaviour | | [**`Arko007/zenyx-false-belief`**](https://huggingface.co/datasets/Arko007/zenyx-false-belief) | Parquet | 7,194 rows (v2) | Correcting false beliefs and false premises kindly, with true facts | Honesty and theory-of-mind behaviour | | [**`Arko007/zenyx-frontier-handwritten`**](https://huggingface.co/datasets/Arko007/zenyx-frontier-handwritten) | JSONL, several rounds | about 15,000 multi-turn rows | Hand-written and repaired multi-turn dialogues in 55 reasoning domains | High-density multi-turn and tool arbitration supervision | ### 🛠️ Agents, tools and conversation | Dataset | Format | Volume | What it is | Best suited for | | :--- | :--- | :--- | :--- | :--- | | [**`Arko007/zenyx-agentic-loops`**](https://huggingface.co/datasets/Arko007/zenyx-agentic-loops) | JSONL (accepted + rejects) | simulated-tool rollouts, counts in `status/` | Tool-use loops with executed simulated tools and verified rollouts | Agent-loop behaviour: errors, empty results, asking, confirming, polling | | [**`Arko007/zenyx-spark-r11`**](https://huggingface.co/datasets/Arko007/zenyx-spark-r11) | Parquet, 8 families | 462,033 rows | Round-11 families: celebrity facts, dates, comprehension, slang, greetings, needle retrieval, STEM, code translation | Short, factual and conversational behaviour | | [**`Arko007/zenyx-spark-r11-calib`**](https://huggingface.co/datasets/Arko007/zenyx-spark-r11-calib) | JSONL | 836 accepted rows | Small calibration run of the round-11 generators | Diagnostics only | | [**`Arko007/zenyx-r11-extra`**](https://huggingface.co/datasets/Arko007/zenyx-r11-extra) | Parquet, 3 folders | 95,334 rows | Math with executed code, casual chat and roleplay, rebuilt from three public sources | Tool-augmented math and conversational variety | ### 🔢 Reasoning, arithmetic and puzzles | Dataset | Format | Volume | What it is | Best suited for | | :--- | :--- | :--- | :--- | :--- | | [**`Arko007/zenyx-arithmetic-100m`**](https://huggingface.co/datasets/Arko007/zenyx-arithmetic-100m) | Parquet, 21 shards | 100,000,000 rows | Exact integer arithmetic with verified step-by-step scratchpads | Teaching procedures instead of guessed results | | [**`Arko007/zenyx-arc-synth`**](https://huggingface.co/datasets/Arko007/zenyx-arc-synth) | Parquet (train + validation) | 597,098 + 2,000 tasks | Programmatically generated ARC-style grid puzzles, correct by construction | Spatial and inductive reasoning | ### 🎯 Quick navigation * **Standard fine-tuning on clean chat, agent and coding data** → [`zenyx-sft-v2`](https://huggingface.co/datasets/Arko007/zenyx-sft-v2) * **A big, mixable pool, chosen family by family** → [`zenyx-curated`](https://huggingface.co/datasets/Arko007/zenyx-curated) * **Exact counts, formats, letters, several questions in one prompt, one-word follow-ups, rules that must persist** → [`zenyx-instruct-exact`](https://huggingface.co/datasets/Arko007/zenyx-instruct-exact) (everything) or [`zenyx-exact-mix`](https://huggingface.co/datasets/Arko007/zenyx-exact-mix) (trainer-ready subset) * **Rule-exact writing (letter counts, lipograms, acrostics)** → [`zenyx-constraint-write`](https://huggingface.co/datasets/Arko007/zenyx-constraint-write) * **Calibration, tool recovery, games and multi-turn behaviour from Claude** → [`zenyx-haiku-opus`](https://huggingface.co/datasets/Arko007/zenyx-haiku-opus) * **Agent loops with executed tools** → [`zenyx-agentic-loops`](https://huggingface.co/datasets/Arko007/zenyx-agentic-loops) * **Arithmetic procedures at scale** → [`zenyx-arithmetic-100m`](https://huggingface.co/datasets/Arko007/zenyx-arithmetic-100m); **grid reasoning** → [`zenyx-arc-synth`](https://huggingface.co/datasets/Arko007/zenyx-arc-synth) * **Pre-tokenised shards for the Zenyx-100M trainer** → [`Zenyx-100M-SFT-data`](https://huggingface.co/datasets/Arko007/Zenyx-100M-SFT-data) The models these datasets were built for: [`Arko007/Zenyx-100M-Base`](https://huggingface.co/Arko007/Zenyx-100M-Base) (Zenyx-Mini, about 151M parameters). ### 📚 Knowledge, STEM, code and specialised data (added 30 Nov 2026) | Dataset | Size | | :--- | :--- | | [**`Arko007/zenyx-camel-gsm8k`**](https://huggingface.co/datasets/Arko007/zenyx-camel-gsm8k) | 6,504 rows | | [**`Arko007/zenyx-camel-science`**](https://huggingface.co/datasets/Arko007/zenyx-camel-science) | 59,710 rows | | [**`Arko007/zenyx-code-distill`**](https://huggingface.co/datasets/Arko007/zenyx-code-distill) | 4,758 rows | | [**`Arko007/zenyx-conceptnet-mcq`**](https://huggingface.co/datasets/Arko007/zenyx-conceptnet-mcq) | 158,148 rows | | [**`Arko007/zenyx-cs-theory`**](https://huggingface.co/datasets/Arko007/zenyx-cs-theory) | 175,847 rows | | [**`Arko007/zenyx-cs-theory-calib`**](https://huggingface.co/datasets/Arko007/zenyx-cs-theory-calib) | calibration run | | [**`Arko007/zenyx-dolly-hhrlhf`**](https://huggingface.co/datasets/Arko007/zenyx-dolly-hhrlhf) | 38,832 rows | | [**`Arko007/zenyx-everything-instruct`**](https://huggingface.co/datasets/Arko007/zenyx-everything-instruct) | 120,000 rows | | [**`Arko007/zenyx-flan-medical`**](https://huggingface.co/datasets/Arko007/zenyx-flan-medical) | 5,802 rows | | [**`Arko007/zenyx-flan-supp`**](https://huggingface.co/datasets/Arko007/zenyx-flan-supp) | 365,558 rows | | [**`Arko007/zenyx-grounded-facts`**](https://huggingface.co/datasets/Arko007/zenyx-grounded-facts) | 100,542 rows | | [**`Arko007/zenyx-hand-written`**](https://huggingface.co/datasets/Arko007/zenyx-hand-written) | 12,564 rows | | [**`Arko007/zenyx-infinity-instruct`**](https://huggingface.co/datasets/Arko007/zenyx-infinity-instruct) | 195,212 rows | | [**`Arko007/zenyx-mmlu-pro-train`**](https://huggingface.co/datasets/Arko007/zenyx-mmlu-pro-train) | 13,962 rows | | [**`Arko007/zenyx-riddlesense`**](https://huggingface.co/datasets/Arko007/zenyx-riddlesense) | 9,058 rows | | [**`Arko007/zenyx-rule-scope`**](https://huggingface.co/datasets/Arko007/zenyx-rule-scope) | 8,324 rows | | [**`Arko007/zenyx-s1-synth`**](https://huggingface.co/datasets/Arko007/zenyx-s1-synth) | 31,641 rows | | [**`Arko007/zenyx-skills-md`**](https://huggingface.co/datasets/Arko007/zenyx-skills-md) | 6,700 rows | | [**`Arko007/zenyx-squality`**](https://huggingface.co/datasets/Arko007/zenyx-squality) | 2,540 rows | | [**`Arko007/zenyx-summary-mapreduce`**](https://huggingface.co/datasets/Arko007/zenyx-summary-mapreduce) | 17,206 rows | | [**`Arko007/zenyx-swallow-code-v2`**](https://huggingface.co/datasets/Arko007/zenyx-swallow-code-v2) *(📍 You are here)* | 847,259 docs | | [**`Arko007/zenyx-swallow-math-v2`**](https://huggingface.co/datasets/Arko007/zenyx-swallow-math-v2) | 2,652,627 docs | | [**`Arko007/zenyx-swallow-stem`**](https://huggingface.co/datasets/Arko007/zenyx-swallow-stem) | 256,554 rows | | [**`Arko007/zenyx-terminal-tasks`**](https://huggingface.co/datasets/Arko007/zenyx-terminal-tasks) | 3,728 rows | | [**`Arko007/zenyx-toolground`**](https://huggingface.co/datasets/Arko007/zenyx-toolground) | 60,000 rows | | [**`Arko007/zenyx-unified-mcqa`**](https://huggingface.co/datasets/Arko007/zenyx-unified-mcqa) | 177,706 rows | | [**`Arko007/zenyx-v3-greetings`**](https://huggingface.co/datasets/Arko007/zenyx-v3-greetings) | 117,280 rows | | [**`Arko007/zenyx-bench-mc-answers`**](https://huggingface.co/datasets/Arko007/zenyx-bench-mc-answers) | 26,460 rows | | [**`Arko007/zenyx-run-assets`**](https://huggingface.co/datasets/Arko007/zenyx-run-assets) | notebooks | --- ## 📖 Dataset Overview Python documents from `stage5-auto-format/python` of [`tokyotech-llm/swallow-code-v2`](https://huggingface.co/datasets/tokyotech-llm/swallow-code-v2), the Apache-2.0 successor of Swallow-Code v1 (which carries the Llama 3.3 licence). The documents are Python files from The Stack v2 that Qwen3-235B rewrote into cleaner, documented code. ## 📊 At a Glance | Metric | Value | | :--- | :--- | | **Rows** | 847,259 | | **Format** | plain text, one `text` column per document (not chat) | | **Files** | 29 Parquet files | | **Estimated tokens** | about 1.77B | | **Source files used** | 4 of about 150 (so about 1 epoch of this subset) | | **Size on the Hub** | about 1.76 GB | ## 📚 Sources and Licences | Source | Upstream licence | Used for | | :--- | :--- | :--- | | [`tokyotech-llm/swallow-code-v2`](https://huggingface.co/datasets/tokyotech-llm/swallow-code-v2) | Apache-2.0 | all documents (`stage5-auto-format`, Python) | ## ⚠️ Notes and Limits * Plain pre-training text, no chat template. * Rewritten code is not executed or tested here. ## 🚀 Quick Start ```python import json from datasets import load_dataset ds = load_dataset("Arko007/zenyx-swallow-code-v2", split="train") row = ds[0] print(row["text"][:500]) ``` --- ## License and citation Apache-2.0, following the source dataset. ```bibtex @dataset{zenyx_swallow_code_v2_2026, author = {Arko and Zenyx AI Contributors}, title = {Zenyx Swallow Code v2 (Python)}, year = {2026}, publisher = {Hugging Face}, howpublished = {\url{https://huggingface.co/datasets/Arko007/zenyx-swallow-code-v2}} } ```