--- license: apache-2.0 pipeline_tag: text-to-image library_name: transformers --- # LANTERN This repository is an official PyTorch implementation of the paper [LANTERN: Accelerating Visual Autoregressive Models via Relaxed Speculative Decoding](https://arxiv.org/abs/2410.03355) (ICLR 2025) and [LANTERN++: Enhanced Relaxed Speculative Decoding with Static Tree Drafting for Visual Auto-regressive Models](https://arxiv.org/abs/2502.06352) (ICLRW - SCOPE(Oral) 2025), which supports various functionalities related to LANTERN, including model inference, drafter model training, drafter model training data generation and image decoding for image generation. --- ## 📚 Table of Contents 1. [Directory Structure](#directory-structure) 2. [Installation](#installation) 3. [Key Features](#key-features) 4. [Usage](#usage) 5. [License](#license) 6. [Acknowledgement](#acknowledgement) 7. [Citation](#citation) --- **(Content below remains unchanged)** Code: https://github.com/jadohu/LANTERN