MCPcopy Index your code
hub / github.com/ThisisBillhe/NAR

github.com/ThisisBillhe/NAR @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
799 symbols 2,627 edges 89 files 94 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Neighboring Autoregressive Modeling for Efficient Visual Generation

arXiv  project page 

Demo Video

YOUTUBE

🔥 Update

  • [2025.03.17] C2i, t2i, c2v training and sampling code are released !

🌿 Introduction

We introduce NAR, a new "next-neighbor prediction" paradigm for efficient and high-quality visual generation. NAR achieves state-of-the-art generation quality and efficiency trade-off for both image and video generation tasks. All the training codes, data and models are open-sourced.

All pretrained models can be downloaded from HuggingFace.

BibTeX

@article{he2025nar,
  title={Neighboring Autoregressive Modeling for Efficient Visual Generation},
  author={He, Yefei and He, Yuanyu and He, Shaoxuan and Chen, Feng and Zhou, Hong and Zhang, Kaipeng and Zhuang, Bohan},
  journal={arXiv preprint arXiv:2503.10696},
  year={2025}
}

Core symbols most depended-on inside this repo

print
called by 186
NAR-images/utils/distributed.py
append
called by 120
NAR-videos/utils/fvd/fvd.py
item
called by 65
NAR-videos/utils/common.py
save
called by 39
NAR-videos/utils/fvd/fvd.py
load
called by 37
NAR-images/evaluations/c2i/evaluator.py
load
called by 22
NAR-videos/utils/fvd/fvd.py
update
called by 21
NAR-videos/models/larp_ar.py
get_feature_stats_for_batch
called by 19
NAR-videos/utils/fvd/fvd.py

Shape

Method 437
Function 246
Class 116

Languages

Python100%

Modules by API surface

NAR-images/evaluations/c2i/evaluator.py51 symbols
NAR-images/autoregressive/models/gpt.py49 symbols
NAR-videos/models/larp_ar.py43 symbols
NAR-videos/trainers/base_trainer.py35 symbols
NAR-images/tokenizer/tokenizer_image/vq_model.py35 symbols
NAR-videos/utils/fvd/fvd.py29 symbols
NAR-videos/models/larp_tokenizer.py29 symbols
NAR-videos/models/embed.py29 symbols
NAR-videos/models/bottleneck.py29 symbols
NAR-videos/models/loss.py27 symbols
NAR-videos/utils/common.py21 symbols
NAR-images/tokenizer/vqgan/layer.py20 symbols

For agents

$ claude mcp add NAR \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact