Datasets:
|
Download README.md from miceworks/mark-ecosystem-sft-seed: direct link, hf CLI and curl.
- Browser
- Download file 19.2 kB
-
https://huggingface.co/datasets/miceworks/mark-ecosystem-sft-seed/resolve/main/README.md
- Command line
-
hf download hf://datasets/miceworks/mark-ecosystem-sft-seed/README.md
-
curl -L -o README.md https://huggingface.co/datasets/miceworks/mark-ecosystem-sft-seed/resolve/main/README.md
19.2 kB
| license: agpl-3.0 | |
| task_categories: | |
| - text-generation | |
| language: | |
| - en | |
| - pt | |
| - ar | |
| - hi | |
| - es | |
| - fr | |
| - zh | |
| tags: | |
| - sft | |
| - rlvr | |
| - grpo | |
| - code | |
| - rust | |
| - luau | |
| - cybersecurity | |
| - reasoning | |
| - math | |
| - polyglot | |
| size_categories: | |
| - 100K<n<1M | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: data/train.jsonl | |
| - split: validation | |
| path: data/validation.jsonl | |
| - config_name: rlvr | |
| data_files: | |
| - split: train | |
| path: data/rlvr_tasks.jsonl | |
| # Mark Ecosystem SFT and RLVR Seed Corpus (505K Unified Release) | |
| Technical dataset documentation for `miceworks/mark-ecosystem-sft-seed`, a curated supervised fine-tuning (SFT) and reinforcement learning with verifiable rewards (RLVR) corpus. This dataset serves as the base instruction-tuning corpus for the `Mark` family of models (`Mark-32B` 1-bit ternary quantization models and specialized code, reasoning, and security variants). | |
| The corpus is partitioned into three canonical files: | |
| 1. `data/train.jsonl` (505,000 conversations): SFT dataset decontaminated against major benchmarks and deduplicated via normalized SHA-256 fingerprints. | |
| 2. `data/validation.jsonl` (873 conversations): Fixed holdout validation set covering all target domains with zero training overlap. | |
| 3. `data/rlvr_tasks.jsonl` (570 verification tasks): Unit-tested coding, math, simulation, and behavioral tasks designed for GRPO and RLVR policy optimization with deterministic verification harnesses. | |
| All rows adhere to strict type schemas without null fields or mixed types. | |
| ## File Manifest and Verification Hashes | |
| | File Path | Format | Records | Size (Bytes) | SHA-256 Checksum | | |
| | :--- | :--- | :--- | :--- | :--- | | |
| | `data/train.jsonl` | JSONL | 505,000 | 1,559,408,874 | `a198e87735b6a0bdaacc728714a7ff6aea7da292e94d2a88fb86ac6d2de407de` | | |
| | `data/validation.jsonl` | JSONL | 873 | 3,728,712 | `9407528f5c9fda4ed810883c745d0eeef99656974ebdc25e9b665cf100027df0` | | |
| | `data/rlvr_tasks.jsonl` | JSONL | 570 | 507,942 | `d79985e1e4a496f53d38ff0af67e1a41746dd61a63a99e29dfe9f672149ca37f` | | |
| | `curation_report.json` | JSON | 1 | 592 | `7e1a89c933010b9914757c9c0dcbb0dc949430c571ce94eeceba68e21ba403bf` | | |
| ## Data Schema Specification | |
| ### SFT and Validation Partition Schema (`data/train.jsonl`, `data/validation.jsonl`) | |
| Every row in `data/train.jsonl` and `data/validation.jsonl` contains exactly five top-level fields: | |
| | Field | Type | Description | | |
| | :--- | :--- | :--- | | |
| | `id` | String | Deterministic unique record identifier formatted as `<domain>_<source>_<index>` | | |
| | `domain` | String | Taxonomic domain classification (`engineer`, `math`, `general`, `uncertainty`, `terminal`, `agentic`, `cyber`, `hardware`) | | |
| | `source` | String | Sub-corpus or upstream collection identifier | | |
| | `language` | String | Primary ISO/custom language identifier (`en`, `pt`, `pt-br`, `zh`, `ar`, `hi`, `es`, `fr`, or specific syntax tag) | | |
| | `messages` | List[Dict] | Alternating turn sequence containing `role` (`system`, `user`, `assistant`) and `content` (String) | | |
| #### Loss Masking Convention | |
| During autoregressive training: | |
| - `system` and `user` turns: Loss weight is 0.0 (masked). | |
| - `assistant` turns: Loss weight is 1.0 (calculated). This includes internal `<think>...</think>` tokens and structured `<tool_call>...</tool_call>` spans. | |
| ```json | |
| { | |
| "id": "engineer_commitpackft_rust_00142", | |
| "domain": "engineer", | |
| "source": "commitpackft_rust", | |
| "language": "en", | |
| "messages": [ | |
| { | |
| "role": "user", | |
| "content": "Implement an asynchronous cancellation token in Rust Edition 2024 using atomic state transitions." | |
| }, | |
| { | |
| "role": "assistant", | |
| "content": "<think>\n1. Requirements: CancellationToken with atomic state (AtomicU8).\n2. Transition states: ACTIVE (0), CANCELLED (1).\n3. Use std::sync::atomic::Ordering::SeqCst for synchronization.\n</think>\n\n```rust\nuse std::sync::atomic::{AtomicU8, Ordering};\nuse std::sync::Arc;\n\npub struct CancellationToken {\n state: Arc<AtomicU8>,\n}\n\nimpl CancellationToken {\n pub fn new() -> Self {\n Self { state: Arc::new(AtomicU8::new(0)) }\n }\n pub fn cancel(&self) {\n self.state.store(1, Ordering::SeqCst);\n }\n pub fn is_cancelled(&self) -> bool {\n self.state.load(Ordering::SeqCst) == 1\n }\n}\n```" | |
| } | |
| ] | |
| } | |
| ``` | |
| ### RLVR Verification Task Schema (`data/rlvr_tasks.jsonl`) | |
| Every row in `data/rlvr_tasks.jsonl` contains executable verification problems: | |
| | Field | Type | Description | | |
| | :--- | :--- | :--- | | |
| | `task_id` | String | Unique task identifier | | |
| | `category` | String | Functional category (`roblox_luau_2026`, `psychology_and_skills`, `lang_updates_2024_2026`, `fluid_simulation`, `spring_physics`, `inverse_kinematics`, `bezier_motion`) | | |
| | `language` | String | Target runtime environment (`luau`, `python`, `rust_2024`, `python_314`, `cpp_23`, `c_23`, `bash`) | | |
| | `prompt` | String | Problem statement, functional constraints, and interface signatures | | |
| | `test_harness` | String | Standalone test script with assert statements executed in sandbox | | |
| | `reference_solution` | String | Verified canonical code passing the test harness with exit code 0 | | |
| ```json | |
| { | |
| "task_id": "task_spring_physics_001", | |
| "category": "spring_physics", | |
| "language": "python", | |
| "prompt": "Write a function `simulate_damped_spring(x0, v0, k, c, m, dt, steps)` that integrates a damped harmonic oscillator using RK4.", | |
| "test_harness": "solution = simulate_damped_spring(1.0, 0.0, 10.0, 0.5, 1.0, 0.01, 100)\nassert len(solution) == 100\nassert abs(solution[-1][0]) < 1.0\nprint(\"ALL_TESTS_PASSED\")", | |
| "reference_solution": "def simulate_damped_spring(x0, v0, k, c, m, dt, steps):\n def deriv(x, v): return v, (-c*v - k*x)/m\n traj = []\n x, v = x0, v0\n for _ in range(steps):\n k1x, k1v = deriv(x, v)\n k2x, k2v = deriv(x + 0.5*dt*k1x, v + 0.5*dt*k1v)\n k3x, k3v = deriv(x + 0.5*dt*k2x, v + 0.5*dt*k2v)\n k4x, k4v = deriv(x + dt*k3x, v + dt*k3v)\n x += (dt/6.0)*(k1x + 2*k2x + 2*k3x + k4x)\n v += (dt/6.0)*(k1v + 2*k2v + 2*k3v + k4v)\n traj.append((x, v))\n return traj" | |
| } | |
| ``` | |
| ## Domain Distribution and Technical Scope | |
| | Domain | Train Records | Train Share (%) | Validation Records | Focus Areas | | |
| | :--- | :--- | :--- | :--- | :--- | | |
| | `engineer` | 327,183 | 64.79% | 120 | Polyglot systems (1,195 languages), Rust 2024, Luau 0.748, Blender bpy 4.x, Three.js, Shaders, VFX | | |
| | `math` | 99,572 | 19.72% | 120 | Competition math, proofs, symbolic calculations, calculus, linear algebra | | |
| | `general` | 25,336 | 5.02% | 120 | Multilingual instruction, behavioral economics, addiction mechanics, clinical psychology (15,413 rows) | | |
| | `uncertainty` | 15,243 | 3.02% | 82 | Epistemic abstention, unanswerable queries, hallucination suppression in PT-BR and EN | | |
| | `terminal` | 12,330 | 2.44% | 120 | POSIX Shell, Bash, Zsh, PowerShell 7+, modern Linux coreutils, system diagnosis | | |
| | `agentic` | 12,158 | 2.41% | 120 | Multi-turn tool execution traces, structured XML/JSON tool schemas, iterative debugging | | |
| | `cyber` | 11,528 | 2.28% | 120 | Vulnerability auditing, memory safety, binary analysis, defensive countermeasures, MITRE ATT&CK | | |
| | `hardware` | 1,650 | 0.33% | 71 | Verilog, SystemVerilog, VHDL, CUDA kernels, PTX, x86_64 and AArch64 assembly | | |
| | **Total** | **505,000** | **100.00%** | **873** | | | |
| ### 1. Engineer Domain (327,183 Records) | |
| The `engineer` partition addresses high-performance systems engineering, modern gaming APIs, and polyglot development: | |
| - **Modern Systems Languages**: | |
| - **Rust Edition 2024**: Idiomatic asynchronous operations, async closures, pin ergonomics, zero-cost abstractions, atomics, unsafe boundary auditing, and SIMD intrinsics. | |
| - **C++23 & C23**: Monadic operations via `std::expected`, coroutines, concepts, modules, ranges, and C23 attribute syntax. | |
| - **Zig & Go**: Explicit memory allocators, compile-time evaluation (`comptime`), concurrency primitives, channel ergonomics, and sync pools. | |
| - **Roblox Luau 0.748**: | |
| - Full adherence to Luau 0.748 syntax with `--!strict` typing mode, type assertions, generic functions, and string interpolation. | |
| - Native Vector3 math operators (`vector + vector`), modern Task library (`task.spawn`, `task.defer`, `task.delay`, `task.wait`), and `RaycastParams`. | |
| - Programmatic elimination of deprecated 2018 APIs: `wait()`, `spawn()`, `delay()`, `FindPartOnRay`, `BodyVelocity`, `BodyGyro`, `BodyPosition`. | |
| - Elimination of exploit injection strings (`getgenv`, `HttpGet`, `MoonSec`). | |
| - **Game VFX, Animation, Shaders, and Procedural Juice**: | |
| - **Blender `bpy` 4.x**: Geometry node tree manipulation, custom constraint setup, inverse kinematics solvers, and armature bone transformations. | |
| - **Three.js (r160+ WebGL/WebGPU)**: Custom `ShaderMaterial`, `InstancedMesh` matrix updates, post-processing bloom pipelines, and procedural terrain generation. | |
| - **GLSL and ShaderToy**: Signed distance functions (SDF), raymarching, fractional Brownian motion (fBm), volumetric lighting, and Gerstner ocean wave displacement. | |
| - **Procedural Motion Math**: Runge-Kutta 4th order (RK4) integration, critically damped harmonic oscillators, FABRIK inverse kinematics, and cubic bezier trajectory smoothing. | |
| ### 2. Math Domain (99,572 Records) | |
| The `math` partition enforces rigorous step-by-step reasoning: | |
| - Covers Olympiad-level algebra, combinatorics, number theory, Euclidean geometry, differential equations, and probability theory. | |
| - Models explicit derivation steps inside `<think>...</think>` tags prior to stating final answers, reducing arithmetic calculation errors and logical leaps. | |
| - Decontaminated against GSM8K and MATH-500 benchmarks. | |
| ### 3. General and Behavioral Psychology Partition (25,336 Records) | |
| Contains 15,413 dedicated behavioral psychology, clinical reasoning, and cognitive science records: | |
| - **Dopamine Mechanics and Behavioral Economics**: Mathematical modeling of variable-ratio reinforcement schedules, near-miss effects in loot boxes and gambling systems, loss aversion, and dopamine satiation curves. | |
| - **Therapeutic Frameworks**: Structured applications of Acceptance and Commitment Therapy (ACT - cognitive defusion, acceptance, values clarification) and Cognitive Behavioral Therapy (CBT - cognitive restructuring, identifying cognitive distortions, behavioral experiments). | |
| - **Quality Filters**: Strict filtering against chatbot sycophancy, repetitive disclaimers ("As an AI...", "I cannot diagnose..."), and short low-information responses (< 260 characters). | |
| ### 4. Epistemic Uncertainty Partition (15,243 Records) | |
| Calibrated abstention data designed to prevent hallucinations and ungrounded fabrications: | |
| - **Refusal Mechanics**: Direct, unhedged refusals when queried on non-existent local files, hallucinated API endpoints, or missing context. | |
| - **Bilingual Coverage**: Balanced in English and Brazilian Portuguese (PT-BR). | |
| - **Target Response Patterns**: Outputs direct statements such as *"Não sei responder isso sem inspecionar o arquivo diretamente"* or *"The requested function does not exist in the provided interface definition"* instead of generating speculative code. | |
| ### 5. Terminal and System Operations (12,330 Records) | |
| - Modern Linux administration: POSIX Shell, Bash 5+, Zsh, and PowerShell 7+. | |
| - Core utilities: `fd`, `ripgrep`, `jq`, `iproute2`, `systemd` (`systemctl`, `journalctl`), `strace`, `perf`, and `eBPF`. | |
| - Hardened shell scripting: `set -euo pipefail` safety patterns, process trap handling, subshell isolation, and exit code validation. | |
| ### 6. Agentic Tool Execution (12,158 Records) | |
| - Multi-turn interaction traces showing step-by-step problem resolution through tool calling. | |
| - Canonical Mark tool specification: | |
| - `Shell`: Command-line execution in controlled sandbox. | |
| - `Read`: Deterministic file content inspection with line range support. | |
| - `Write`: Atomic file creation and replacement. | |
| - `ApplyPatch`: Unified diff application. | |
| - `Grep`: Fast regular expression searching across codebases. | |
| - `Test`: Unit test suite runner. | |
| - `Graphify`: Symbol reference and dependency graph extraction. | |
| - `WebSearch`: Technical documentation querying. | |
| - Tool invocation format: Structured XML wrapper containing valid JSON arguments: | |
| `<tool_call>{"name": "Grep", "arguments": {"pattern": "fn init", "path": "src/"}}</tool_call>` | |
| ### 7. Cybersecurity (11,528 Records) | |
| - Defensive security engineering: static code analysis, vulnerability remediation, memory safety reviews, bounds checking, and input sanitization. | |
| - Binary analysis: buffer overflow mitigation, format string auditing, shellcode prevention, and cryptographic implementation audits. | |
| - Mapping against MITRE ATT&CK techniques, CVE analysis, and secure code review practices. | |
| ### 8. Hardware and Low-Level Architecture (1,650 Records) | |
| - Register-Transfer Level (RTL) design: Verilog, SystemVerilog, and VHDL syntax for synthesizable digital logic. | |
| - GPU computing: CUDA C/C++ kernel design, shared memory bank conflict minimization, warp divergence avoidance, and PTX assembly inspection. | |
| - Low-level instruction sets: x86_64 (AVX-512) and AArch64 (NEON) assembly. | |
| ## Polyglot Programming Language Distribution | |
| The curator identified and indexed code samples across 1,195 programming languages and syntax tags. The table below outlines the primary representation across the dataset: | |
| | Programming Language / Tag | Estimated Sample Share (%) | Primary Scope | | |
| | :--- | :--- | :--- | | |
| | Python | 33.4% | Algorithms, systems tooling, machine learning, Blender bpy 4.x, procedural motion | | |
| | JavaScript / TypeScript | 11.2% | Three.js (WebGL/WebGPU), web runtime, node.js backend, game logic | | |
| | Java / Kotlin | 7.1% | Enterprise systems, Android runtime, concurrent architectures | | |
| | C / C++ | 6.8% | Systems software, C++23 standards, memory allocators, performance routines | | |
| | Rust | 5.2% | Rust Edition 2024, async runtime, memory safety, SIMD, kernel modules | | |
| | Bash / POSIX Shell | 4.8% | Linux system automation, build pipelines, process orchestration | | |
| | Roblox Luau / Lua | 3.9% | Luau 0.748 strict typing, Task library, Roblox game architecture, Lua 5.4 | | |
| | C# (.NET) | 3.6% | Game development, runtime engines, enterprise services | | |
| | SQL | 3.5% | Relational query optimization, schema migration, window functions | | |
| | Swift | 3.1% | Native system applications, memory management, Swift concurrency | | |
| | Go | 2.8% | Microservices, goroutine management, network protocols | | |
| | PHP | 2.6% | Modern web backends, type systems, PSR standards | | |
| | Assembly (x86_64 / ARM / PTX) | 1.8% | Instruction-level optimization, kernel entrypoints, GPU kernels | | |
| | Ruby | 1.5% | Automation scripting, developer tooling | | |
| | Verilog / SystemVerilog / VHDL | 1.4% | RTL digital circuit design, testbenches | | |
| | Functional (Haskell, OCaml, Clojure, Scala, Elixir, Erlang) | 3.8% | Pure functional programming, actor model, category theory | | |
| | Shaders (GLSL, HLSL, WGSL) | 1.6% | Fragment shaders, raymarching, compute shaders, graphics pipelines | | |
| | Other Indexed Languages (1,170+ dialects) | 4.5% | Zig, Julia, Nim, Crystal, Dart, Fortran, Ada, R, LuaJIT, Nix, etc. | | |
| ## Reinforcement Learning with Verifiable Rewards (RLVR / GRPO) | |
| The `data/rlvr_tasks.jsonl` partition provides 570 standalone verification tasks designed for Group Relative Policy Optimization (GRPO) and rule-based reinforcement learning: | |
| | Category | Tasks | Execution Runtime | Evaluation Metric | | |
| | :--- | :--- | :--- | :--- | | |
| | `roblox_luau_2026` | 140 | Luau VM (0.748) | Binary pass (exit code 0, all assert conditions satisfied) | | |
| | `psychology_and_skills` | 140 | Python 3.12+ | Binary pass (exact mathematical criteria and behavioral logic) | | |
| | `lang_updates_2024_2026` | 130 | Multi-compiler | Rust 2024, Python 3.14, C++23, C23 compilation and test pass | | |
| | `fluid_simulation` | 40 | Python 3.12+ | Convergence and conservation of mass in Navier-Stokes grid | | |
| | `spring_physics` | 40 | Python 3.12+ | Damped harmonic oscillator energy conservation and phase space check | | |
| | `inverse_kinematics` | 40 | Python 3.12+ | FABRIK reach accuracy within target tolerance epsilon | | |
| | `bezier_motion` | 40 | Python 3.12+ | Arc-length parameterization monotonicity and smoothness criteria | | |
| | **Total Tasks** | **570** | | **Deterministic Automated Execution** | | |
| ### Policy Evaluation Protocol | |
| During training: | |
| 1. The language model generates `N` completions for the given `prompt`. | |
| 2. The generated code is extracted and appended to the `test_harness`. | |
| 3. The complete script is executed in an isolated process with a strict timeout (5.0 seconds). | |
| 4. The reward is assigned deterministically: | |
| - Reward = 1.0 if the process exits with code 0 and outputs `ALL_TESTS_PASSED`. | |
| - Reward = 0.0 if a syntax error, runtime exception, assertion failure, or timeout occurs. | |
| ## Curation, Filtering, and Decontamination Architecture | |
| The dataset was processed through a streaming pipeline written in Rust to guarantee memory efficiency and zero data corruption: | |
| - **Streaming Execution**: Processed in fixed-size sequential chunks, maintaining peak RSS memory below 155 MB across 505,000 multi-turn records. | |
| - **Deterministic Shuffling**: 16-shard sequential external shuffle using deterministic PRNG (`seed=2026`). | |
| ### 1. Benchmark Firewall (Zero Contamination) | |
| - **13-gram Index**: Extracted and indexed 285,842 normalized 13-grams and 10,942 exact prompt signatures across 10 evaluation benchmarks: | |
| - HumanEval | |
| - MBPP | |
| - GSM8K | |
| - MATH-500 | |
| - MMLU | |
| - MMLU-Pro | |
| - ARC-Challenge | |
| - HellaSwag | |
| - TruthfulQA | |
| - IFEval | |
| - **Filter Action**: Every candidate record was converted to normalized sliding 13-grams (lowercase, punctuation-stripped). Any record matching a benchmark 13-gram was discarded. | |
| - **Firewall Outcome**: 783 contaminated records were identified and rejected. | |
| ### 2. Validation Holdout Isolation | |
| - Pre-indexed normalized SHA-256 hashes of all 873 conversations in `data/validation.jsonl`. | |
| - Zero training records share a hash with the validation partition (0 leaks). | |
| ### 3. Deduplication and Quality Gates | |
| - **Exact Deduplication**: Normalized SHA-256 hash checks dropped 257,542 duplicate records. | |
| - **Length Caps**: Dropped 4,262 malformed records or conversations exceeding 28,000 characters. | |
| - **Compiler Verification**: | |
| - Roblox Luau scripts and RLVR solutions were validated against `luau-compile --binary` (`exit_code == 0`). | |
| - Python scripts and simulation solutions were verified using `ast.parse` and runtime assertion harnesses. | |
| ## Training Recommendations | |
| ### Hyperparameters and Configuration | |
| - **Context Length**: 8,192 tokens minimum; 32,768 tokens recommended for multi-turn agentic traces and shader implementations. | |
| - **Loss Masking**: Mask prompt tokens (`role: system` and `role: user`); compute cross-entropy loss exclusively on `role: assistant` output tokens. | |
| - **Learning Rate Schedule**: Cosine decay with 3% linear warmup. | |
| - **Reasoning Tokens**: The model should be trained with loss applied to `<think>...</think>` tokens to maintain explicit multi-step reasoning capabilities. | |