README.md

June 16, 2025 ยท View on GitHub

Multiverse

[๐Ÿ“„ Paper] | [๐ŸŒ Website] | [๐Ÿค— Huggingface] | [๐Ÿฆ Twitter]

โšก TL;DR

Multiverse is a generative modeling framework that natively supports parallel generation for efficient test-time scaling. We provide an end-to-end ecosystem for building and deploying Multiverse models in real-world applications.

๐ŸŽฌ Demo

We showcase a Multiverse model solving a math reasoning problem, demonstrating its parallel generation capabilities.

๐Ÿ›๏ธ Repository Structure

This repository provides a complete ecosystem for building and deploying Multiverse models. Our structure is organized as follows:

๐Ÿ—‚๏ธ data โ†’ ๐Ÿ“ˆ train โ†’ ๐Ÿš€ inference

Multiverse
โ”œโ”€โ”€ data/
โ”‚   โ””โ”€โ”€ src
|   โ””โ”€โ”€ run
|   โ””โ”€โ”€ README.md
โ”‚
โ”œโ”€โ”€ train
โ”‚   โ””โ”€โ”€ README.md
โ”‚
โ”œโ”€โ”€ inference/
โ”‚   โ””โ”€โ”€ engine
|   โ””โ”€โ”€ README.md
โ”‚
โ””โ”€โ”€ README.md
  • data/: Contains the Multiverse Curator toolkit for dataset preparation. Use it to generate your own Multiverse-1K dataset for training.

  • training/: Implements the Multiverse Attention algorithm for the efficient training of Multiverse models. We also includes the code for AR baselines

  • inference/: Features the Multiverse Engine implementation, a high-performance inference server optimized for Multiverse models.

For detailed documentation and usage instructions, please refer to the README.md files in each directory.

๐Ÿ“ Todo List

  • Add evaluation code based on lighteval
  • Support context parallelism

๐Ÿ“š References

Thank you for your interest in Multiverse Engine! We hope this tool will be helpful for your research and development. If you find it useful, please consider citing our work. Happy coding! ๐Ÿš€

@misc{yang2025multiverselanguagemodelssecretly,
      title={Multiverse: Your Language Models Secretly Decide How to Parallelize and Merge Generation}, 
      author={Xinyu Yang and Yuwei An and Hongyi Liu and Tianqi Chen and Beidi Chen},
      year={2025},
      eprint={2506.09991},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2506.09991}, 
}