Skip to main content

M*

A universal serving system for composite, any-to-any multimodal models

Models are dataflow graphs  ·  requests are Walks  ·  one runtime serves them all

Quickstart  ·  Models  ·  How it works  ·  Docs  ·  Blog  ·  Paper

License: Apache 2.0 Python 3.12 Modalities Docs Paper (arXiv)


M* performance across models and modalities — M* matches or beats state-of-the-art inference systems

One runtime that matches or beats state-of-the-art inference systems. Full methodology and current numbers in the blog post and paper.

What is M*?

M* (pronounced "M-star") is a serving system for the new generation of composite multimodal models — models built from structurally distinct components (vision encoders, transformer backbones, diffusion and flow heads, audio codecs, action generators, world-model predictors) whose execution path changes with the input and the task.

LLM serving stacks assume inference is a single autoregressive loop. Composite models broke that assumption. M*'s core idea is the Walk Graph: a model is a dataflow graph of its components, and every request is a Walk over that graph. A single runtime serves unified multimodal models, omni models, speech LMs, vision-language-action policies, and world models — at or above the performance of engines specialized for each.

Fast — per-component fast paths, matched to each component's bottleneck:

  • Paged attention (FlashInfer) and continuous batching for autoregressive backbones
  • CUDA-graph capture for encoders and decode
  • Classifier-free-guidance parallelism for diffusion / flow
  • Tensor parallelism and Ulysses sequence parallelism, composable as a TP × SP mesh per component
  • Sliding-window chunk streaming for audio codecs
  • Component-level disaggregation with pluggable tensor transport (shared memory, TCP, RDMA)

Flexible — the abstraction mirrors the model:

  • One small Python file per model declares its component graph and its Walks
  • A YAML file maps components to GPUs at per-component, per-walk granularity — arbitrary disaggregation, no code changes
  • Text, image, audio, video, and robot actions, in and out
  • A Python SDK, an OpenAI-compatible API, and a native streaming endpoint

Roadmap. M* is evolving toward many-model, agentic multimodal serving — routing requests across many models and tools within one graph-scheduled runtime.

Quickstart

uv venv --python 3.12 --seed
source .venv/bin/activate
uv pip install --torch-backend=auto "mstar-ai[all]"   # install M* from PyPI
mstar serve bagel          # one command — launch a server (default: http://localhost:8000)

The PyPI package is mstar-ai (mstar-project and mstar-serve install the same thing); the import package and the CLI are mstar. Working from a checkout instead: uv pip install --torch-backend=auto -e .[all], then build the Rust extension and HTTP frontend. Qwen3-TTS also needs uv pip install --no-deps "qwen-tts==0.1.1" (see docs/installation.rst).

To enable flash-attn support (recommended for BAGEL),

# torch 2.10 built for CUDA 13.x (cu13); on a cu12 torch, build from source (docs/installation.rst)
uv pip install \
  "https://github.com/Dao-AILab/flash-attention/releases/download/v2.8.3/flash_attn-2.8.3+cu13torch2.10cxx11abiTRUE-cp312-cp312-linux_x86_64.whl"

Other models: mstar serve flux2_klein · mstar serve cosmos3 · mstar serve cosmos3_droid · mstar serve qwen3_omni · mstar serve kokoro · mstar serve orpheus · mstar serve pi05 · mstar serve vjepa2

Python SDK — works for every model (text, image, audio, video):

from mstar import MStarClient
client = MStarClient("http://localhost:8000")

client.chat("What is the capital of France?").text          # text
client.generate_image("a cat in a hat")                     # → PNG bytes   (FLUX.2 klein, BAGEL, Cosmos3)
client.edit_image("make it a watercolor", "cat.png")        # → PNG bytes   (FLUX.2 klein, BAGEL)
client.tts("Hello there", voice="tara").to_wav("out.wav")   # → speech      (Orpheus)

for event in client.chat("Tell me a story", stream=True):   # streaming
    print(getattr(event, "text", ""), end="", flush=True)

OpenAI-compatible API, for every model whose row in the table below lists a /v1/ route:

from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="none")

