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 4 |
+
# CommandNet Military Science Dataset (1900-1999)
|
| 5 |
+
|
| 6 |
+
This repository contains a synthetic, instruction-tuning dataset generator and a generated dataset built for **Unsloth fine-tuning** workflows.
|
| 7 |
+
|
| 8 |
+
The dataset is designed around a strict persona voice (ruthless, militaristic, tactical, arrogant, analytical) and focuses on **historical/doctrinal military analysis** with explicit:
|
| 9 |
+
|
| 10 |
+
- Causal Analysis
|
| 11 |
+
- Counterfactual Analysis
|
| 12 |
+
|
| 13 |
+
It includes both conventional warfare and asymmetric contexts (insurgencies, militias, and counterinsurgency vs larger conventional forces), constrained to the historical window **1900-1999**.
|
| 14 |
+
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
## Dataset Goals
|
| 18 |
+
|
| 19 |
+
- Produce **1,000+ samples** (default: 1,400)
|
| 20 |
+
- Maintain a consistent strategic persona style
|
| 21 |
+
- Cover core military science dimensions in depth:
|
| 22 |
+
- operational art
|
| 23 |
+
- logistics and sustainment
|
| 24 |
+
- command and control (C2)
|
| 25 |
+
- intelligence cycle and ISR pressure
|
| 26 |
+
- deception and disruption
|
| 27 |
+
- maneuver vs attrition dynamics
|
| 28 |
+
- civil-military and legitimacy constraints
|
| 29 |
+
- tempo and decision-cycle pressure
|
| 30 |
+
- Include **asymmetric warfare** in substantial volume
|
| 31 |
+
- Keep all samples anchored to historical doctrine periods between 1900 and 1999
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## Output Schema (Default: ShareGPT)
|
| 36 |
+
|
| 37 |
+
The default output (`--schema sharegpt`) is directly suitable for common Unsloth chat fine-tuning pipelines.
|
| 38 |
+
|
| 39 |
+
Each line is a JSON object like:
|
| 40 |
+
|
| 41 |
+
```json
|
| 42 |
+
{
|
| 43 |
+
"id": "skynet-000001",
|
| 44 |
+
"conversations": [
|
| 45 |
+
{"from": "system", "value": "..."},
|
| 46 |
+
{"from": "human", "value": "..."},
|
| 47 |
+
{"from": "gpt", "value": "..."}
|
| 48 |
+
],
|
| 49 |
+
"metadata": {
|
| 50 |
+
"year": 1966,
|
| 51 |
+
"decade": "1960s",
|
| 52 |
+
"warfare_type": "conventional",
|
| 53 |
+
"doctrine_family": "Amphibious Operational Sequencing",
|
| 54 |
+
"military_science_tags": ["..."]
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
## Record Design (Raw Schema)
|
| 60 |
+
|
| 61 |
+
- `id`
|
| 62 |
+
- `year`
|
| 63 |
+
- `decade`
|
| 64 |
+
- `year_range`
|
| 65 |
+
- `warfare_type` (`conventional`, `insurgency`, `counterinsurgency`, `hybrid`)
|
| 66 |
+
- `doctrine_family`
|
| 67 |
+
- `force_asymmetry_index`
|
| 68 |
+
- `scenario_context`
|
| 69 |
+
- `terrain`
|
| 70 |
+
- `weather`
|
| 71 |
+
- `objective`
|
| 72 |
+
- `adversary_posture`
|
| 73 |
+
- `constraint`
|
| 74 |
+
- `prompt`
|
| 75 |
+
- `response`
|
| 76 |
+
- `causal_analysis`
|
| 77 |
+
- `counterfactual_analysis`
|
| 78 |
+
- `style_tags`
|
| 79 |
+
- `military_science_tags`
|
| 80 |
+
- `source_refs`
|
| 81 |
+
- `quality_flags`
|
| 82 |
+
|
| 83 |
+
---
|
| 84 |
+
|
| 85 |
+
## Doctrine Coverage
|
| 86 |
+
|
| 87 |
+
The generator samples from doctrine families including:
|
| 88 |
+
|
| 89 |
+
- Industrial Attrition and Trench Penetration
|
| 90 |
+
- Infiltration and Decentralized Assault Groups
|
| 91 |
+
- Deep Operation
|
| 92 |
+
- Blitz and Mobile Combined Arms
|
| 93 |
+
- Amphibious Operational Sequencing
|
| 94 |
+
- Protracted People's War
|
| 95 |
+
- Population-Centric Counterinsurgency
|
| 96 |
+
- Maneuver Warfare and Decision-Cycle Pressure (OODA-linked)
|
| 97 |
+
- AirLand Battle
|
| 98 |
+
- Deterrence and Escalation Management
|
| 99 |
+
|
| 100 |
+
Each doctrine has active year bounds and compatible warfare types.
|
| 101 |
+
|
| 102 |
+
---
|
| 103 |
+
|
| 104 |
+
## Quality Controls
|
| 105 |
+
|
| 106 |
+
Built-in checks include:
|
| 107 |
+
|
| 108 |
+
- Section presence checks in responses:
|
| 109 |
+
- `Causal Analysis:`
|
| 110 |
+
- `Counterfactual Analysis:`
|
| 111 |
+
- `Command Verdict:`
|
| 112 |
+
- Historical bound checks (`1900-1999`)
|
| 113 |
+
- Minimum response-length check
|
| 114 |
+
- Duplicate fingerprint suppression using scenario keys:
|
| 115 |
+
- year
|
| 116 |
+
- warfare type
|
| 117 |
+
- doctrine
|
| 118 |
+
- terrain
|
| 119 |
+
- objective
|
| 120 |
+
- adversary posture
|
| 121 |
+
|
| 122 |
+
If duplicates become excessive, generation fails fast with a clear error.
|
| 123 |
+
|
| 124 |
+
---
|
| 125 |
+
|
| 126 |
+
## Unsloth Integration Notes
|
| 127 |
+
|
| 128 |
+
For chat SFT with Unsloth, default `sharegpt` output is the intended path.
|
| 129 |
+
|
| 130 |
+
Typical flow:
|
| 131 |
+
|
| 132 |
+
1. Load JSONL in your training notebook/script.
|
| 133 |
+
2. Map `conversations` according to your model chat template.
|
| 134 |
+
3. Keep the system prompt if you want style-locking behavior.
|
| 135 |
+
4. Train with your normal Unsloth SFT trainer config.
|
| 136 |
+
|
| 137 |
+
If your pipeline expects `instruction/input/output`, use `--schema alpaca`.
|
| 138 |
+
|
| 139 |
+
---
|
| 140 |
+
|
| 141 |
+
## Safety and Scope
|
| 142 |
+
|
| 143 |
+
This dataset is for **historical and doctrinal analysis simulation**. It is not intended to provide real-world modern operational attack guidance.
|
| 144 |
+
|
| 145 |
+
Design constraints intentionally emphasize:
|
| 146 |
+
|
| 147 |
+
- historical framing
|
| 148 |
+
- abstract operational reasoning
|
| 149 |
+
- doctrinal critique and counterfactuals
|
| 150 |
+
|
| 151 |
+
---
|