Practical overview
When it fits
Use the demo to try interactive text-to-image generation; use the repository when you need to inspect the implementation, work with model weights, or follow its documented training and evaluation workflow.
Who it is for
- Researchers studying autoregressive visual generation and its scaling behavior.
- Developers exploring image-generation implementations and model weights.
- People who want to try the linked text-to-image demo.
Documented uses
- Generate images interactively through the linked text-to-image demo.
- Explore a next-scale prediction approach to autoregressive image generation.
- Train Var models on ImageNet and evaluate generated samples using image-generation metrics.
Requirements & limits
The repository is public and declares an MIT license. It links to model weights and a separate interactive demo.
- The central method is coarse-to-fine next-scale prediction, rather than conventional raster-scan next-token prediction.
- The documented training workflow requires PyTorch 2.0 or later, the repository's Python packages, and an ImageNet dataset.
- Training instructions cover distributed runs at 256×256 and 512×512; FlashAttention and xformers are optional speed optimizations.
- The repository describes sampling and evaluation steps, but says a sampling script will be provided later.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Prepare VAR for ImageNet training
Install the listed Python dependencies and organize ImageNet data for VAR training.
Before you start
- Install torch version 2.0.0 or later.
- Have the ImageNet dataset available, organized into train and val directories with class subdirectories.
Steps
Install torch version 2.0.0 or later.
Install the other Python packages with the command below.
pip3 install -r requirements.txtArrange ImageNet data under a dataset directory with
trainandvalfolders, each containing class subdirectories.Pass the dataset location to the training script using
--data_path=/path/to/imagenet.
Expected outcome
VAR's listed dependencies are installed and the ImageNet data is arranged for use by a training script.
Guide limitations
- This guide covers preparation only; it does not document a complete training invocation or execution.
- Installing and compiling flash-attn and xformers is optional; the repository says they can speed up attention computation when installed.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 17 October 2026
- Original website title
- FoundationVision/VAR · Official homepage title · retained in its source language