client.chat.completions.create(model="bagel", messages=[{"role": "user", "content": "hi"}])
client.audio.speech.create(model="orpheus", input="hi", voice="tara")   # text-to-speech
client.images.generate(model="bagel", prompt="a cat")                   # image generation

Runnable scripts and curl examples live in examples/. Power users can launch any deployment with an explicit config: mstar-serve --config configs/<model>.yaml.

Note: The first request(s) on a fresh environment can be slow — often tens of seconds to a few minutes. mstar torch.compiles the model on first use, and that compilation happens lazily on the first request that exercises each path.

Supported models

Model Family Input → Output Endpoints
BAGEL Unified multimodal text, image → text, image /v1/chat/completions, /v1/images/generations
Qwen3-Omni Omni text, image, audio, video → text, speech /v1/chat/completions
Qwen3.5 0.8B–27B / Qwen3.8-27B Vision-language model text, image → text (hybrid gated-DeltaNet attention) /v1/chat/completions, /generate
Muse Glimmer 30B (Beta) Vision-language model text, image → text (sliding-window and NoPE attention layers 3:1) /v1/chat/completions, /generate
Command A+ (Experimental) Vision-language model text, image → text (218B MoE, 25B active) /generate
Phi-4-multimodal (Beta) Multimodal LM text, image, audio → text /v1/chat/completions, /generate
MiniCPM-o 4.5 (Beta) Omni text, image, audio → text, speech (half-duplex) /generate
GLM-5.2 / GLM-5.3-Flash Language model text → text (fp8 MoE, TP8, MTP drafting) /v1/chat/completions, /generate
Ripple-65B Preview (Experimental) Language model text → text (sliding-window and NoPE attention layers 4:1) /v1/chat/completions, /generate
Nemotron VoiceChat (Beta) Full-duplex speech LM speech → text, speech (streamed) /generate
Orpheus Speech LM text → speech /v1/audio/speech
Fish Audio S2-Pro Speech LM text, reference audio → speech (streamed; weights under the Fish Audio Research License, non-commercial use only) /v1/audio/speech
Qwen3-TTS 0.6B / 1.7B Speech LM text (+ voice instruction or reference audio) → speech (streamed; CustomVoice, VoiceDesign and Base variants) /v1/audio/speech
Chatterbox / Multilingual / Turbo Speech LM text, reference audio → speech (voice cloning; 23 languages in Multilingual) /v1/audio/speech
OmniVoice Masked-diffusion TTS text, reference audio → speech (multilingual voice cloning) /v1/audio/speech
Kokoro-82M TTS text → speech (54 voices, sentence-streamed) /v1/audio/speech
CosyVoice3 0.5B Speech LM text, reference audio → speech (streamed; voice cloning) /v1/audio/speech
VoxCPM2 TTS text (+ voice description or reference audio) → speech (streamed, 48 kHz) /v1/audio/speech
Whisper large-v3 / large-v3-turbo ASR speech → text /v1/audio/transcriptions
Qwen3-ASR 0.6B / 1.7B ASR speech → text (30 languages; live transcription on 0.6B) /v1/audio/transcriptions, /v1/realtime
Canary 1B v2 / Canary-Qwen 2.5B ASR speech → text (Canary: 25 European languages and translation; Canary-Qwen: English) /v1/audio/transcriptions
Parakeet TDT 0.6B v3 / Nemotron 3.5 ASR ASR speech → text (Parakeet: 25 European languages, detected) /v1/audio/transcriptions
Higgs Audio v3 STT (Beta) ASR speech → text /v1/audio/transcriptions
Omnilingual ASR CTC 300M–7B ASR speech → text (1,600+ languages) /v1/audio/transcriptions
Cosmos3 Nano / Super World model text, image, video → image, video (+ sound), robot actions /v1/images/generations, /v1/videos/generations
Cosmos3 Policy DROID Robot policy text, image, video → robot actions, video /generate, /v1/images/generations, /v1/videos/generations
Cosmos3-Edge 480p world model + VLM text, image, video → image, video (streamed windows), robot actions, text /v1/chat/completions, /v1/images/generations, /v1/videos/generations, /generate, /generate/ws
Pi0.5 Vision-language-action text, image, state → robot actions /generate
V-JEPA 2 / 2-AC World model video (+ actions) → latents, rollouts /generate
Waypoint-1.5 Interactive world model controller input (mouse, buttons, scroll) → live video frames /generate
LingBot-World-V2 1.3B Interactive world model text, image, camera trajectory → video (streamed chunks; weights CC-BY-NC-SA-4.0) /generate
Wan2.2-TI2V-5B Video diffusion text, image → video /v1/videos/generations, /generate
LTX-2.5 (Beta) Audio-video diffusion text → video + stereo audio (8-step distilled; gated, LTX-2.x Community License) /v1/videos/generations, /generate
MiniMax-H3 (Beta) Audio-video diffusion text, first and last frame → video + stereo audio (33B DiT; MiniMax H3 Community License) /v1/videos/generations, /generate
FLUX.2 klein 4B / 9B Image diffusion text, image → image (4-step distilled, editing; 4B Apache-2.0, 9B under the FLUX Non-Commercial License) /v1/images/generations, /v1/images/edits
Z-Image-Turbo Image diffusion text → image (8-step distilled) /v1/images/generations

