File size: 1,057 Bytes
62c3d08
3108062
 
62c3d08
3108062
62c3d08
8edcd23
62c3d08
3108062
 
 
62c3d08
 
3108062
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
title: UniAR
emoji: 🎨
colorFrom: gray
colorTo: red
sdk: gradio
sdk_version: 5.47.1
app_file: app.py
short_description: Unified AR model for image understanding & generation
python_version: "3.12"
startup_duration_timeout: 1h
---

# UniAR Demo

Unified Multimodal Autoregressive Modeling with Shared Context-Visual Tokenizer.

This Space demonstrates **UniAR** (ShareLab-SII/UniAR-RL), a single Transformer
that handles both:

- **Image Understanding** — visual question answering about an input image
- **Image Generation** — text-to-image synthesis via autoregressive visual token prediction

The model uses a shared discrete visual tokenizer (Binary Spherical Quantization)
as the bridge between understanding and generation, enabling a shared context
where the model can directly interpret its own generated visual tokens.

Paper: [arXiv:2606.18249](https://arxiv.org/abs/2606.18249) ·
Model: [ShareLab-SII/UniAR-RL](https://huggingface.co/ShareLab-SII/UniAR-RL) ·
Code: [github.com/ShareLab-SII/UniAR](https://github.com/ShareLab-SII/UniAR)