Update README.md
Browse files
README.md
CHANGED
|
@@ -19,17 +19,18 @@ size_categories:
|
|
| 19 |
A cleaned, deduplicated, Python-only pretraining corpus derived from
|
| 20 |
[`codeparrot/codeparrot-clean`](https://huggingface.co/datasets/codeparrot/codeparrot-clean),
|
| 21 |
built as the pretraining data for **PocketCoder**, a 95.87M-parameter decoder-only
|
| 22 |
-
code language model.
|
| 23 |
-
vocabulary 32,022).
|
| 24 |
|
| 25 |
- **Paper:** *PocketCoder: What Distillation, SFT, and DPO Each Buy You at 100M Parameters*
|
| 26 |
- **Model:** [`Ananda100/PocketCoder`](https://huggingface.co/Ananda100/PocketCoder)
|
|
|
|
| 27 |
- **Code:** [github.com/AnandaRimal/PocketCoder](https://github.com/AnandaRimal/PocketCoder)
|
| 28 |
|
| 29 |
## Cleaning pipeline
|
| 30 |
|
| 31 |
Applied on top of `codeparrot-clean` (which is itself deduplicated), streaming
|
| 32 |
-
file-by-file:
|
| 33 |
|
| 34 |
1. **Drop autogenerated/vendored files** — files flagged `autogenerated` by the
|
| 35 |
upstream dataset, plus regex matches for SWIG output, protocol-buffer compiler
|
|
@@ -59,6 +60,8 @@ Audited on a 5,000-document streamed sample (audit notebook and the resulting
|
|
| 59 |
|
| 60 |
| Metric | Value |
|
| 61 |
|---|---|
|
|
|
|
|
|
|
| 62 |
| Natural-language content (chars) | 16.0% (7.8% comments, 8.2% docstrings) |
|
| 63 |
| Unique documents (exact hash) | 100.0% |
|
| 64 |
| Unique documents (near, comments/whitespace stripped) | 99.9% |
|
|
@@ -115,4 +118,4 @@ dataset card for details.
|
|
| 115 |
year = {2026},
|
| 116 |
url = {https://github.com/AnandaRimal/PocketCoder}
|
| 117 |
}
|
| 118 |
-
```
|
|
|
|
| 19 |
A cleaned, deduplicated, Python-only pretraining corpus derived from
|
| 20 |
[`codeparrot/codeparrot-clean`](https://huggingface.co/datasets/codeparrot/codeparrot-clean),
|
| 21 |
built as the pretraining data for **PocketCoder**, a 95.87M-parameter decoder-only
|
| 22 |
+
code language model. **1,800,000 documents, ~2.96 billion tokens**
|
| 23 |
+
(DeepSeek-Coder tokenizer, vocabulary 32,022).
|
| 24 |
|
| 25 |
- **Paper:** *PocketCoder: What Distillation, SFT, and DPO Each Buy You at 100M Parameters*
|
| 26 |
- **Model:** [`Ananda100/PocketCoder`](https://huggingface.co/Ananda100/PocketCoder)
|
| 27 |
+
- **SFT dataset:** [`Ananda100/python-sft-dataset`](https://huggingface.co/datasets/Ananda100/python-sft-dataset)
|
| 28 |
- **Code:** [github.com/AnandaRimal/PocketCoder](https://github.com/AnandaRimal/PocketCoder)
|
| 29 |
|
| 30 |
## Cleaning pipeline
|
| 31 |
|
| 32 |
Applied on top of `codeparrot-clean` (which is itself deduplicated), streaming
|
| 33 |
+
file-by-file, collecting until 1,800,000 cleaned files were kept:
|
| 34 |
|
| 35 |
1. **Drop autogenerated/vendored files** — files flagged `autogenerated` by the
|
| 36 |
upstream dataset, plus regex matches for SWIG output, protocol-buffer compiler
|
|
|
|
| 60 |
|
| 61 |
| Metric | Value |
|
| 62 |
|---|---|
|
| 63 |
+
| Total documents | 1,800,000 |
|
| 64 |
+
| Total tokens (DeepSeek-Coder tokenizer) | ~2,955,981,351 |
|
| 65 |
| Natural-language content (chars) | 16.0% (7.8% comments, 8.2% docstrings) |
|
| 66 |
| Unique documents (exact hash) | 100.0% |
|
| 67 |
| Unique documents (near, comments/whitespace stripped) | 99.9% |
|
|
|
|
| 118 |
year = {2026},
|
| 119 |
url = {https://github.com/AnandaRimal/PocketCoder}
|
| 120 |
}
|
| 121 |
+
```
|