yafitzdev commited on
Commit
bd2a898
·
verified ·
1 Parent(s): 7eed9fe

Publish Nomos V1 specialist training pairs and provenance

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. README.md +85 -0
  3. provenance.json +76 -0
  4. train.jsonl +3 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ train.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Nomos V1 Training Pairs
3
+ license: other
4
+ license_name: mixed-source-research-preview
5
+ language:
6
+ - en
7
+ task_categories:
8
+ - sentence-similarity
9
+ size_categories:
10
+ - 10K<n<100K
11
+ tags:
12
+ - text
13
+ - tool-routing
14
+ - agent-routing
15
+ - retrieval
16
+ - sentence-transformers
17
+ - nomos
18
+ configs:
19
+ - config_name: default
20
+ data_files:
21
+ - split: train
22
+ path: train.jsonl
23
+ ---
24
+
25
+ # Nomos V1 training pairs
26
+
27
+ This is the **40,181-row training-pair snapshot for the final specialist branch** of [nomos-v1-nano-g1](https://huggingface.co/yafitzdev/nomos-v1-nano-g1), a CPU-runnable embedding model that ranks an agent's legal tools for its next step. Each row contains the exact two text fields passed to the branch's sentence-transformer trainer:
28
+
29
+ | Column | Meaning |
30
+ |---|---|
31
+ | `anchor` | Serialized agent objective and decision state (the query). |
32
+ | `positive` | Serialized metadata for one acceptable tool (the candidate). |
33
+
34
+ The model on the Hub is a **90% base-router / 10% specialist weight interpolation**. This dataset snapshots the specialist branch's final training input. The base router was trained in earlier stages; **this dataset alone does not reproduce the entire released checkpoint**. It contains no evaluation split or negative candidates.
35
+
36
+ ## Size and composition
37
+
38
+ | Source cohort | Training rows |
39
+ |---|---:|
40
+ | Generic portability replay | 20,000 |
41
+ | Frozen agentic states | 4,185 |
42
+ | ToolRet-derived agentic states | 4,096 |
43
+ | Agentic transitions | 3,400 |
44
+ | Agentic contrasts | 3,400 |
45
+ | Balanced hard subset | 5,100 |
46
+ | **Total** | **40,181** |
47
+
48
+ The 40,181 rows contain **35,812 distinct `(anchor, positive)` pairs** and **33,549 distinct anchors**. Repeated rows are retained because the trainer consumed the selected rows without deduplication. Cohorts are concatenated in the order above, with rows in their original source order.
49
+
50
+ The ToolRet-derived cohort is based on [ToolRet-Training-20w](https://huggingface.co/datasets/mangopy/ToolRet-Training-20w). The other cohorts are Nomos-generated routing states. The balanced hard subset was selected from a larger scaling cohort. The text contains synthetic task and tool descriptions, including examples derived from an external tool-retrieval dataset.
51
+
52
+ ## Selection and provenance
53
+
54
+ The snapshot was rebuilt with the training code's `tools.train_dense_router._pairs` function and checked against the specialist's `nomos_training_manifest.json`:
55
+
56
+ 1. Read the six source JSONL files in training-manifest order.
57
+ 2. Keep rows with `evaluation_partition == "train"`, excluding `task_kind == "verify"`.
58
+ 3. Require at least one `label.acceptable_tools` entry and resolve its first tool in the row's registry.
59
+ 4. Serialize the row with `nomos.dense_router.query_document` and that tool with `nomos.dense_router.candidate_document`.
60
+ 5. Keep at most 20,000 selected rows per input file.
61
+
62
+ The branch used `MultipleNegativesRankingLoss`, one epoch, batch size 64, learning rate 2e-6, and seed 20260824. The training code used a `NO_DUPLICATES` batch sampler; repeated rows in this file therefore do not imply identical examples were placed together in the same batch.
63
+
64
+ [`provenance.json`](https://huggingface.co/datasets/yafitzdev/nomos-v1/blob/main/provenance.json) records the source-file SHA-256 hashes and byte sizes, exact row ranges and counts, extraction settings, model checkpoint reference, and the SHA-256 of `train.jsonl`. It identifies the **local source snapshots**, which are not included here. The published model also includes its inherited training manifest and final interpolation manifest.
65
+
66
+ ## Use
67
+
68
+ ```python
69
+ from datasets import load_dataset
70
+
71
+ pairs = load_dataset("yafitzdev/nomos-v1", split="train")
72
+ print(pairs[0]["anchor"])
73
+ print(pairs[0]["positive"])
74
+ ```
75
+
76
+ For sentence-transformer training, use the `anchor` and `positive` columns as the positive query/candidate pair. The dataset is intended for inspection and research on tool-routing embeddings. It should not be treated as an independent test set or as a complete record of all earlier training stages.
77
+
78
+ ## Evaluation and limits
79
+
80
+ The [model card](https://huggingface.co/yafitzdev/nomos-v1-nano-g1) reports frozen routing evaluations separately. No benchmark items are packaged here. The data is predominantly synthetic and shaped by the Nomos serializer and source registries, so performance on new agents and tool inventories must be measured independently.
81
+
82
+ ## Source and reuse
83
+
84
+ This is a mixed-source research snapshot. The ToolRet-derived portion cites the upstream [dataset](https://huggingface.co/datasets/mangopy/ToolRet-Training-20w) and [project](https://github.com/mangopy/tool-retrieval-benchmark). The `mixed-source-research-preview` label describes the bundle's status; it is **not a blanket permission to reuse upstream material**. Review the terms of each upstream source before redistribution or commercial use.
85
+
provenance.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "dataset_scope": "Final 40,181-pair specialist branch of the published 90/10 interpolated checkpoint; excludes earlier base-router stages and evaluation splits.",
4
+ "model_repo": "yafitzdev/nomos-v1-nano-g1",
5
+ "model_revision_at_packaging": "c9e8d64e7826556657a77f263696653e9ad4a649",
6
+ "model_safetensors_sha256": "429fb204e4a38c1514c5a232376600fb4d3c6d2e82e9e27951cdfdeada27fca8",
7
+ "training_manifest_sha256": "f84f32e7fe4e708fee8ca3200453290835d32a20a046813fe6439b3493ddc432",
8
+ "extraction": {
9
+ "code": "tools/train_dense_router.py::_pairs",
10
+ "order": "Input files in training-manifest order; selected rows in file order.",
11
+ "filter": "evaluation_partition == 'train'; task_kind != 'verify'; first label.acceptable_tools resolves in tool_registry",
12
+ "anchor": "nomos.dense_router.query_document(row)",
13
+ "positive": "nomos.dense_router.candidate_document(first acceptable tool)",
14
+ "limit_per_input": 20000,
15
+ "loss": "MultipleNegativesRankingLoss",
16
+ "epochs": 1.0,
17
+ "batch_size": 64,
18
+ "learning_rate": 2e-06,
19
+ "seed": 20260824
20
+ },
21
+ "rows": 40181,
22
+ "unique_pair_texts": 35812,
23
+ "unique_anchor_texts": 33549,
24
+ "train_jsonl_sha256": "0d3062a4df6f3b868cf99c8428b8c817f6bd41fef99fb5dcd3cbc18f1841ec3a",
25
+ "train_jsonl_bytes": 71537955,
26
+ "sources": [
27
+ {
28
+ "path_in_local_training_workspace": "data/generated/nomos_generic_portability_100000.jsonl",
29
+ "source_sha256": "f8d9d232b318a31c66c032cb614f3d5a46080691ee9d27859ddb99ad9ae52106",
30
+ "source_bytes": 1661799286,
31
+ "selected_pairs": 20000,
32
+ "train_row_start_inclusive": 0,
33
+ "train_row_end_exclusive": 20000
34
+ },
35
+ {
36
+ "path_in_local_training_workspace": "data/generated/nomos_agentic_v2_frozen_10000.jsonl",
37
+ "source_sha256": "1b4578e6121da5d8f9ba896eeaffec7ad5e6f932af461ddf90a9bf15de964bba",
38
+ "source_bytes": 977217770,
39
+ "selected_pairs": 4185,
40
+ "train_row_start_inclusive": 20000,
41
+ "train_row_end_exclusive": 24185
42
+ },
43
+ {
44
+ "path_in_local_training_workspace": "data/generated/nomos_toolret_agentic_v1_4096.jsonl",
45
+ "source_sha256": "cad26a69538aeff794ebaa2a254d6cc3998def95f89e6f457f6b84132d4c267a",
46
+ "source_bytes": 55853793,
47
+ "selected_pairs": 4096,
48
+ "train_row_start_inclusive": 24185,
49
+ "train_row_end_exclusive": 28281
50
+ },
51
+ {
52
+ "path_in_local_training_workspace": "data/generated/nomos_agentic_transitions_v3_3400.jsonl",
53
+ "source_sha256": "3a90839b1f2be6288ad7ba9f73ecd06598e3df0ce33c237876608a0908a5ea2e",
54
+ "source_bytes": 45511441,
55
+ "selected_pairs": 3400,
56
+ "train_row_start_inclusive": 28281,
57
+ "train_row_end_exclusive": 31681
58
+ },
59
+ {
60
+ "path_in_local_training_workspace": "data/generated/nomos_agentic_contrasts_v4_3400.jsonl",
61
+ "source_sha256": "be983b9183e1d70f0c1eff067b98ef732c8b9ceb3407cb4b3832e83005a7dd7f",
62
+ "source_bytes": 44586360,
63
+ "selected_pairs": 3400,
64
+ "train_row_start_inclusive": 31681,
65
+ "train_row_end_exclusive": 35081
66
+ },
67
+ {
68
+ "path_in_local_training_workspace": "data/generated/nomos_scaling_targeted_v1_balanced_hard_complete.jsonl",
69
+ "source_sha256": "bde2b866170349c0f2883f6a265aae19bdab35198aa213cc5f7433ba4d332896",
70
+ "source_bytes": 365748176,
71
+ "selected_pairs": 5100,
72
+ "train_row_start_inclusive": 35081,
73
+ "train_row_end_exclusive": 40181
74
+ }
75
+ ]
76
+ }
train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d3062a4df6f3b868cf99c8428b8c817f6bd41fef99fb5dcd3cbc18f1841ec3a
3
+ size 71537955