Every model is reachable through the SDK and the native /generate endpoint; the OpenAI-compatible routes cover the chat, speech, transcription, image, and video models. Registry keys, configs and per-model notes are in docs/models.rst.

How it works

HTTP / SDK  →  API Server  →  Conductor  →  Workers (one per GPU)  →  streaming results
                                  │              │
                          walks the graph,   own subgraphs; route tensors
                          schedules walks    directly to one another

A model declares a computation graph of components and a set of named Walks (e.g. prefill, decode, image_gen). The Conductor turns each request into a walk over that graph and schedules it; Workers each own a subgraph on their GPU and stream tensors directly to one another. Logical graph structure is decoupled from physical placement, so the same model runs single-GPU or fully disaggregated by changing only the YAML node_groups. Four composable primitives — Sequential, Parallel, Loop, and a cross-partition StreamingGraphEdge — express every model family above. See the paper for the full design.

Rust extension

Serving needs the mstar_rust extension (vendored in rust/): the graph runtime is Rust, and every process sends its control messages on the extension's ZeroMQ transport. Each process logs it at startup (control mesh transport: rust <version> from <path>). From a checkout, build it with maturin: uv pip install maturin && maturin develop --release -m rust/Cargo.toml. mstar serve serves HTTP from the mstar-server binary (rust/server/); from a checkout, build it too: cargo build --release --manifest-path rust/server/Cargo.toml. The Linux wheels of mstar-ai on PyPI carry both, the extension with libzmq 4.3.4 statically linked under LGPL-3.0-or-later and its static-linking exception (PACKAGING.md has where its source is). See the installation docs and environment variables.

Performance

Across every model we benchmark, M* matches or beats the system specialized for that family — unified models (BAGEL), omni and speech models (Qwen3-Omni, Orpheus), and world models (Cosmos3, V-JEPA 2) — by executing only the components each request needs and giving each its own fast path: paged attention and continuous batching for autoregressive backbones, classifier-free-guidance parallelism for diffusion, chunk streaming for audio codecs, and persistent-cache loops for world-model rollouts.

Benchmark numbers shift as systems evolve — ours and everyone else's — so rather than freeze figures here that go stale, we keep the current results and full methodology in the blog post and the paper.

Contributing

Issues and pull requests are welcome. Found a bug, or want a model or feature supported? Open an issue. To add a model yourself, follow the Adding a New Model guide. PRs to main go through review and CI (ruff).

Citation

If you use M* in your research, please cite:

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

From Stanford University & the University of Washington. Correspondence: atindra@cs.stanford.edu.

Acknowledgments

M* builds on ideas and proven primitives from the open-source community — paged attention and continuous batching (vLLM), FlashInfer kernels, streaming speech serving (VoxServe), and RDMA tensor transport (Mooncake).

License

Apache License 2.0.

Metadata

