stepfun-ai / NextStep-1-Large-Pretrain

huggingface.co
Total runs: 24
24-hour runs: 0
7-day runs: 17
30-day runs: 17
Model's Last Updated: October 10 2025
text-to-image

Introduction of NextStep-1-Large-Pretrain

Model Details of NextStep-1-Large-Pretrain

NextStep-1: Toward Autoregressive Image Generation with Continuous Tokens at Scale

Homepage | GitHub | Paper

We introduce NextStep-1 , a 14B autoregressive model paired with a 157M flow matching head, training on discrete text tokens and continuous image tokens with next-token prediction objectives. NextStep-1 achieves state-of-the-art performance for autoregressive models in text-to-image generation tasks, exhibiting strong capabilities in high-fidelity image synthesis.

arch.
Environment Setup

To avoid potential errors when loading and running your models, we recommend using the following settings:

conda create -n nextstep python=3.11 -y
conda activate nextstep

pip install uv # optional

# please check and download requirements.txt in this repo
uv pip install -r requirements.txt

# diffusers==0.34.0
# einops==0.8.1
# gradio==5.42.0
# loguru==0.7.3
# numpy==1.26.4
# omegaconf==2.3.0
# Pillow==11.0.0
# Requests==2.32.4
# safetensors==0.5.3
# tabulate==0.9.0
# torch==2.5.1
# torchvision==0.20.1
# tqdm==4.67.1
# transformers==4.55.0
Usage
import torch
from transformers import AutoTokenizer, AutoModel
from models.gen_pipeline import NextStepPipeline

HF_HUB = "stepfun-ai/NextStep-1-Large-Pretrain"

# load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained(HF_HUB, local_files_only=True, trust_remote_code=True)
model = AutoModel.from_pretrained(HF_HUB, local_files_only=True, trust_remote_code=True)
pipeline = NextStepPipeline(tokenizer=tokenizer, model=model).to(device="cuda", dtype=torch.bfloat16)

# set prompts
positive_prompt = "masterpiece, film grained, best quality."
negative_prompt = "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry."
example_prompt = "A realistic photograph of a wall with \"NextStep-1.1 is coming\" prominently displayed"

# generate image from text
IMG_SIZE = 512
image = pipeline.generate_image(
    example_prompt,
    hw=(IMG_SIZE, IMG_SIZE),
    num_images_per_caption=1,
    positive_prompt=positive_prompt,
    negative_prompt=negative_prompt,
    cfg=7.5,
    cfg_img=1.0,
    cfg_schedule="constant",
    use_norm=False,
    num_sampling_steps=28,
    timesteps_shift=1.0,
    seed=3407,
)[0]
image.save("./assets/output.jpg")
Citation

If you find NextStep useful for your research and applications, please consider starring this repository and citing:

@article{nextstepteam2025nextstep1,
  title={NextStep-1: Toward Autoregressive Image Generation with Continuous Tokens at Scale},
  author={NextStep Team and Chunrui Han and Guopeng Li and Jingwei Wu and Quan Sun and Yan Cai and Yuang Peng and Zheng Ge and Deyu Zhou and Haomiao Tang and Hongyu Zhou and Kenkun Liu and Ailin Huang and Bin Wang and Changxin Miao and Deshan Sun and En Yu and Fukun Yin and Gang Yu and Hao Nie and Haoran Lv and Hanpeng Hu and Jia Wang and Jian Zhou and Jianjian Sun and Kaijun Tan and Kang An and Kangheng Lin and Liang Zhao and Mei Chen and Peng Xing and Rui Wang and Shiyu Liu and Shutao Xia and Tianhao You and Wei Ji and Xianfang Zeng and Xin Han and Xuelin Zhang and Yana Wei and Yanming Xu and Yimin Jiang and Yingming Wang and Yu Zhou and Yucheng Han and Ziyang Meng and Binxing Jiao and Daxin Jiang and Xiangyu Zhang and Yibo Zhu},
  journal={arXiv preprint arXiv:2508.10711},
  year={2025}
}

Runs of stepfun-ai NextStep-1-Large-Pretrain on huggingface.co

24
Total runs
0
24-hour runs
4
3-day runs
17
7-day runs
17
30-day runs

More Information About NextStep-1-Large-Pretrain huggingface.co Model

More NextStep-1-Large-Pretrain license Visit here:

https://choosealicense.com/licenses/apache-2.0

NextStep-1-Large-Pretrain huggingface.co

NextStep-1-Large-Pretrain huggingface.co is an AI model on huggingface.co that provides NextStep-1-Large-Pretrain's model effect (), which can be used instantly with this stepfun-ai NextStep-1-Large-Pretrain model. huggingface.co supports a free trial of the NextStep-1-Large-Pretrain model, and also provides paid use of the NextStep-1-Large-Pretrain. Support call NextStep-1-Large-Pretrain model through api, including Node.js, Python, http.

NextStep-1-Large-Pretrain huggingface.co Url

https://huggingface.co/stepfun-ai/NextStep-1-Large-Pretrain

stepfun-ai NextStep-1-Large-Pretrain online free

NextStep-1-Large-Pretrain huggingface.co is an online trial and call api platform, which integrates NextStep-1-Large-Pretrain's modeling effects, including api services, and provides a free online trial of NextStep-1-Large-Pretrain, you can try NextStep-1-Large-Pretrain online for free by clicking the link below.

stepfun-ai NextStep-1-Large-Pretrain online free url in huggingface.co:

https://huggingface.co/stepfun-ai/NextStep-1-Large-Pretrain

NextStep-1-Large-Pretrain install

NextStep-1-Large-Pretrain is an open source model from GitHub that offers a free installation service, and any user can find NextStep-1-Large-Pretrain on GitHub to install. At the same time, huggingface.co provides the effect of NextStep-1-Large-Pretrain install, users can directly use NextStep-1-Large-Pretrain installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

NextStep-1-Large-Pretrain install url in huggingface.co:

https://huggingface.co/stepfun-ai/NextStep-1-Large-Pretrain

Url of NextStep-1-Large-Pretrain

NextStep-1-Large-Pretrain huggingface.co Url

Provider of NextStep-1-Large-Pretrain huggingface.co

stepfun-ai
ORGANIZATIONS

Other API from stepfun-ai

huggingface.co

Total runs: 648.2K
Run Growth: -31.3K
Growth Rate: -4.83%
Updated:February 04 2025
huggingface.co

Total runs: 41.7K
Run Growth: 0
Growth Rate: 0.00%
Updated:January 29 2026
huggingface.co

Total runs: 4.2K
Run Growth: 0
Growth Rate: 0.00%
Updated:August 02 2025
huggingface.co

Total runs: 83
Run Growth: -209
Growth Rate: -251.81%
Updated:January 14 2026