TypeScript commited on
Commit
a84ea03
·
0 Parent(s):

FastBrain-Instruct

Browse files
Files changed (6) hide show
  1. .gitattributes +62 -0
  2. README.md +162 -0
  3. test.jsonl +3 -0
  4. test.parquet +3 -0
  5. train.jsonl +3 -0
  6. train.parquet +3 -0
.gitattributes ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.avro filter=lfs diff=lfs merge=lfs -text
4
+ *.bin filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
7
+ *.ftz filter=lfs diff=lfs merge=lfs -text
8
+ *.gz filter=lfs diff=lfs merge=lfs -text
9
+ *.h5 filter=lfs diff=lfs merge=lfs -text
10
+ *.joblib filter=lfs diff=lfs merge=lfs -text
11
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
13
+ *.mds filter=lfs diff=lfs merge=lfs -text
14
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
+ *.model filter=lfs diff=lfs merge=lfs -text
16
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
17
+ *.npy filter=lfs diff=lfs merge=lfs -text
18
+ *.npz filter=lfs diff=lfs merge=lfs -text
19
+ *.onnx filter=lfs diff=lfs merge=lfs -text
20
+ *.ot filter=lfs diff=lfs merge=lfs -text
21
+ *.parquet filter=lfs diff=lfs merge=lfs -text
22
+ *.pb filter=lfs diff=lfs merge=lfs -text
23
+ *.pickle filter=lfs diff=lfs merge=lfs -text
24
+ *.pkl filter=lfs diff=lfs merge=lfs -text
25
+ *.pt filter=lfs diff=lfs merge=lfs -text
26
+ *.pth filter=lfs diff=lfs merge=lfs -text
27
+ *.rar filter=lfs diff=lfs merge=lfs -text
28
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
29
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
31
+ *.tar filter=lfs diff=lfs merge=lfs -text
32
+ *.tflite filter=lfs diff=lfs merge=lfs -text
33
+ *.tgz filter=lfs diff=lfs merge=lfs -text
34
+ *.wasm filter=lfs diff=lfs merge=lfs -text
35
+ *.xz filter=lfs diff=lfs merge=lfs -text
36
+ *.zip filter=lfs diff=lfs merge=lfs -text
37
+ *.zst filter=lfs diff=lfs merge=lfs -text
38
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
39
+ # Audio files - uncompressed
40
+ *.pcm filter=lfs diff=lfs merge=lfs -text
41
+ *.sam filter=lfs diff=lfs merge=lfs -text
42
+ *.raw filter=lfs diff=lfs merge=lfs -text
43
+ # Audio files - compressed
44
+ *.aac filter=lfs diff=lfs merge=lfs -text
45
+ *.flac filter=lfs diff=lfs merge=lfs -text
46
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
47
+ *.ogg filter=lfs diff=lfs merge=lfs -text
48
+ *.wav filter=lfs diff=lfs merge=lfs -text
49
+ # Image files - uncompressed
50
+ *.bmp filter=lfs diff=lfs merge=lfs -text
51
+ *.gif filter=lfs diff=lfs merge=lfs -text
52
+ *.png filter=lfs diff=lfs merge=lfs -text
53
+ *.tiff filter=lfs diff=lfs merge=lfs -text
54
+ # Image files - compressed
55
+ *.jpg filter=lfs diff=lfs merge=lfs -text
56
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
57
+ *.webp 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
62
+ test.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: other
5
+ license_name: mixed-upstream-licenses
6
+ task_categories:
7
+ - text-classification
8
+ - zero-shot-classification
9
+ task_ids:
10
+ - intent-classification
11
+ - multi-class-classification
12
+ tags:
13
+ - fastbrain
14
+ - system-1
15
+ - non-autoregressive
16
+ - function-calling
17
+ - tool-use
18
+ - routing
19
+ - synthetic
20
+ - composite
21
+ - aggregation
22
+ - decontaminated
23
+ source_datasets:
24
+ - glaiveai/glaive-function-calling-v2
25
+ - NousResearch/hermes-function-calling-v1
26
+ - nvidia/Nemotron-SFT-Agentic-v2
27
+ - MaziyarPanahi/AgentToolDecisions-180K
28
+ - AnishJoshi/nl2bash-custom
29
+ - burak29/git-natural-language-commands
30
+ - AmazonScience/massive
31
+ - google-research-datasets/schema_guided_dstc8
32
+ size_categories:
33
+ - 100K<n<1M
34
+ configs:
35
+ - config_name: default
36
+ data_files:
37
+ - split: train
38
+ path: train.parquet
39
+ - split: test
40
+ path: test.parquet
41
+ ---
42
+
43
+ # ⚡ FastBrain-Instruct: Aggregated Fine-Tuning Corpus for System 1 Decision Models
44
+
45
+ [![Data Origin](https://img.shields.io/badge/Origin-Aggregated%20%26%20Reformatted-amber.svg)](#️-provenance-not-an-original-dataset)
46
+ [![Samples](https://img.shields.io/badge/Samples-108%2C278-purple)](#-statistics)
47
+ [![Decontaminated](https://img.shields.io/badge/Benchmark-Decontaminated-blue)](#-benchmark-exclusion--decontamination)
48
+
49
+ > [!WARNING]
50
+ > ### ⚠️ Provenance: not an original dataset
51
+ >
52
+ > **FastBrain-Instruct is NOT written from scratch.** It aggregates existing open datasets, reformats them into one choice/routing schema, removes finance content, deduplicates, and decontaminates against public decision benchmarks. All query text and labels come from the upstream sources below (except 25 maintainer-written DevOps templates).
53
+ >
54
+ > | Upstream source | Author | License | Rows (train / test) |
55
+ > | :--- | :--- | :--- | ---: |
56
+ > | [Schema-Guided Dialogue (SGD)](https://github.com/google-research-datasets/dstc8-schema-guided-dialogue) | Google Research (Rastogi et al., 2020) | CC BY-SA 4.0 | 34,455 / 3,889 |
57
+ > | [Nemotron-SFT-Agentic-v2](https://huggingface.co/datasets/nvidia/Nemotron-SFT-Agentic-v2), via the `tool_selection` subset of [AgentToolDecisions-180K](https://huggingface.co/datasets/MaziyarPanahi/AgentToolDecisions-180K) | NVIDIA; transformed by Maziyar Panahi | CC BY 4.0 | 32,500 / 3,548 |
58
+ > | [MASSIVE](https://huggingface.co/datasets/AmazonScience/massive) (en, via `mteb/amazon_massive_intent`) | Amazon Science (FitzGerald et al., 2022) | CC BY 4.0 | 14,264 / 1,531 |
59
+ > | [Glaive Function Calling v2](https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2) | Glaive AI | Apache 2.0 | 11,575 / 1,305 |
60
+ > | [NL2Bash](https://huggingface.co/datasets/AnishJoshi/nl2bash-custom) | Lin et al., 2018 (HF mirror by AnishJoshi) | see source | 2,809 / 345 |
61
+ > | [Hermes Function Calling v1](https://huggingface.co/datasets/NousResearch/hermes-function-calling-v1) | NousResearch | Apache 2.0 | 1,015 / 132 |
62
+ > | [Git natural-language commands](https://huggingface.co/datasets/burak29/git-natural-language-commands) | burak29 | see source | 810 / 75 |
63
+ > | DevOps / terminal templates | maintainer | Apache 2.0 | 22 / 3 |
64
+ >
65
+ > Glaive v2 and Nemotron-SFT-Agentic-v2 are themselves synthetically generated. Users must comply with each upstream license; SGD is CC BY-SA 4.0 (share-alike).
66
+
67
+ ---
68
+
69
+ ## 📌 What it is
70
+
71
+ Each row is a single decision: given a `query` (a user request, or for agent rows the recent conversation) and a list of candidate `choices` (name + description), pick the correct `target`. The format targets non-autoregressive "System 1" decision heads (e.g., the `JointSchemaHead` design used by Cloudflare Clef / Clef-Flash) that score candidates in one forward pass.
72
+
73
+ Two domains, balanced 50/50:
74
+ - **`code_mechanical`** — tool / function selection (Glaive, Hermes), multi-tool agent next-tool selection (Nemotron), terminal utility selection (NL2Bash), git subcommand selection, DevOps templates.
75
+ - **`daily_assistant`** — intent selection for voice-assistant and service dialogues (MASSIVE, SGD).
76
+
77
+ No model trained on this dataset is released, and no benchmark results are claimed.
78
+
79
+ ## 🚫 Benchmark exclusion & decontamination
80
+
81
+ This dataset is intended for training models that will be compared on the benchmarks used in the Cloudflare Clef / Jev Decision Index table. Therefore:
82
+
83
+ 1. **No benchmark is used as a source.** Excluded entirely: BFCL, ToolRet and all 35 of its source datasets (incl. APIGen/xLAM, ToolACE, ToolBench, Gorilla, MetaTool, API-Bank, …), API-Bank, When2Call (and derived data such as the When2Call part of AgentToolDecisions), BANKING77, CLINC150, BRIGHT, Amazon ESCI, PhishNChips.
84
+ 2. **Text-level decontamination.** Every query (for agent rows: every user message) was checked against the texts of BFCL v3, ToolRet-Queries (35 subsets), When2Call (all files), API-Bank (all files), BANKING77 and CLINC150 (all configs). A row is removed on a normalized exact match **or** any shared 10-word n-gram. 2,674 rows were removed this way (e.g., Glaive: 899 ToolRet, 470 BFCL, 333 When2Call matches; SGD: 420 BFCL matches; MASSIVE: 212 CLINC150 matches).
85
+
86
+ Not checked at text level: Home appliances (no public copy found), BRIGHT, Amazon ESCI, PhishNChips (different domains from all sources used).
87
+
88
+ ## 🔧 Processing
89
+
90
+ 1. **Extraction**
91
+ - Glaive v2: all 112,960 rows scanned; the user turn right before the first `<functioncall>` is the query; candidates are the tools listed in that sample's system prompt.
92
+ - Hermes v1: first human turn; candidates are that sample's tools.
93
+ - Nemotron agentic: conversation rendered as `role: content` lines (last 1,500 chars); candidates are all tools available to the agent (5–30).
94
+ - NL2Bash: only single, non-compound commands (no pipes, `;`, `&&`, substitutions, loops); target is the utility name; `find` capped at 1,500 rows.
95
+ - SGD: user turns where a service's active intent changes; candidates are the intents of that service plus intents from other services, with SGD's own intent descriptions.
96
+ - MASSIVE: all splits; description generated from the label name.
97
+ 2. **Candidates**: at least 5 per row; when a sample has fewer own candidates, random distractors from the same source are added, excluding names that heavily overlap with the target (token Jaccard ≥ 0.5).
98
+ 3. **Finance removal**: MASSIVE `qa_currency`, `qa_stock`; SGD `Banks_*` and `Payment_*` services.
99
+ 4. **Deduplication**: normalized exact `query` duplicates removed; queries with conflicting labels dropped (1,410).
100
+ 5. **Balancing**: the larger domain is downsampled (largest source first) to match the smaller one.
101
+ 6. **Split**: random 90/10 over unique queries; no `query` appears in both splits.
102
+
103
+ ## 📊 Statistics
104
+
105
+ | | Train | Test | Total |
106
+ | :--- | ---: | ---: | ---: |
107
+ | **Rows** | **97,450** | **10,828** | **108,278** |
108
+ | `code_mechanical` | — | — | 54,139 (50%) |
109
+ | `daily_assistant` | — | — | 54,139 (50%) |
110
+ | Choices per row | 5–30 (median 5) | | |
111
+ | Distinct targets | | | 5,681 |
112
+
113
+ ## ⚠️ Limitations
114
+
115
+ - **Easy distractors in some sources**: Glaive and NL2Bash rows usually have only one "own" candidate, so the other 4 are random and often unrelated.
116
+ - **Near-duplicates remain**: templated queries (Glaive, SGD) differing only in entities are kept; only exact duplicates were removed.
117
+ - **Weak descriptions**: MASSIVE descriptions are generated from label names (e.g., "User intention to play music"); Nemotron tool descriptions are kept as-is.
118
+ - **NL2Bash skew**: `find` dominates the terminal subset even after capping.
119
+ - **Decontamination is lexical**: paraphrased benchmark items would not be caught.
120
+
121
+ ---
122
+
123
+ ## 🛠️ Quickstart
124
+
125
+ ```python
126
+ from datasets import load_dataset
127
+
128
+ ds = load_dataset("TypeScript/FastBrain-Instruct")
129
+ print(ds["train"][0])
130
+ ```
131
+
132
+ | Field | Type | Description |
133
+ | :--- | :--- | :--- |
134
+ | `id` | string | Row id |
135
+ | `domain` | string | `code_mechanical` or `daily_assistant` |
136
+ | `category` | string | e.g. `api_tool_routing`, `agent_tool_selection`, `terminal_command`, `service_dialogue` |
137
+ | `query` | string | User request (or rendered recent conversation for agent rows) |
138
+ | `target` | string | Correct choice name |
139
+ | `choices` | list of `{name, description}` | Candidates, including `target` |
140
+ | `source` | string | Upstream source |
141
+
142
+ ## ⚖️ Upstream Attribution
143
+
144
+ - **Google Research** — Schema-Guided Dialogue (Rastogi et al., AAAI 2020), CC BY-SA 4.0.
145
+ - **NVIDIA** — Nemotron-SFT-Agentic-v2, CC BY 4.0; decision-format transformation by **Maziyar Panahi** (AgentToolDecisions-180K).
146
+ - **Amazon Science** — MASSIVE (FitzGerald et al., 2022), CC BY 4.0.
147
+ - **Glaive AI** — Glaive Function Calling v2.
148
+ - **NousResearch** — Hermes Function Calling v1.
149
+ - **Lin et al.** — NL2Bash (LREC 2018).
150
+ - **burak29** — Git natural-language commands.
151
+
152
+ ## 📜 Citation
153
+
154
+ ```bibtex
155
+ @dataset{fastbrain_instruct_2026,
156
+ author = {TypeScript},
157
+ title = {FastBrain-Instruct: Aggregated Fine-Tuning Corpus for System 1 Decision Models},
158
+ year = {2026},
159
+ publisher = {Hugging Face},
160
+ howpublished = {https://huggingface.co/datasets/TypeScript/FastBrain-Instruct}
161
+ }
162
+ ```
test.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99a90d09d82e004a99201ec7d39cfb41ebe962c9a36030552dc6b55e64984377
3
+ size 18416636
test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:363316c2aea87e7c1d379717b8340d18eaf8cbca00db41a9df61378aa19f23f6
3
+ size 5347034
train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f02bb8abb6d2234c7cd04be0f0a2dce078e9e2ead7a086e3b91aaf4a82451a4b
3
+ size 167557684
train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:725729ef2cc6078e3e27a2f99c15005e668af30089aa7d7b08ab37250d2c4d19
3
+ size 56725669