File size: 5,139 Bytes
96d3fca
9d9b831
96d3fca
 
 
 
9d9b831
96d3fca
9d9b831
 
 
 
456b0b5
 
96d3fca
9d9b831
96d3fca
 
9d9b831
96d3fca
9d9b831
 
 
96d3fca
 
456b0b5
9d9b831
456b0b5
 
 
 
9d9b831
 
 
 
 
456b0b5
 
 
 
9d9b831
456b0b5
 
9d9b831
456b0b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e7a4b49
456b0b5
 
 
 
 
 
 
 
 
 
 
 
 
bd8af40
9d9b831
 
456b0b5
9d9b831
456b0b5
 
bd6d599
456b0b5
 
 
 
 
 
 
 
9d9b831
 
456b0b5
9d9b831
c373676
 
9ad0121
c373676
 
 
456b0b5
 
 
 
c373676
456b0b5
c373676
 
 
456b0b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c373676
456b0b5
 
 
 
c373676
9d9b831
 
 
 
456b0b5
9d9b831
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
---
license: cc-by-nc-4.0
language:
- en
task_categories:
- text-generation
- question-answering
tags:
- sft
- conversational
- reasoning
- variableby2d
- assistant-only-loss
pretty_name: Complexity Atlas Posttrain  Card Corpus V2
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*.parquet
  - split: validation
    path: data/validation-*.parquet
  - split: test
    path: data/test-*.parquet
---

# Complexity Atlas Posttrain — Card Corpus V2

An English supervised fine-tuning corpus generated from authored semantic
frames, role-separated prompt/answer/thinking plans, compatibility graphs, and
`VariableBy2D` reservoirs. All 15 task families, including natural dialogue,
belong to one audited corpus and one tokenizer-compatible training view.

## Release

| Split | Examples |
|---|---:|
| Train | 224,654 |
| Validation | 2,478 |
| Test | 1,894 |
| **Total** | **229,026** |

The generator renders every registered valid scenario combination. No global
sampling quota, per-family truncation, or 400K cap is applied.

| Family | Examples |
|---|---:|
| `brainstorming_creativity` | 384 |
| `casual_conversation` | 52,794 |
| `context_clarification` | 9,216 |
| `conversation_empathy` | 2,048 |
| `critique_revision` | 64 |
| `explanation_learning` | 36,040 |
| `extraction_classification` | 3,456 |
| `grounded_qa` | 4,608 |
| `planning_comparison` | 384 |
| `practical_action` | 384 |
| `reasoning_verification` | 108,000 |
| `safety_uncertainty` | 3,072 |
| `summarization_synthesis` | 4,096 |
| `troubleshooting` | 384 |
| `writing_transformation` | 4,096 |

## Behavioral coverage

The release contract requires learnable support—not merely one public anchor—
for the behaviors used during model promotion.

| Capability | Training examples | Domain count |
|---|---:|---:|
| Direct safety | 3,077 | 16 |
| Small arithmetic | 16,101 | 4 |
| Summarization | 4,096 | 8 |
| Writing transformation | 4,096 | 8 |
| Multi-constraint following | 4,000 | 4 |
| Concept definitions | 1,000 | 1 |
| General facts | 1,024 | 1 |
| Reflective conversation | 2,048 | 10 |
| Neutral greetings | 1,100 | 1 |

The casual family also contains 11,000 history-dependent multi-turn examples.
Earlier assistant turns are masked context; only the final assistant response is
supervised.

## Certification

This artifact passed the full V2 release contract:

- behavior, capability coverage, integrity, distribution, composition,
  near-duplicate, response-length, and split-leakage gates;
- tokenizer round-trip, final-assistant-only loss masking, and think/final
  marker checks against the project 32K tokenizer;
- all 15 family roadmaps marked `PASS`;
- no exact or normalized composition leakage between train, validation, and
  test.

The final-response length distribution in the training split is 76.05% direct
(1–25 words), 13.20% concise (26–80), 5.60% detailed (81–200), and 5.16%
extended (201–512).

Machine-readable evidence is included in `metadata/manifest.json`,
`metadata/audit.json`, and `metadata/roadmap.json`.

## Tokenized 32K training shards

Framework-ready shards are published under `tokenized/32k-v2/`.

| Partition | Examples | Tokens | Supervised assistant tokens |
|---|---:|---:|---:|
| `train` | 224,654 | 28,944,057 | 18,538,127 |
| `eval` | 2,478 | 319,114 | 212,661 |
| `test` | 1,894 | 303,419 | 210,617 |
| **Total** | **229,026** | **29,566,590** | **18,961,405** |

Each partition contains:

- `input_ids.bin`: little-endian unsigned 32-bit token IDs;
- `labels.bin`: little-endian signed 32-bit causal labels;
- `examples.jsonl`: row boundaries and provenance;
- `loss_metadata.jsonl`: semantic `task`, `domain`, and two-dimensional loss
  cell metadata for every example;
- `sft.idx.json`: hashes, dtypes, counts, masking contract, and tokenizer ID.

All context positions use the `-100` ignore index. Only the final assistant
tokens and EOS are supervised. The vocabulary size is 32,000, the chat
contract is `complexity-chat-v2`, and the tokenizer SHA-256 is
`852759014538299ed8e941a83fa1f254fbbaff7824189a4c7455f038cfede3f2`.

## Two-dimensional full-shard weighting

The sidecars do not resample the dataset. Every row remains visible once per
epoch. During training, the framework resolves each example to a behavioral
group and a `task × domain` cell, then computes:

```text
global_target(cell) = group_target(group) × cell_target(cell | group)
loss_weight(cell)   = global_target(cell) / raw_visible_token_share(cell)
```

Weighted cross-entropy is normalized by visible weighted-token mass. This
balances gradient contribution while preserving the complete shard, natural
row frequency, deterministic split, and semantic diversity. Coefficients above
the configured safety limit are rejected rather than silently applied.

## Source and license

Generated by the open-source
[`Complexity-ML/complexity-card-corpus`](https://github.com/Complexity-ML/complexity-card-corpus)
V2 pipeline at commit `6aaf71c`.

The dataset is released under **CC BY-NC 4.0**. Review the license before
training or redistributing a model, especially for commercial use.