xabys-sft / README.md
hexray's picture
xabys-sft v1.2: README.md
2ecaa9a verified
|
Raw History Blame Contribute Delete
6.62 kB
---
license: other
language:
- en
- hi
tags:
- xabys
- sft
- instruction-tuning
- hinglish
---
# xabys-sft — XAbys SFT Dataset v1.2
Supervised fine-tuning data for XAbys (Qwen/Qwen3-8B base, QLoRA).
Built 15 Nov 2026. **Train 3,040 rows / validation 159 / test 184 — total 3,383.**
## v1.2 — correction round 2 (15 Nov 2026)
P6b evaluation found the v1.1 fine-tune improved to 28/36 vs base 32/36
but still FAILS. The gap vs base is exactly 4 prompts: 2 multi-step
math word problems with wrong arithmetic, and 2 hallucination prompts
still answered confidently despite 150 refusal rows in v1.1. v1.2
corrects this:
- **100 NEW refusal rows** (assistant-authored): future sports/event
results 20, private contact info of public figures 20, exact future
predictions 20, fictional entities/places 20, false-premise 20 (each
correction is a checked fact). Targeted at the failing styles, with
different events, figures, dates and wording.
- **100 NEW multi-step math word problems** (assistant-authored) with
full step-by-step reasoning ending in "Final answer: N": worker-days
20, fraction-of-money 20, percentage discounts 15, speed-distance-time
15, simple interest 15, area/perimeter 15. All arithmetic computed in
code and asserted.
- **Eval decontamination (new in v1.2):** the build now drops any row
with word-set Jaccard > 0.7 vs any of the 36 eval prompts. This found
a v1.1 leakage bug and removed 3 v1.1 rows: the false-premise row "Why
is Saturn the largest planet in our solar system?" (J=0.73 vs eval k6)
whose response states the k6 answer, so P6b's k6 pass for v1.1 is
contaminated evidence; and the two Aya "capital of Jordan/Germany"
rows (J=0.71 vs the eval capital prompts). Max Jaccard of the final
train/val vs any eval prompt is 0.70 (the "largest moon" row, which
teaches a different fact — Ganymede — and sits exactly at the gate).
All other v1.1 rows are kept (2,999 of 3,002). The test set is
byte-identical to v1 (sha256 verified before and after the build).
Validation: 30/30 independent checks pass (see the full manifest in the
XAbys project, `data/processed/MANIFEST.md`).
## v1.1 — correction release (14 Nov 2026)
P6 evaluation found the v1 fine-tune REGRESSED on generation (base 32/36
vs fine-tuned 26/36): v1 data had NO refusal examples, so the model lost
the base model's calibrated refusal (hallucination 4/4 → 2/4), and GSM8K
rows taught short answers that hurt multi-step math. v1.1 corrects this:
- **150 refusal rows** (assistant-authored): unanswerable 30, fictional
entities 30, future events 30, private/personal information 30,
false-premise 30 (each correction is a checked fact).
- **100 Roman Hinglish rows** (assistant-authored): dues reminders 25,
GST 20, loan/EMI 20, budget/shop 15, translation 10, general shop 10.
Roman script only — 0 Devanagari characters (regex-verified). All
arithmetic computed in code.
- **200 fresh GSM8K train rows** (MIT): full step-by-step solutions,
calculator `<<...>>` stripped, trailing `#### N` converted to
`Final answer: N`. Verified NOT in v1 via provenance hashes.
All v1 rows are kept. The test set is byte-identical to v1 (sha256
verified before and after the build). Validation: 23/23 independent
checks pass (see the full manifest in the XAbys project,
`data/processed/MANIFEST.md`).
## Splits
- `train.jsonl` — 3,040 rows (SFT training)
- `validation.jsonl` — 159 rows (held-out, never trained on)
- `test.jsonl` — 184 rows (held-out eval only, incl. 50 GSM8K test-split rows)
Every row has exactly two fields: `instruction` and `response`, both non-empty.
Format matches the XAbys Colab notebook (`format_example`, ChatML).
## Sources and licences
| Source | Licence | Rows (total, incl. test split) |
|---|---|---|
| Open-Orca/OpenOrca | MIT | 1,186 |
| openai/gsm8k (train split) | MIT | 1,000 (800 v1 + 200 v1.1) |
| openai/gsm8k (test split) | MIT | 50 (test only) |
| CohereForAI/aya_dataset (Hindi) | Apache 2.0 | 357 |
| CohereForAI/aya_dataset (English) | Apache 2.0 | 193 (195 v1.1 minus 2 eval-leak rows removed in v1.2) |
| assistant-authored (Hinglish/MSME, v1) | Original, assistant-authored | 148 |
| assistant-authored (refusal, v1.1) | Original, assistant-authored | 149 (150 v1.1 minus 1 eval-leak row removed in v1.2) |
| assistant-authored (Roman Hinglish, v1.1) | Original, assistant-authored | 100 |
| assistant-authored (refusal round 2, v1.2) | Original, assistant-authored | 100 |
| assistant-authored (math word problems, v1.2) | Original, assistant-authored | 100 |
**Licence note:** this dataset mixes MIT and Apache 2.0 sources. The
`license: other` tag reflects the mix; per-source licences above govern
each subset. No non-commercial (NC) data is included. UltraChat was
excluded (licence contested). MATH and CodeAlpaca-20k were excluded
(licences unverified). The Stack was NOT used (gated on the Hub).
## How it was built
- Streamed/sampled capped subsets; Aya Hindi was rare (~0.2–0.4% of rows),
so the full Aya parquet was downloaded and filtered exactly.
- Deduplication: v1 removed 51 exact + 11 near-duplicates (Jaccard > 0.85);
v1.1 pooled 3,002 rows and removed 0 exact + 0 near-duplicates.
- Decontamination verified: train∩val = 0, train∩test = 0, val∩test = 0
(sha256 of normalised instruction), plus near-duplicate train-vs-test
check (Jaccard > 0.9) = 0.
- One build bug was found and fixed in v1: the first normaliser stripped
non-Latin letters, collapsing Devanagari rows; rebuilt with a
Unicode-aware normaliser. Final build keeps 357 Hindi rows.
- v1.1 build scripts: `data/author_v11_rows.py` (authored rows),
`data/build_sft_v11.py` (rebuild, seed 42), `data/validate_v11.py`
(independent validation, 23 checks, all pass).
- v1.2 build scripts: `data/author_v12_rows.py` (authored rows),
`data/build_sft_v12.py` (rebuild, seed 42), `data/validate_v12.py`
(independent validation, 30 checks, all pass).
## What is NOT in v1.1
- **No dedicated code dataset** (The Stack is gated) — coding coverage is
only what exists inside OpenOrca.
- **No real VASOOL/MSME data** — the pilot has 0 runs; no real MSME
records were invented. The MSME slice is 148 assistant-authored
teaching examples, labelled as such.
- Refusal and Roman Hinglish rows are assistant-authored teaching
examples, NOT verified human knowledge.
- No tool-use / function-calling rows. Small scale (starter set).
## Intended use
QLoRA SFT of Qwen/Qwen3-8B for XAbys. See the full manifest in the
XAbys project (`data/processed/MANIFEST.md`) for filtering statistics
and known gaps.