Upload Full-Spectrum Shell Script Specialist dataset (ChatML)
Browse files- README.md +83 -0
- eval.jsonl +0 -0
- train.jsonl +0 -0
README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: Full-Spectrum Shell Script Specialist Dataset
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
tags:
|
| 7 |
+
- bash
|
| 8 |
+
- shell
|
| 9 |
+
- posix
|
| 10 |
+
- jq
|
| 11 |
+
- awk
|
| 12 |
+
- sed
|
| 13 |
+
- devops
|
| 14 |
+
- sysadmin
|
| 15 |
+
- unsloth
|
| 16 |
+
- chatml
|
| 17 |
+
size_categories:
|
| 18 |
+
- 1K<n<10K
|
| 19 |
+
task_categories:
|
| 20 |
+
- text-generation
|
| 21 |
+
configs:
|
| 22 |
+
- config_name: default
|
| 23 |
+
data_files:
|
| 24 |
+
- split: train
|
| 25 |
+
path: train.jsonl
|
| 26 |
+
- split: validation
|
| 27 |
+
path: eval.jsonl
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
# Full-Spectrum Shell Script Specialist Dataset
|
| 31 |
+
|
| 32 |
+
This dataset contains **1,000 curated, unique ChatML conversation records** engineered to fine-tune a specialist language model for **Production-Grade Shell Scripting (Bash 5+, POSIX `/bin/sh`, `jq`, `awk`, `sed`)**.
|
| 33 |
+
|
| 34 |
+
It was used to train the [rajivmehtapy/gemma-4-e4b-shell-specialist](https://huggingface.co/rajivmehtapy/gemma-4-e4b-shell-specialist) model using Unsloth.
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## Dataset Splits
|
| 39 |
+
|
| 40 |
+
| Split | File | Records | Description |
|
| 41 |
+
| :--- | :--- | :---: | :--- |
|
| 42 |
+
| **train** | `train.jsonl` | 900 | Core training set across all 4 production modules |
|
| 43 |
+
| **validation** | `eval.jsonl` | 100 | Held-out validation split for checkpoint evaluation |
|
| 44 |
+
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
## Modules Covered
|
| 48 |
+
|
| 49 |
+
1. **Production Bash 5+ Automation (35%)**: Archival rotations, health probes with exponential backoff, systemd service watchdogs, disk/memory threshold monitors.
|
| 50 |
+
2. **Minimal POSIX `/bin/sh` Portability (20%)**: Alpine Linux / Docker entrypoints, socket polling (`nc -z`), POSIX parameter expansions, zero Bashisms.
|
| 51 |
+
3. **Advanced CLI Stream Wrangling (25%)**: Complex `jq` queries with atomic file replacements, `awk` columnar parsing, `sed` stream updates, null-delimited `find` / `xargs` pipelines.
|
| 52 |
+
4. **Defensive Hardening & Bug Refactoring (20%)**: Auditing fragile bash snippets, eliminating unquoted variable risks, adding `set -euo pipefail` and `trap` handlers.
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## Data Schema (ChatML JSONL)
|
| 57 |
+
|
| 58 |
+
```json
|
| 59 |
+
{
|
| 60 |
+
"messages": [
|
| 61 |
+
{
|
| 62 |
+
"role": "user",
|
| 63 |
+
"content": "Write a bash script to archive and remove .log files older than 14 days in /var/log with dry-run support."
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"role": "assistant",
|
| 67 |
+
"content": "#!/usr/bin/env bash\nset -euo pipefail\n\nDRY_RUN=false\n[[ \"${1:-}\" == \"--dry-run\" ]] && DRY_RUN=true\n..."
|
| 68 |
+
}
|
| 69 |
+
]
|
| 70 |
+
}
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## Usage with Hugging Face Datasets
|
| 76 |
+
|
| 77 |
+
```python
|
| 78 |
+
from datasets import load_dataset
|
| 79 |
+
|
| 80 |
+
dataset = load_dataset("rajivmehtapy/shell-script-specialist-dataset")
|
| 81 |
+
print(dataset)
|
| 82 |
+
print(dataset["train"][0])
|
| 83 |
+
```
|
eval.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|