™

One engine for any-to-any models

M*™ runs each model as a graph of its component parts and each request as a walk through that graph. The engine represents optimizations, like batching, KV caching, CUDA graphs and GPU placement, using that graph so new models only need their component parts and walks defined, not their own server.

Built at Stanford University, the University of Washington, and Carnegie Mellon University.
Apache 2.0

BAGEL
imagetextvit_encodervae_encoderLLMtextvae_decoderimage
prefill_vit
prefill_text
decodeloops until the end
Each request runs only the nodes it needs.

Split a model across GPUs

A configuration file (YAML) assigns each component part to GPUs, so the same code for each model (e.g., BAGEL) runs on one GPU or across several.

Configure a deployment →

GPU 0
vit_encodervae_encodervae_decoderLLM
GPU 1
idle
GPU 2
idle
mstar serve bagel --config configs/bagel_single_gpu.yaml --gpus 0

Get started

Install M* with the add-on for your model, then serve. The supported models page has the commands for all other models.

uv pip install --torch-backend=auto 'mstar-ai[bagel]'mstar serve bagel --host 127.0.0.1 --gpus 0

Citation

If you use M* in your project or research, please cite our paper.

@article{mstar2026,title = {M*: A Modular, Extensible Serving System for Multimodal Models},author = {Atindra Jha and Naomi Sagan and Keisuke Kamahori and Irmak Sivgin and Rohan Sanda and Steven Gao and Mark Horowitz and Luke Zettlemoyer and Olivia Hsu and Jure Leskovec and Baris Kasikci and Stephanie Wang},year = {2026},eprint = {2606.12688},archivePrefix = {arXiv},primaryClass = {cs.LG}}