MMIRAGE DocumentationΒΆ

MMIRAGE logo

MMIRAGE is an open-source platform for large-scale dataset processing using large language models (LLMs) and vision-language models (VLMs).

It provides a declarative, YAML-driven pipeline to extract variables from data samples, construct prompts, run model inference, render structured outputs, and distribute the work across shards β€” locally or on HPC clusters via SLURM.


What is MMIRAGE?ΒΆ

MMIRAGE (Modular Multimodal Intelligent Reformatting and Augmentation Generation Engine) lets you transform large datasets using generative models by:

  • extracting named variables from each sample with JMESPath queries

  • constructing prompts with Jinja2 templates

  • running inference locally via a SGLang engine, or asynchronously via a provider batch API (OpenAI, Anthropic)

  • rendering processed outputs into any JSON schema you define

  • splitting work across shards with automatic resume, retry, and merge

It natively supports text and image inputs, SLURM-based cluster execution, throughput benchmarking, and atomic crash-safe writes.


Where to startΒΆ

Depending on what you want to do, start in different places:


Documentation mapΒΆ

πŸ“¦ Installation

Set up MMIRAGE and prepare your environment.

Installation
πŸš€ Quickstart

Run a first pipeline end to end in minutes.

Quick Start
πŸ’‘ Concepts

Core vocabulary: shards, variables, schemas, execution modes.

πŸ’‘ Concepts
πŸ”„ Pipeline

Step-by-step walkthrough of what MMIRAGE does with your data.

πŸ”„ Pipeline
πŸ–ΌοΈ Multimodal Processing

Running VLMs on image datasets.

πŸ–ΌοΈ Multimodal Processing
Image Generation

Generating image datasets from templated prompts.

Image Generation
πŸ”€ SLURM & Cluster Deployment

Scaling pipelines across HPC nodes with SLURM.

πŸ”€ SLURM & Cluster Deployment
πŸ—‚οΈ Batch API

Async inference via a provider batch API (OpenAI, Anthropic).

πŸ—‚οΈ Batch API
🐍 Custom Module

Running your own Python function in an isolated worker pool.

Custom Processor (Dynamic Python Functions)
πŸ“Š Benchmarking

Measuring throughput, GPU utilization, and efficiency.

πŸ“Š Benchmarking
βš™οΈ Configuration Reference

Full YAML parameter reference for every section.

βš™οΈ Configuration Reference
πŸ’» CLI Reference

All mmirage subcommands, flags, and examples.

πŸ’» CLI Reference
πŸ—οΈ Architecture

Internal module layout and design decisions.

πŸ—οΈ Architecture
πŸ”§ Developer Guide

Testing, code style, extending MMIRAGE, and debugging.

πŸ”§ Developer Guide

Page guideΒΆ