Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- cybersecurity
|
| 9 |
+
- document-classification
|
| 10 |
+
- sft
|
| 11 |
+
- lora
|
| 12 |
+
size_categories:
|
| 13 |
+
- 10K<n<100K
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Beam Training Data
|
| 17 |
+
|
| 18 |
+
Supervised fine-tuning (SFT) dataset used to train the TorchSight Beam model — a cybersecurity document classifier based on Qwen 3.5 27B.
|
| 19 |
+
|
| 20 |
+
## Dataset
|
| 21 |
+
|
| 22 |
+
- **74,441 training samples** (`sft/train_alpaca.jsonl`)
|
| 23 |
+
- **3,917 validation samples** (`sft/val_alpaca.jsonl`)
|
| 24 |
+
- Alpaca format: `instruction`, `input`, `output`
|
| 25 |
+
- Balanced across 7 categories + subcategories
|
| 26 |
+
|
| 27 |
+
## Sources (all verified safe for AI training)
|
| 28 |
+
|
| 29 |
+
| Source | License | Content |
|
| 30 |
+
|---|---|---|
|
| 31 |
+
| AI4Privacy (300K PII) | Apache 2.0 | PII samples |
|
| 32 |
+
| Enron (FERC release) | Public domain | Email/financial data |
|
| 33 |
+
| NVD/NIST | Public domain (US Gov) | Vulnerability descriptions |
|
| 34 |
+
| SecLists | MIT | Security payloads |
|
| 35 |
+
| PayloadsAllTheThings | MIT | Attack payloads |
|
| 36 |
+
| Prompt Injection datasets | Apache 2.0 | Injection attacks |
|
| 37 |
+
| GHSA | CC-BY 4.0 | Security advisories |
|
| 38 |
+
| Loghub | Research-free | System logs (safe class) |
|
| 39 |
+
| Synthetic | Generated | Hard negatives, edge cases |
|
| 40 |
+
|
| 41 |
+
## Structure
|
| 42 |
+
|
| 43 |
+
- `sft/` — Final SFT training files (Alpaca format)
|
| 44 |
+
- `processed/` — Intermediate processed files from each source
|
| 45 |
+
- `synthetic/` — Generated synthetic data (hard negatives, edge cases)
|
| 46 |
+
|
| 47 |
+
## Training
|
| 48 |
+
|
| 49 |
+
```bash
|
| 50 |
+
# LoRA training on Qwen 3.5 27B
|
| 51 |
+
python train_lora.py # r=128, alpha=256, 5 epochs, H100 80GB
|
| 52 |
+
python export_gguf.py # Export to GGUF for Ollama
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
Compatible: trl 0.11.4 + transformers 4.45.2 + peft 0.13.2
|
| 56 |
+
|
| 57 |
+
## License
|
| 58 |
+
|
| 59 |
+
Apache 2.0
|