Release files for mstar-ai 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mstar-ai 0.3.0
File Size Uploaded Provenance Actions
mstar_ai-0.3.0.tar.gz 3.7 MB With provenance Details for mstar_ai-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for mstar-ai 0.3.0
File Actions
mstar_ai-0.3.0-py3-none-any.whl Python 3 none any Details for mstar_ai-0.3.0-py3-none-any.whl
mstar_ai-0.3.0-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for mstar_ai-0.3.0-cp314-cp314-manylinux_2_28_x86_64.whl
mstar_ai-0.3.0-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details for mstar_ai-0.3.0-cp314-cp314-manylinux_2_28_aarch64.whl
mstar_ai-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for mstar_ai-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl
mstar_ai-0.3.0-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for mstar_ai-0.3.0-cp313-cp313-manylinux_2_28_aarch64.whl
mstar_ai-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for mstar_ai-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
mstar_ai-0.3.0-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for mstar_ai-0.3.0-cp312-cp312-manylinux_2_28_aarch64.whl

Total release size: 62.0 MB

Release files / mstar_ai-0.3.0.tar.gz

Download URL mstar_ai-0.3.0.tar.gz
Size 3.7 MB
Tags Source
SHA-256 checksum
How to use checksums
959be8c7bc0f53d899df3c78179056332e67de89533e85e352d079f7149de8d9
BLAKE2b-256 checksum
How to use checksums
ac755ea165fdb97329cbb2e7972b7d92dcf98ccaffe2f20d8d49f72aa05ea30e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / mstar_ai-0.3.0-py3-none-any.whl

Download URL mstar_ai-0.3.0-py3-none-any.whl
Size 3.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2af3e5e0beea90a69ef2cff15407340c020d714fb6bc6336cc97626225d74d44
BLAKE2b-256 checksum
How to use checksums
5b8c65930ee45326fd34bd81d46bffd591fd8c6abc21b78857a67578d93e2f4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / mstar_ai-0.3.0-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL mstar_ai-0.3.0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 9.2 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d1bde1c01c96a783f62fce391a90a70ea4a0f6ebd4130694a6664f2bf612b224
BLAKE2b-256 checksum
How to use checksums
e6092ca7a4a9ecb1ddde32891434f1acc0b4f255e638ed3026e55ef0aaabc99a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / mstar_ai-0.3.0-cp314-cp314-manylinux_2_28_aarch64.whl

Download URL mstar_ai-0.3.0-cp314-cp314-manylinux_2_28_aarch64.whl
Size 8.9 MB
Tags CPython 3.14 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
b596106a3202978706f47dcee5fabc19aa2a17f125863b7c798dc2f2e049a749
BLAKE2b-256 checksum
How to use checksums
bbda64b3b370d1613b8d8b292596034a1eb63e7fcd8ce1f2536530ffa81f2dbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / mstar_ai-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL mstar_ai-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 9.2 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d8b0fc879f263a920c5740040ef0d0ade2287f7e262040c9cbd3643a8c47bc12
BLAKE2b-256 checksum
How to use checksums
91ea58b4b2cbd6da0c458050e31a9657fa7a61f7b17b43a1d03b0da9ed257bab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / mstar_ai-0.3.0-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL mstar_ai-0.3.0-cp313-cp313-manylinux_2_28_aarch64.whl
Size 8.9 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
a8ad9d6c8dbbde341e7f74a97b517dc85cec26c020c289fde3554d3b5c13f023
BLAKE2b-256 checksum
How to use checksums
68770311c2b18bd4eb3bacd68da1d05658b9721de30f2481b410ef97b4b82ea1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / mstar_ai-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL mstar_ai-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 9.2 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
11f5ba17162e6c4eb2bf178d1139c321f475b70090c9038fef4de2e67653c0e6
BLAKE2b-256 checksum
How to use checksums
6c0e3ce6aa43f5ace82a753fd8c410d21fcc4084efa9113e4fd09efc713f406c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / mstar_ai-0.3.0-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL mstar_ai-0.3.0-cp312-cp312-manylinux_2_28_aarch64.whl
Size 8.9 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
8eed1941d53fc5984d4acc8014fabae66f1e188ac4751e4929c28be1aa38fc9a
BLAKE2b-256 checksum
How to use checksums
52bba35ba9e0332b375c9d69495bc34254dd76051f471166e81aa4647319d63d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for mstar-ai 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for mstar_ai-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

8 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page