OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Data & Analytics

Mega Data Factory

Mega Data Factory is an open-source Python pipeline built on Ray for distributed processing and curation of large text, image and multimodal datasets. It provides filtering, refinement, scoring and deduplication operators, including Rust-accelerated and GPU-optimized options.

Independent OpenViST project profile, based on linked sources.

Mega Data Factory — Install Mega Data Factory
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when dataset preparation calls for configurable processing stages and distributed execution, particularly for large collections intended for foundation-model development.

Who it is for

  • Developers building repeatable data-curation pipelines for foundation-model training.
  • Research and engineering teams processing large text or image datasets.

Documented uses

  • Load and shard Hugging Face datasets or process Common Crawl WARC files.
  • Filter text using URL, length, language, repetition and other quality heuristics.
  • Normalize text and remove exact duplicates.
  • Build image data workflows with documented quality-filtering and deduplication stages.
Before you choose

Requirements & limits

The repository is public and lists an MIT license. Installation instructions document a Rust-accelerated path and a pure-Python fallback; Rust is required to build accelerated operators.

  • Ray is the documented distributed-processing foundation.
  • Rust acceleration is optional at installation, but a Rust toolchain is required to build accelerated operators.
  • The README marks some pipeline implementations as in progress or planned, so check each workflow's stated status before selecting it.
  • The documented text operators include exact deduplication; the README lists MinHash deduplication as coming soon.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install Mega Data Factory

Set up the repository with either Rust-accelerated operators or the pure-Python installation path.

Before you start

  • A Python environment with uv available.
  • For accelerated operators, a Rust toolchain installed through rustup.

Steps

  1. Clone the repository: the command below.

    Documented command
    git clone https://github.com/duoan/mega-data-factory.git
  2. Change into the repository directory: cd mega-data-factory.

  3. For Rust acceleration, run the command below; alternatively, run the command below for the pure-Python fallback.

    Documented command
    uv pip install -e .
    Documented command
    uv sync

Expected outcome

The project is installed using the selected acceleration path.

Guide limitations

  • The documented Rust requirement applies to building accelerated operators.
Source-based practical guide

Configure a Common Crawl text-curation pipeline

Use the documented example pattern to define Common Crawl text filtering, normalization, exact deduplication and Parquet output.

Before you start

  • Mega Data Factory installed.
  • A YAML configuration file based on the documented Common Crawl example.

Steps

  1. Set data_loader to CommonCrawlLoader and provide a crawl ID.

  2. Define the documented filtering and refinement stages, including URL filtering, text-length checks, newline normalization and exact deduplication.

  3. Set the data writer to ParquetDataWriter and specify an output path.

  4. Configure worker and executor settings, including the sample limit, batch size and metrics options, as needed.

Expected outcome

A configuration describing a distributed Common Crawl curation pipeline with Parquet output.

Guide limitations

  • The README gives an example configuration; it does not establish that a particular crawl, environment or configuration has been run successfully.
  • The example's worker, executor and filtering values are configuration choices, not universal requirements.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
16 November 2026
Original website title
duoan/mega-data-factory · Official homepage title · retained in its source language