Skip to content

Datasets and Governance

Sudhanshu Shukla edited this page Nov 23, 2026 · 2 revisions

Healthcare Datasets and Data Governance

Training sources are intentionally separated by objective. A source being available on Hugging Face does not automatically establish permission, accuracy, privacy compliance or clinical validity.

Stage 1 — Biomedical pretraining

Source Record fields Intended use
common-pile/pubmed_filtered text, metadata.license Healthcare-oriented next-token pretraining
slinusc/PubMedAbstractsSubset title, abstract Alternative abstracts corpus; verify source rights

The healthcare corpus loader permits these Hugging Face pretraining sources, applies a clinical keyword heuristic, checks selected license metadata, and assigns deterministic train/validation partitions by content hashes. These checks are screening measures, not conclusive legal or clinical auditing.

Stage 2 — Medical instruction SFT

Source Schema Handling
FreedomIntelligence/medical-o1-reasoning-SFT (en) Question, Response, Complex_CoT Use Question and Response with --schema question_response; generated reasoning field is not included
huzaifa525/Medical_Intelligence_Dataset_76k_2026_Edition input, output Alternative SFT corpus with --schema input_output

The medical SFT loader validates nonempty question/answer strings, builds completion-only labels and uses a stable hashed train/validation split.

Required governance checks

  1. License and provenance: check dataset cards and original document rights, including license attribution and reuse restrictions.
  2. Privacy: screen for protected health information and avoid introducing patient records without appropriate authorization and safeguards.
  3. Quality: examine medical correctness, duplicated passages, formatting problems, ungrounded synthetic answers and near-duplicates.
  4. Leakage: separate training from validation/test by document identity, prompt normalization and source provenance as applicable.
  5. Reproducibility: capture dataset IDs, revisions, filtering policy, random seeds, preprocessing versions and counts in experiment records.

Audit before training

python -m scripts.audit_healthcare_dataset --dataset common-pile/pubmed_filtered --max-rows 2000

For medical SFT, inspect the exact fields in a small streaming sample before large-scale training. See Tokenizer and Evaluation and Validation.

Clone this wiki locally