Today, we are releasing KhmerPile, an open Khmer-language text corpus built from Common Crawl. The project aims to address a fundamental limitation in Khmer natural language processing: the lack of large, accessible, and reusable datasets for training and evaluating language models.

Despite Khmer being spoken by millions of people, the availability of large-scale Khmer text corpora remains limited compared with higher-resource languages. This creates a bottleneck for developing language models that can understand and generate Khmer reliably.

KhmerPile is an attempt to help address that gap.

Building a larger Khmer text corpus

KhmerPile is constructed from Common Crawl snapshots spanning CC-MAIN-2023-06 through CC-MAIN-2026-30.

Rather than relying on a single crawl or an existing static collection, we process multiple snapshots to collect Khmer-containing web documents across a broader range of sources and time periods.

The collection pipeline follows the general filtering approach established by FineWeb-2, with additional Khmer-oriented filtering. URLs containing Khmer text are considered during collection, including documents where Khmer represents only a small portion of the text.

This approach allows the corpus to retain multilingual documents and pages containing Khmer alongside other languages, rather than restricting collection exclusively to documents classified as predominantly Khmer.

Dataset statistics

The current release contains the following:

MetricCount
Initial filtered documents1,280,000
Documents after deduplication627,000
Crawl coverageCC-MAIN-2023-06 to CC-MAIN-2026-30
SourceCommon Crawl

Deduplication is performed against both the collected corpus and FineWeb-2. This helps reduce repeated content within KhmerPile and overlap with an existing large-scale web corpus.

The resulting dataset contains approximately 627,000 documents after deduplication.

Processing and filtering

The processing pipeline consists of several stages:

  • Collection: Retrieve documents from selected Common Crawl snapshots using Khmer-containing URLs as an initial collection criterion.
  • Text extraction and filtering: Apply a FineWeb-2-style filtering pipeline, alongside additional filtering for Khmer text.
  • Quality scoring: Use fastText language identification scores and Khmer-text ratios to help assess document relevance.
  • Deduplication: Remove duplicates within the collected dataset and against FineWeb-2.
  • Metadata preservation: Retain useful document metadata for downstream research and reproducibility.

All filtering takes place before deduplication.

The released dataset preserves metadata including source URLs, extracted text, fastText scores, and crawl snapshot information.

Releases

We are publishing two versions of KhmerPile:

ReleaseDescription
sovannpanhaseng/khmer-pileDeduplicated dataset containing approximately 627K documents
sovannpanhaseng/khmer-pile-rawFiltered dataset before deduplication, containing approximately 1.28M documents

Both releases are available on Hugging Face.

The corresponding project repository is also available on GitHub under sovannpanhaseng/khmer-pile.

Intended applications

KhmerPile is intended to support research and development in Khmer natural language processing, particularly:

  • Pretraining and continued pretraining of Khmer language models.
  • Khmer-English multilingual language modeling.
  • Khmer text classification and language identification.
  • Research into low-resource language data processing.
  • Development of larger Khmer-language datasets and benchmarks.

We hope the dataset will make it easier for researchers to experiment with Khmer language models without having to independently reproduce the entire web-data collection process.

Limitations

KhmerPile is a web-derived corpus, and its quality is constrained by the material available through Common Crawl.

The presence of Khmer text does not necessarily mean that an entire document is written in Khmer. The corpus may contain multilingual documents, duplicated material not caught by the deduplication process, noisy extracted text, and other forms of web content that require further processing.

KhmerPile should therefore be treated as a research corpus rather than a fully curated collection of Khmer-only prose.

A step toward more accessible Khmer NLP

KhmerPile is part of our broader effort to develop accessible language resources and models for Khmer.

Building language models for underrepresented languages requires more than model architectures and compute. It also requires the underlying data infrastructure that makes continued research possible.

By releasing KhmerPile openly, we hope to provide researchers and developers with another resource for building, studying, and improving Khmer language technologies.

KhmerPile is available on Hugging Face:

GitHub: sovannpanhaseng/khmer-pile

We welcome research use, evaluation, and contributions to the broader Khmer NLP ecosystem.