Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10M - 100M
License:
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- agent
|
| 9 |
+
- coding
|
| 10 |
+
- terminal
|
| 11 |
+
- shell
|
| 12 |
+
pretty_name: WebTerminal
|
| 13 |
+
---
|
| 14 |
+
# Terminal/CLI Web Text
|
| 15 |
+
|
| 16 |
+
<img src="https://huggingface.co/datasets/AdaMLLab/WebTerminal/blob/main/webterminal.png" width="600">
|
| 17 |
+
|
| 18 |
+
A filtered extract of terminal and command-line content from two large web-text corpora.
|
| 19 |
+
|
| 20 |
+
## Sources
|
| 21 |
+
|
| 22 |
+
- **DCLM** (`Zyphra/dclm-dedup`)
|
| 23 |
+
- **FineWeb** (`Salesforce/fineweb_deduplicated`)
|
| 24 |
+
|
| 25 |
+
## How it was built
|
| 26 |
+
|
| 27 |
+
1. **Fast filter**: skip any document that doesn't contain obvious CLI indicators (`$`, `sudo`, `pip install`, `` ```bash ``, `root@`, etc.)
|
| 28 |
+
2. **Score**: remaining docs are scored (0-34) across five signals, each with a per-match point value and a cap:
|
| 29 |
+
|
| 30 |
+
| Signal | What it detects | Points | Max |
|
| 31 |
+
|---|---|---|---|
|
| 32 |
+
| Prompt patterns | Shell prompts like `$ cmd`, `user@host:~$`, `>>>`, `root@`, `PS C:\` | 2 per match | 10 |
|
| 33 |
+
| CLI commands | Known commands: `sudo`, `apt-get`, `pip install`, `git clone`, `docker run`, `curl`, `ssh`, `gcc`, etc. (30+ patterns) | 1 per unique match | 8 |
|
| 34 |
+
| stdout patterns | Output indicators: "successfully installed", "cloning into", `drwx` (ls output), "packets transmitted", "traceback", version strings | 2 per match | 6 |
|
| 35 |
+
| Code blocks | Terminal-flavored code blocks: `` ```bash ``, `` ```shell ``, `<pre><code>`, terminal/console div classes | 2 per match | 6 |
|
| 36 |
+
| Indented blocks | 3+ consecutive lines indented 4+ spaces (code/output blocks) | 1 per match | 4 |
|
| 37 |
+
|
| 38 |
+
Documents scoring ≥5 are kept.
|
| 39 |
+
|
| 40 |
+
3. **Dedup**: exact dedup across both datasets using xxhash64 on full text.
|
| 41 |
+
|
| 42 |
+
## Stats
|
| 43 |
+
|
| 44 |
+
| | Chunks | Size | Rows |
|
| 45 |
+
|---|---|---|---|
|
| 46 |
+
| DCLM | 13,144 | ~229 GB | ~18.8M |
|
| 47 |
+
| FineWeb | 8,800 | ~669 GB | ~47.5M |
|
| 48 |
+
|
| 49 |
+
Combined ~66M rows before dedup.
|
| 50 |
+
|
| 51 |
+
## Schema
|
| 52 |
+
|
| 53 |
+
```
|
| 54 |
+
text: string
|
| 55 |
+
term_score: int32
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
## Use case
|
| 59 |
+
|
| 60 |
+
Pre-training or fine-tuning on terminal/CLI-flavored web text, useful for models that need to understand shell commands, error output, package management, and general command-line workflows.
|