CoolFace
Datasetpublic

spadeMIA/pmc_finetune_corpus_1024-2040_tokens

PMC 1024-2040 Biomedical Fine-Tuning Corpus Summary This is a cleaned biomedical long-text corpus for autoregressive language-model fine-tuning and held-out evaluation. split rows role train 10,000 fine-tuning test 1,000 held-out evaluation The public schema is text-only: text: string No PMCID, date, license, URL, or provenance fields are included in the public dataset files. Token Contract The corpus is built for… See the full description on the dataset page: https://huggingface.co/datasets/spadeMIA/pmc_finetune_corpus_1024-2040_tokens.

sourceHugging Faceotherupdated 2mo agoView on Hugging Face
0likes49downloads
Dataset Card

PMC 1024-2040 Biomedical Fine-Tuning Corpus

Summary

This is a cleaned biomedical long-text corpus for autoregressive language-model fine-tuning and held-out evaluation.

splitrowsrole
train10,000fine-tuning
test1,000held-out evaluation

The public schema is text-only:

text
text: string

No PMCID, date, license, URL, or provenance fields are included in the public dataset files.

Token Contract

The corpus is built for EleutherAI/pythia-2.8b.

Token counts were computed with:

python
tokenizer.encode(text, add_special_tokens=False)
requirementvalue
stored text minimum1024 tokens
stored text maximum2039 tokens
EOS token budget+1 token
maximum sequence budget2040 tokens
EOS stored inside textno

Final token-count statistics:

stattraintest
min10251048
mean1953.91950.8
median20022000
max20392039
p11228.01185.8
p51640.01644.0
p251966.01960.0
p752021.02021.0
p952035.02034.0
p992039.02039.0

Source

Source dataset:

text
common-pile/pubmed_filtered

Rows were filtered to:

filterrequirement
publication datepublication_date >= 2020-09-01
languageEnglish
token lengthat least 1024 Pythia tokens after cleaning
license classCC-BY, CC-BY-SA, or CC0

The Hugging Face metadata uses license: other because the corpus contains a mixture of CC-BY, CC-BY-SA, and CC0 rows.

Cleaning

Cleaning was deterministic and designed to remove PMC serialization artifacts without damaging biomedical prose, chemistry, units, or real math notation.

Removed or normalized artifact classes include:

artifact classexample
Pandoc anchors{#sec1}
escaped citation groups\[[@bib1]\]
numeric bracket citations\[1, 2\]
bare citation markers[@CR40]
empty citation parentheses(), (;), (--)
empty superscript citation shells^^, ^,^, ^--^
cross-reference links[Figure 1](#fig1){ref-type="fig"}
LaTeX document wrappers\documentclass, \begin{document}
raw HTML/XML tags<p>, </italic>
Word field-code remnantsMERGEFORMAT
confirmed escaped literal punctuation\*, \_, \#
markdown image placeholders![](fx2.gif)
generic markdown links[label](https://example.org)
Pandoc smallcaps spans[TEXT]{.smallcaps}
orphan bracket shells[[ word, []
dense markdown-table pipes`cellcell`

Ambiguous doubled backslashes and escaped parentheses are deliberately not auto-stripped because they can be legitimate LaTeX, math, or prose notation.

Truncation

Each selected row is a deterministic prefix of the cleaned parent document. The pipeline uses a three-tier boundary hierarchy:

boundary typetraintest
paragraph81
sentence9965997
token-boundary cutoff272

Processing Summary

stagerows
rows scanned27,000
eligible after filtering24,846
unique eligible after deduplication24,843
selected train rows10,000
selected test rows1,000
unused eligible rows13,843

Date Distribution

publication yeartraintest
20201142109
20212307234
20222538248
20233165323
202484886

Minimum selected publication date:

text
2020-09-01

License Distribution

license classtraintest
CC-BY9962996
CC-BY-SA62
CC0322

Verification

The local review notebook re-scans every exported row. All strict artifact detectors pass with zero affected rows in both train and test:

strict artifact classtraintest
residual pandoc anchors00
escaped-bracket citations00
numeric bracket citations00
dash-only citation remnants00
empty citation parentheses00
empty superscript citation shells00
LaTeX document wrappers00
raw HTML/XML tags00
cross-reference links00
bare citation markers00
Word MERGEFORMAT artifacts00
escaped literal punctuation00
markdown image placeholders00
generic markdown links00
Pandoc smallcaps markup00
orphan bracket shells00
dense markdown-table pipes00

Ordered sequence hashes over the public text column:

text
train_text_sequence_sha256 = 3f5767c782aca43da42cce8b456afb1e95e100b73c0abf4d4406e7d3b273338a
test_text_sequence_sha256  = e5207234ecbd3e80a41348a10da42a6c3ad36bba1e3c612e70f3dbbded77d37d

Reproducibility

fieldvalue
preprocessing notebookpmc_1024_2040_preprocessing.ipynb
review notebookpmc_1024_2040_dataset_review.ipynb
artifact repair notebookpmc_1024_2040_artifact_repair.ipynb
preprocessing versionpmc_1024_2040
seed42
tokenizerEleutherAI/pythia-2.8b
final audit timestamp2026-07-30T21:23:35.624609+00:00

Use this corpus only under the token and cleaning contract documented above.