8000 GitHub - jmwangi20/Emu3.5: Native Multimodal Models are World Learners · GitHub
[go: up one dir, main page]

Skip to content
jmwangi20Public
forked from baaivision/Emu3.5

About

Native Multimodal Models are World Learners

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

37 Commits

Folders and files

Repository files navigation

Emu3.5: Native Multimodal Models are World Learners

Emu3.5 Team, BAAI

Project Page | 🤗HF Models | Paper

arch.
arch.
🔹 Core Concept Description
🧠 Unified World Modeling Predicts the next state jointly across vision and language, enabling coherent world modeling and generation.
🧩 End-to-End Pretraining Trained with a unified next-token prediction objective over interleaved vision–language sequences.
📚 Over 10T+ Multimodal Tokens Pre-trained on over 10 trillion interleaved tokens from video frames and transcripts, capturing spatiotemporal structure.
🔄 Native Multimodal I/O Processes and generates interleaved visual–text sequences without modality adapters or task-specific heads.
🎯 RL Post-Training Large-scale reinforcement learning enhances reasoning, compositionality, and generation quality.
⚡ Discrete Diffusion Adaptation (DiDA) Converts sequential decoding → bidirectional parallel prediction, achieving ≈20× faster inference without performance loss.
🖼️ Versatile Generation Excels in long-horizon vision–language generation, any-to-image (X2I) synthesis, and text-rich image creation.
🌐 Generalizable World Modeling Enables spatiotemporally consistent world exploration, and open-world embodied manipulation across diverse scenarios.
🏆 Performance Benchmark Matches Gemini 2.5 Flash Image (Nano Banana) on image generation/editing, and outperforms on interleaved generation tasks.

Table of Contents

  1. Model & Weights
  2. Quick Start
  3. Schedule
  4. Citation

1. Model & Weights

Model name HF Weight
Emu3.5 🤗 HF link
Emu3.5-Image 🤗 HF link
Emu3.5-VisionTokenizer 🤗 HF link

Note:

  • Emu3.5 supports general multimodal predictions, including interleaved image-text generation and image editing.
  • Emu3.5-Image is further optimized for high-fidelity text-to-image generation and single/multiple image editing.
  • Both models are pure next-token predictors without DiDA acceleration (each image may take several minutes to generate).
  • ⚡ Stay tuned for DiDA-accelerated weights.

💡 Usage tip:
For interleaved image-text generation, use Emu3.5.
For single-image generation (T2I and X2I editing), use Emu3.5-Image for the best quality.

2. Quick Start

Environment Setup

# Python 3.10 or higher is required.
git clone https://github.com/baaivision/Emu3.5
cd Emu3.5
pip install -r requirements.txt
pip install flash_attn==2.8.3 --no-build-isolation

Configuration

Edit configs/config.py to set:

  • Paths: model_path, vq_path
  • Task template: task_type in {t2i, x2i, howto, story, explore, vla}
  • Input image: use_image (True to provide reference images, controls <|IMAGE|> token); set reference_image in each prompt to specify the image path. For x2i task, 'reference_image' should be a list rather than a single path to be compatible with multi-image input.
  • Sampling: sampling_params (classifier_free_guidance, temperature, top_k/top_p, etc.)

Run Inference

python inference.py --cfg configs/config.py

Example Configurations by Task

Below are example commands for different tasks. Make sure to set CUDA_VISIBLE_DEVICES according to your available GPUs.

# 🖼️ Text-to-Image (T2I) task
CUDA_VISIBLE_DEVICES=0 python inference.py --cfg configs/example_config_t2i.py

# 🔄 Any-to-Image (X2I) task
CUDA_VISIBLE_DEVICES=0,1 python inference.py --cfg configs/example_config_x2i.py

# 🎯 Visual Guidance task
CUDA_VISIBLE_DEVICES=0,1 python inference.py --cfg configs/example_config_visual_guidance.py

# 📖 Visual Narrative task
CUDA_VISIBLE_DEVICES=0,1 python inference.py --cfg configs/example_config_visual_narrative.py


# After running inference, the model will generate results in protobuf format (.pb files) for each input prompt.

Protobuf outputs are written to outputs/<exp_name>/proto/. For better throughput, we recommend ≥2 GPUs.

Visualize Protobuf Outputs

To visualize generated protobuf files (--video: Generate video visualizations for interleaved output):

python src/utils/vis_proto.py --input <input_proto_file> --output <output_dir> [--video]

3. Schedule

  • Inference Code (NTP Version)
  • Advanced Image Decoder
  • Discrete Diffusion Adaptation (DiDA) Inference & Weights

4. Citation

@misc{cui2025emu35nativemultimodalmodels,
      title={Emu3.5: Native Multimodal Models are World Learners}, 
      author={Yufeng Cui and Honghao Chen and Haoge Deng and Xu Huang and Xinghang Li and Jirong Liu and Yang Liu and Zhuoyan Luo and Jinsheng Wang and Wenxuan Wang and Yueze Wang and Chengyuan Wang and Fan Zhang and Yingli Zhao and Ting Pan and Xianduo Li and Zecheng Hao and Wenxuan Ma and Zhuo Chen and Yulong Ao and Tiejun Huang and Zhongyuan Wang and Xinlong Wang},
      year={2025},
      eprint={2510.26583},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2510.26583}, 
}

About

Native Multimodal Models are World Learners

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0