asher577 commited on
Commit
0d71050
·
verified ·
1 Parent(s): d80236b

Non-compositional Qwen3-8B L24 warmstart data, doc-level train/val split

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: odc-by
3
+ configs:
4
+ - config_name: av_sft
5
+ data_files:
6
+ - split: train
7
+ path: av_sft_train.parquet
8
+ - split: validation
9
+ path: av_sft_val.parquet
10
+ - config_name: ar_sft
11
+ data_files:
12
+ - split: train
13
+ path: ar_sft_train.parquet
14
+ - split: validation
15
+ path: ar_sft_val.parquet
16
+ tags:
17
+ - interpretability
18
+ - activations
19
+ ---
20
+
21
+ # EasyNLA warmstart data (non-compositional, Qwen3-8B layer 24)
22
+
23
+ Supervised warm-start data for [EasyNLA](https://github.com/asherps/EasyNLA) —
24
+ train a **natural-language autoencoder** on Qwen3-8B: an activation-verbalizer
25
+ (AV) that explains a layer-24 residual activation in natural language, and an
26
+ activation-reconstructor (AR) that maps the explanation back to the activation.
27
+
28
+ Each row carries one **raw** (unnormalized) layer-24 activation captured while
29
+ Qwen3-8B read a FineFineWeb document (position ≥ 50 tokens), plus a
30
+ Claude-written "gold" explanation of what the model was representing there.
31
+
32
+ | config | split | rows | docs |
33
+ |---|---|---|---|
34
+ | `av_sft` | train | 363,961 | 36,734 |
35
+ | `av_sft` | validation | 7,307 | 737 |
36
+ | `ar_sft` | train | 363,988 | 36,734 |
37
+ | `ar_sft` | validation | 7,405 | 747 |
38
+
39
+ ## Columns
40
+
41
+ - `prompt` — chat messages for the AV (with the `<INJECT>` marker placeholder)
42
+ in `av_sft`; the AR critic prompt text in `ar_sft`
43
+ - `response` (`av_sft` only) — the gold explanation the AV imitates
44
+ - `activation_vector` — raw layer-24 residual, `list<float32>[4096]`
45
+ - `doc_id`, `n_raw_tokens`, `activation_layer`,
46
+ `detokenized_text_truncated` (the source text up to the extraction position)
47
+
48
+ Each parquet has a matching `<name>.parquet.nla_meta.yaml` **sidecar** — the
49
+ contract EasyNLA trainers assert at startup (marker token IDs, prompt
50
+ templates, `d_model`, scales). Keep them next to the parquets.
51
+
52
+ ## Splits
53
+
54
+ Document-level and deterministic: a doc goes to **validation** iff
55
+ `zlib.crc32(doc_id) % 1000 < 20` (`nla/val_split.py::is_val_doc(doc_id, 20)`,
56
+ ~2% of docs). No document's rows are split across train/validation, and the
57
+ `av_sft` / `ar_sft` configs come from disjoint document sets by construction
58
+ (stage-1 of the EasyNLA datagen pipeline).
59
+
60
+ ## Use with EasyNLA
61
+
62
+ ```bash
63
+ huggingface-cli download asher577/easynla-warmstart-data --repo-type dataset \
64
+ --local-dir <data>
65
+
66
+ python -m nla.train_sft --mode av --base-ckpt Qwen/Qwen3-8B \
67
+ --parquet <data>/av_sft_train.parquet --sidecar <data>/av_sft_train.parquet \
68
+ --heldout-parquet <data>/av_sft_val.parquet --save-dir <ckpts>/av
69
+ python -m nla.train_sft --mode ar --base-ckpt Qwen/Qwen3-8B \
70
+ --parquet <data>/ar_sft_train.parquet --sidecar <data>/ar_sft_train.parquet \
71
+ --heldout-parquet <data>/ar_sft_val.parquet --save-dir <ckpts>/ar
72
+ ```
73
+
74
+ Provenance: source text from FineFineWeb (ODC-By); explanations generated with
75
+ Claude (claude-sonnet-4-6); activations from Qwen/Qwen3-8B. The `doc_id`
76
+ strings are opaque keys from the generating pipeline.
ar_sft_train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af80520af3ddc6b0e30486d526f9f5a2188b3404699e535c144b2b392cd5fd4c
3
+ size 2893128989
ar_sft_train.parquet.nla_meta.yaml ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dataset_id: ar_sft_Qwen3-8B_L24_6a22e324__ar_sft_raw__explained__shuf42
2
+ stage: ar_sft
3
+ row_count: 247358
4
+ extraction:
5
+ base_model: Qwen/Qwen3-8B
6
+ d_model: 4096
7
+ layer_index: 24
8
+ norm: none
9
+ corpus: /workspace-vast/celeste/nla-data/finefineweb_100k.parquet
10
+ corpus_slice:
11
+ start: 0
12
+ length: 100000
13
+ positions_per_doc: 10
14
+ kind: nla_dataset
15
+ schema_version: 1
16
+ keep_debug_metadata: true
17
+ tokens:
18
+ injection_char: "\u320E"
19
+ injection_token_id: 149705
20
+ injection_left_neighbor_id: 29
21
+ injection_right_neighbor_id: 522
22
+ critic_suffix_ids:
23
+ - 1318
24
+ - 29
25
+ - 366
26
+ - 1708
27
+ - 29
28
+ prompt_templates:
29
+ actor: 'You are a meticulous AI researcher conducting an important investigation
30
+ into activation vectors from a language model. Your overall task is to describe
31
+ the semantic content of that activation vector.
32
+
33
+
34
+ We will pass the vector enclosed in <concept> tags into your context. You must
35
+ then produce an explanation for the vector, enclosed within <explanation> tags.
36
+ The explanation consists of 2-3 text snippets describing that vector.
37
+
38
+
39
+ Here is the vector:
40
+
41
+
42
+ <concept>{injection_char}</concept>
43
+
44
+
45
+ Please provide an explanation.'
46
+ critic: 'Summary of the following text: <text>{explanation}</text> <summary>'
47
+ api_summaries:
48
+ model: claude-sonnet-4-6
49
+ max_tokens: 300
50
+ temperature: 1.0
51
+ instruction_prompt: "A language model needs to predict what text comes next after\
52
+ \ a snippet which will be presented to you shortly. Identify the 2-3 most important\
53
+ \ features it would use for this prediction.\nFocus on what the language model\
54
+ \ must be \"thinking about\" at the point where the provided text ends. You should\
55
+ \ not need to reference the fact that the text is truncated/incomplete/a prefix:\
56
+ \ the language model is causal, so only sees the prefix to what it predicts and\
57
+ \ this is implicit.\nOrder features by what is most important for predicting the\
58
+ \ next tokens. Each feature should consist of a concise ~10-20 word description.\
59
+ \ Feel free to include specific textual examples inline.\n\nFeature types to consider\
60
+ \ (as inspiration, not a rigid checklist):\n- Syntactic/structural constraints:\
61
+ \ \"unclosed parenthesis requires matching close\"\n- Immediate semantic expectations:\
62
+ \ \"list promised three items but only two given\"\n- Stylistic/register patterns:\
63
+ \ \"formal academic tone maintained throughout\"\n- Narrative/argumentative momentum:\
64
+ \ \"thesis stated, supporting evidence now expected\"\n- Domain/genre signals:\
65
+ \ \"medical case history following SOAP format\"\n- Repetition/continuation patterns:\
66
+ \ \"same phrase structure repeating with variations\"\n\nThe final feature must\
67
+ \ describe the very end of the presented sequence: its role, what it's part of,\
68
+ \ and immediate constraints on what follows.\n\nFormat \u2014 IMPORTANT: keep\
69
+ \ to ~80-100 words total and ALWAYS close the tag:\n<analysis>\n[first feature\
70
+ \ \u2014 include specific examples when relevant]\n[second feature]\n[final feature:\
71
+ \ the last token, its role, immediate constraints]\n</analysis>\n\nText to analyze:\n\
72
+ \n<begin_text>{text}<end_text>"
73
+ parent_datasets:
74
+ - ar_sft_Qwen3-8B_L24_6a22e324__ar_sft_raw__explained
75
+ created_at: '2026-05-16T19:57:10.471220+00:00'
76
+ created_by: nla.datagen.stage_shuffle
77
+ git_commit: 047eb8e
ar_sft_val.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9d92622fbd51849e532d8be0db24ad20a15ac53f340e8fa6c32da2bf58e4816
3
+ size 55102932
ar_sft_val.parquet.nla_meta.yaml ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dataset_id: ar_sft_Qwen3-8B_L24_6a22e324__ar_sft_raw__explained__shuf42
2
+ stage: ar_sft
3
+ row_count: 247358
4
+ extraction:
5
+ base_model: Qwen/Qwen3-8B
6
+ d_model: 4096
7
+ layer_index: 24
8
+ norm: none
9
+ corpus: /workspace-vast/celeste/nla-data/finefineweb_100k.parquet
10
+ corpus_slice:
11
+ start: 0
12
+ length: 100000
13
+ positions_per_doc: 10
14
+ kind: nla_dataset
15
+ schema_version: 1
16
+ keep_debug_metadata: true
17
+ tokens:
18
+ injection_char: "\u320E"
19
+ injection_token_id: 149705
20
+ injection_left_neighbor_id: 29
21
+ injection_right_neighbor_id: 522
22
+ critic_suffix_ids:
23
+ - 1318
24
+ - 29
25
+ - 366
26
+ - 1708
27
+ - 29
28
+ prompt_templates:
29
+ actor: 'You are a meticulous AI researcher conducting an important investigation
30
+ into activation vectors from a language model. Your overall task is to describe
31
+ the semantic content of that activation vector.
32
+
33
+
34
+ We will pass the vector enclosed in <concept> tags into your context. You must
35
+ then produce an explanation for the vector, enclosed within <explanation> tags.
36
+ The explanation consists of 2-3 text snippets describing that vector.
37
+
38
+
39
+ Here is the vector:
40
+
41
+
42
+ <concept>{injection_char}</concept>
43
+
44
+
45
+ Please provide an explanation.'
46
+ critic: 'Summary of the following text: <text>{explanation}</text> <summary>'
47
+ api_summaries:
48
+ model: claude-sonnet-4-6
49
+ max_tokens: 300
50
+ temperature: 1.0
51
+ instruction_prompt: "A language model needs to predict what text comes next after\
52
+ \ a snippet which will be presented to you shortly. Identify the 2-3 most important\
53
+ \ features it would use for this prediction.\nFocus on what the language model\
54
+ \ must be \"thinking about\" at the point where the provided text ends. You should\
55
+ \ not need to reference the fact that the text is truncated/incomplete/a prefix:\
56
+ \ the language model is causal, so only sees the prefix to what it predicts and\
57
+ \ this is implicit.\nOrder features by what is most important for predicting the\
58
+ \ next tokens. Each feature should consist of a concise ~10-20 word description.\
59
+ \ Feel free to include specific textual examples inline.\n\nFeature types to consider\
60
+ \ (as inspiration, not a rigid checklist):\n- Syntactic/structural constraints:\
61
+ \ \"unclosed parenthesis requires matching close\"\n- Immediate semantic expectations:\
62
+ \ \"list promised three items but only two given\"\n- Stylistic/register patterns:\
63
+ \ \"formal academic tone maintained throughout\"\n- Narrative/argumentative momentum:\
64
+ \ \"thesis stated, supporting evidence now expected\"\n- Domain/genre signals:\
65
+ \ \"medical case history following SOAP format\"\n- Repetition/continuation patterns:\
66
+ \ \"same phrase structure repeating with variations\"\n\nThe final feature must\
67
+ \ describe the very end of the presented sequence: its role, what it's part of,\
68
+ \ and immediate constraints on what follows.\n\nFormat \u2014 IMPORTANT: keep\
69
+ \ to ~80-100 words total and ALWAYS close the tag:\n<analysis>\n[first feature\
70
+ \ \u2014 include specific examples when relevant]\n[second feature]\n[final feature:\
71
+ \ the last token, its role, immediate constraints]\n</analysis>\n\nText to analyze:\n\
72
+ \n<begin_text>{text}<end_text>"
73
+ parent_datasets:
74
+ - ar_sft_Qwen3-8B_L24_6a22e324__ar_sft_raw__explained
75
+ created_at: '2026-05-16T19:57:10.471220+00:00'
76
+ created_by: nla.datagen.stage_shuffle
77
+ git_commit: 047eb8e
av_sft_train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac7011a41c38b23318e2df5b895ff3b49a3e66f70e84553d184052f36879d511
3
+ size 2891503962
av_sft_train.parquet.nla_meta.yaml ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dataset_id: av_sft_Qwen3-8B_L24_6a22e324__av_sft_raw__explained__shuf42
2
+ stage: av_sft
3
+ row_count: 247261
4
+ extraction:
5
+ base_model: Qwen/Qwen3-8B
6
+ d_model: 4096
7
+ layer_index: 24
8
+ norm: none
9
+ corpus: /workspace-vast/celeste/nla-data/finefineweb_100k.parquet
10
+ corpus_slice:
11
+ start: 0
12
+ length: 100000
13
+ positions_per_doc: 10
14
+ kind: nla_dataset
15
+ schema_version: 1
16
+ keep_debug_metadata: true
17
+ tokens:
18
+ injection_char: "\u320E"
19
+ injection_token_id: 149705
20
+ injection_left_neighbor_id: 29
21
+ injection_right_neighbor_id: 522
22
+ critic_suffix_ids: null
23
+ prompt_templates:
24
+ actor: 'You are a meticulous AI researcher conducting an important investigation
25
+ into activation vectors from a language model. Your overall task is to describe
26
+ the semantic content of that activation vector.
27
+
28
+
29
+ We will pass the vector enclosed in <concept> tags into your context. You must
30
+ then produce an explanation for the vector, enclosed within <explanation> tags.
31
+ The explanation consists of 2-3 text snippets describing that vector.
32
+
33
+
34
+ Here is the vector:
35
+
36
+
37
+ <concept>{injection_char}</concept>
38
+
39
+
40
+ Please provide an explanation.'
41
+ critic: 'Summary of the following text: <text>{explanation}</text> <summary>'
42
+ api_summaries:
43
+ model: claude-sonnet-4-6
44
+ max_tokens: 300
45
+ temperature: 1.0
46
+ instruction_prompt: "A language model needs to predict what text comes next after\
47
+ \ a snippet which will be presented to you shortly. Identify the 2-3 most important\
48
+ \ features it would use for this prediction.\nFocus on what the language model\
49
+ \ must be \"thinking about\" at the point where the provided text ends. You should\
50
+ \ not need to reference the fact that the text is truncated/incomplete/a prefix:\
51
+ \ the language model is causal, so only sees the prefix to what it predicts and\
52
+ \ this is implicit.\nOrder features by what is most important for predicting the\
53
+ \ next tokens. Each feature should consist of a concise ~10-20 word description.\
54
+ \ Feel free to include specific textual examples inline.\n\nFeature types to consider\
55
+ \ (as inspiration, not a rigid checklist):\n- Syntactic/structural constraints:\
56
+ \ \"unclosed parenthesis requires matching close\"\n- Immediate semantic expectations:\
57
+ \ \"list promised three items but only two given\"\n- Stylistic/register patterns:\
58
+ \ \"formal academic tone maintained throughout\"\n- Narrative/argumentative momentum:\
59
+ \ \"thesis stated, supporting evidence now expected\"\n- Domain/genre signals:\
60
+ \ \"medical case history following SOAP format\"\n- Repetition/continuation patterns:\
61
+ \ \"same phrase structure repeating with variations\"\n\nThe final feature must\
62
+ \ describe the very end of the presented sequence: its role, what it's part of,\
63
+ \ and immediate constraints on what follows.\n\nFormat \u2014 IMPORTANT: keep\
64
+ \ to ~80-100 words total and ALWAYS close the tag:\n<analysis>\n[first feature\
65
+ \ \u2014 include specific examples when relevant]\n[second feature]\n[final feature:\
66
+ \ the last token, its role, immediate constraints]\n</analysis>\n\nText to analyze:\n\
67
+ \n<begin_text>{text}<end_text>"
68
+ parent_datasets:
69
+ - av_sft_Qwen3-8B_L24_6a22e324__av_sft_raw__explained
70
+ created_at: '2026-05-16T19:56:05.443944+00:00'
71
+ created_by: nla.datagen.stage_shuffle
72
+ git_commit: 047eb8e
av_sft_val.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f0f3deee370bec0873ac885d7b42182f3d21bdb158d237974183a29ba32eb5f
3
+ size 53923447
av_sft_val.parquet.nla_meta.yaml ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dataset_id: av_sft_Qwen3-8B_L24_6a22e324__av_sft_raw__explained__shuf42
2
+ stage: av_sft
3
+ row_count: 247261
4
+ extraction:
5
+ base_model: Qwen/Qwen3-8B
6
+ d_model: 4096
7
+ layer_index: 24
8
+ norm: none
9
+ corpus: /workspace-vast/celeste/nla-data/finefineweb_100k.parquet
10
+ corpus_slice:
11
+ start: 0
12
+ length: 100000
13
+ positions_per_doc: 10
14
+ kind: nla_dataset
15
+ schema_version: 1
16
+ keep_debug_metadata: true
17
+ tokens:
18
+ injection_char: "\u320E"
19
+ injection_token_id: 149705
20
+ injection_left_neighbor_id: 29
21
+ injection_right_neighbor_id: 522
22
+ critic_suffix_ids: null
23
+ prompt_templates:
24
+ actor: 'You are a meticulous AI researcher conducting an important investigation
25
+ into activation vectors from a language model. Your overall task is to describe
26
+ the semantic content of that activation vector.
27
+
28
+
29
+ We will pass the vector enclosed in <concept> tags into your context. You must
30
+ then produce an explanation for the vector, enclosed within <explanation> tags.
31
+ The explanation consists of 2-3 text snippets describing that vector.
32
+
33
+
34
+ Here is the vector:
35
+
36
+
37
+ <concept>{injection_char}</concept>
38
+
39
+
40
+ Please provide an explanation.'
41
+ critic: 'Summary of the following text: <text>{explanation}</text> <summary>'
42
+ api_summaries:
43
+ model: claude-sonnet-4-6
44
+ max_tokens: 300
45
+ temperature: 1.0
46
+ instruction_prompt: "A language model needs to predict what text comes next after\
47
+ \ a snippet which will be presented to you shortly. Identify the 2-3 most important\
48
+ \ features it would use for this prediction.\nFocus on what the language model\
49
+ \ must be \"thinking about\" at the point where the provided text ends. You should\
50
+ \ not need to reference the fact that the text is truncated/incomplete/a prefix:\
51
+ \ the language model is causal, so only sees the prefix to what it predicts and\
52
+ \ this is implicit.\nOrder features by what is most important for predicting the\
53
+ \ next tokens. Each feature should consist of a concise ~10-20 word description.\
54
+ \ Feel free to include specific textual examples inline.\n\nFeature types to consider\
55
+ \ (as inspiration, not a rigid checklist):\n- Syntactic/structural constraints:\
56
+ \ \"unclosed parenthesis requires matching close\"\n- Immediate semantic expectations:\
57
+ \ \"list promised three items but only two given\"\n- Stylistic/register patterns:\
58
+ \ \"formal academic tone maintained throughout\"\n- Narrative/argumentative momentum:\
59
+ \ \"thesis stated, supporting evidence now expected\"\n- Domain/genre signals:\
60
+ \ \"medical case history following SOAP format\"\n- Repetition/continuation patterns:\
61
+ \ \"same phrase structure repeating with variations\"\n\nThe final feature must\
62
+ \ describe the very end of the presented sequence: its role, what it's part of,\
63
+ \ and immediate constraints on what follows.\n\nFormat \u2014 IMPORTANT: keep\
64
+ \ to ~80-100 words total and ALWAYS close the tag:\n<analysis>\n[first feature\
65
+ \ \u2014 include specific examples when relevant]\n[second feature]\n[final feature:\
66
+ \ the last token, its role, immediate constraints]\n</analysis>\n\nText to analyze:\n\
67
+ \n<begin_text>{text}<end_text>"
68
+ parent_datasets:
69
+ - av_sft_Qwen3-8B_L24_6a22e324__av_sft_raw__explained
70
+ created_at: '2026-05-16T19:56:05.443944+00:00'
71
+ created_by: nla.datagen.stage_shuffle
72
+ git_commit: 047eb8e