--- license: other language: - de task_categories: - text-generation tags: - german - deutsch - sft - instruction-tuning - gemma - lora - chat pretty_name: Gemma-4-E4B German SFT Corpus (4 controlled variants) size_categories: - 10K **Round-1 residue:** `aya_de` (17) and `mmlu_aux_de` (4) are small because streaming missed > most German `aya` rows and `mmlu_aux` collapsed on final-turn dedup. Retained for > transparency; a round-2 rebuild will restore them. ## Curation - **Native-heavy:** native German prioritized; high-quality MT (DeepL'24 / GPT-4 translations) admitted; noisy MT excluded. - **Language filter:** `lingua` German language-ID where available, with a stop-word + length heuristic fallback when `lingua` is absent. - **Per-source 20 % cap + round-robin mixing** → no single source dominates. For the target of 28 000 the cap is 5 600 rows/source; in practice the 7 large sources each land at ~3 480 rows (well under the cap) because the round-robin draws evenly across them. - **Global dedup** on the final `gpt` turn. - **Regularized approximate replay** (`replay_de`, v1/v4 only): ~8.7 % raw-German Wikipedia text as `human` (passage start) → `gpt` (continuation), to counter catastrophic forgetting of base German fluency. Replay fraction = `n · ratio / (1 − ratio)`. - **MCQ handling** (`m_arc_de`): *balanced* variants shuffle the gold-answer position uniformly over A/B/C/D (kills positional / A-default bias); the *unbalanced* variant (v4) keeps original positions. *terse* target = `"Die korrekte Antwort ist (X)."`; *reasoning* target = short rationale then the letter. - **Explicitly excluded:** `slimorca_dedup_german_experimental` (noisy MT), `ultra_chat_de` (verbosity). ## Contamination Independent of the held-out benchmarks (INCLUDE-de, EuroEval ScaLA / SB10k / GermEval / GermanQuad, MMLU-ProX / MMMLU-de). No benchmark test split is included; `openai/MMMLU[DE]` and `LeoLM/MMLU_de` (eval-only) were deliberately **not** used. ## Intended use & trained models LoRA SFT of `unsloth/gemma-4-E4B-it`: r128 / α256 · bf16 · lr 5e-5 (gentle) · effective batch 16 · 1 epoch · reasoning-off · seed 3407 · 1× H100. Models trained from these variants: - [`peerbench/gemma-4-E4B-20260610190427-v1`](https://huggingface.co/peerbench/gemma-4-E4B-20260610190427-v1) — reasoning + balanced + replay - [`peerbench/gemma-4-E4B-20260610190427-v2`](https://huggingface.co/peerbench/gemma-4-E4B-20260610190427-v2) — terse + balanced - [`peerbench/gemma-4-E4B-20260610190427-v3`](https://huggingface.co/peerbench/gemma-4-E4B-20260610190427-v3) — reasoning + balanced, no replay - [`peerbench/gemma-4-E4B-20260610190427-v4`](https://huggingface.co/peerbench/gemma-4-E4B-20260610190427-v4) — reasoning + unbalanced + replay ## Provenance & licensing Built by re-formatting and filtering the upstream datasets listed above; **each retains its original license / terms** — consult the source repositories before redistribution. Synthetic buckets (`replay_de`, `m_arc_de`, `mmlu_aux_de`) are transformations of publicly available German text / ARC / MMLU-auxiliary material. Provided **as-is, for research**; `license: other` reflects the mixed upstream terms. ## Build - Builder: `build_gemma_sft_variants.py` — `--target 28000 --seed 3407`. - Built 2026-06-10 on the German-LLM GPU client host (`gaa-mdk`): ShareGPT normalization → language filter → per-source cap → dedup → strict-alternation pass → variant assembly. --- *Part of the peerbench German-LLM fine-tuning experiments.*