← Open Source
stepfun-ai

NextStep-1

[🚀 ICLR 2026 Oral] NextStep-1: SOTA Autogressive Image Generation with Continuous Tokens. A research project developed by the StepFun’s Multimodal Intelligence team.

ModelsFoundation modelsVision modelsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
695
Stars
26
Forks
+0
This week
4
Contributors
Created 2025-08-14 · Updated 2026-09-29 · #14891 today
Top developers
yuangpengliguopeng0923JingwWu

stepfun-ai/NextStep-1 is ranked 14,891 with 695 stars.

Same-category comparison

stepfun-ai/NextStep-1 is ranked 14,891 among these 8 peers; SimonZeng7108/efficientsam3 is ranked 14,895.

Same-category comparison
NameRankMetrics
facebookresearch/nwm14,852
Language:
Python
Stars:
698
Forks:
74
Description:
Official code for the CVPR 2025 paper "Navigation World Models".
instantX-research/Regional-Prompting-FLUX14,855
Language:
Python
Stars:
698
Forks:
31
Description:
Training-free Regional Prompting for Diffusion Transformers 🔥.
huyvnphan/PyTorch_CIFAR1014,865
Language:
Python
Stars:
697
Forks:
161
Description:
Pretrained TorchVision models on CIFAR10 dataset (with weights).
MeiGen-AI/OPSD-V14,880
Language:
Python
Stars:
695
Forks:
46
Description:
On-Policy Self-Distillation for Post-Training Few-Step Autoregressive Video Generators.
SimonZeng7108/efficientsam314,895
Language:
Jupyter Notebook
Stars:
694
Forks:
59
Description:
EfficientSAM3 compresses SAM3 into lightweight, edge-friendly models via progressive knowledge distillation for fast promptable concept segmentation and tracking.
bytedance/DreamID-V14,898
Language:
Python
Stars:
694
Forks:
96
Description:
[ECCV 2026 Oral] DreamID-V: Bridging the Image-to-Video Gap for High-Fidelity Face Swapping via Diffusion Transformer.
TIGER-AI-Lab/VLM2Vec14,911
Language:
Python
Stars:
693
Forks:
65
Description:
This repo contains the code for "VLM2Vec / MMEB" [ICLR 2025], "VLM2Vec-V2 / MMEB-V2" [TMLR 2026], and "MMEB-V3" [COLM 2026].
Giphy/celeb-detection-oss14,925
Language:
Python
Stars:
692
Forks:
68
Description:
GIPHY's Open-Source Celebrity Detection Deep Learning Model.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModels
SubcategoryFoundation models, Vision models
KeywordsImage production, Model architecture, Multimodal, Text-to-image
Stars695
Forks26
Contributors4
Created date2025-08-14
Updated date2026-09-29
Stars in 1 day0
Stars in 7 days0
Rank14,891
Previous rank14,727
Rank change-164
7-day stars rank14,705
Previous 7-day stars rank14,715
7-day stars rank change10
Total stars rank14,968
Previous total stars rank14,940
Total stars rank change-28
CountryChina
README summary

Traditionally, they either depend on costly diffusion models or compress images into discrete, lossy tokens via vector quantization (VQ). NextStep-1 takes a different path: a 14B-parameter autoregressive model that works directly with continuous image tokens, preserving the full richness of visual data. This unified next-token prediction framework is simple, scalable, and capable of producing stunningly detailed images. 25, 2026**: **vLLM-Omni** supports high performance inference of NextStep-1. 16, 2026**: The training code of NextStep-1 (this

repo) and the post-training blogs of NextStep-1. 6, 2026**: NextStep-1 has been selected as **Oral Presentation** by ICLR 2026! 1**, a text-to-image model that substantially elevates output quality through extended training and a Flow-based Reinforcement Learning (RL) post-training paradigm. Feel free to try with checkpoints hosted on our HF repo! Checkpoints are available on: 🤗 **Hugging Face**: 🇨🇳 **ModelScope**: **Aug. 18, 2025**: 👋 We deploy NextStep-1-Large-Edit on HuggingFace Spaces. 18, 2025**: 👋 We open

the WeChat Group. 14, 2025**: 👋 We release the inference code and huggingface model weights of NextStep-1-Large-Pretrain, NextStep-1-Large and NextStep-1-Large-Edit **Aug. 14, 2025**: 👋 We have made our technical report available as open source. 3 Process Custom Data (Optional) 🚀 Training 3. 3 Inspect and Compare Configurations 🔮 Inference 4. 3 Install Dependencies ⚠️ **Note**: Pre-installing PyTorch based on your CUDA version is recommended. ☕ **Tip**: This installation may take a while. 4 Built-in CLI Tools

The following CLI tools are available after installation: ** **: An intelligent distributed launcher that automatically wraps parameters. ** **: Scans datasets to generate metadata indices (sample counts, checksums, etc. ** **: Pre-warms and caches data indices to significantly speed up training startup. ** **: Inspect or compare experiment configurations. ** / **: Dedicated debug entries for remote attachment. 1 Download Model Weights Download models to . Please update the corresponding paths in . ☕ **Tip**: This download may take a while. Their performance is not as good as NextStep-1. 💡 **Quick Inference

**: If you want to quickly inference the model, refer to the inference script below. 2 Download Training Datasets Download datasets to . ☕ **Tip**: This download may take a while. ☕ ⚠️ **Important Note**: The datasets provided in are only example open-source datasets for demonstration purposes. NextStep's actual training utilized approximately **1 billion images** from proprietary in-house data sources that cannot be open-sourced. To achieve optimal training results, we strongly recommend collecting and preparing your own large-scale datasets following the

data processing guidelines in section 2. 3 Process Custom Data (Optional) 💡 **Skip this section** if you are only using the default datasets from step 2. Follow these steps to process custom data: 2. 1 Data Processing Convert raw data into the unified WebDataset (Tar) format. **Data Specification** (generates ): ** **: Must contain a field using placeholders to define the interleaved sequence. , matching the placeholders in the JSON. ⚠️ **Important**: The must **NOT** contain dots ( ) or hyphens ( ). You must use the script to ensure

correct indexing. **Modify and in the script to fit your specific data source. 2 Metadata Generation Calculate sample counts for

Frequently asked questions

How many stars and forks are recorded?

stepfun-ai/NextStep-1 has 695 stars and 26 forks.

What is the repository rank?

stepfun-ai/NextStep-1 is ranked 14,891.

What language and category are recorded?

stepfun-ai/NextStep-1 has 695 stars, uses Python and belongs to Models.

Which repository is closest in rank?

stepfun-ai/NextStep-1 is compared with SimonZeng7108/efficientsam3, ranked 14,895 with 694 stars.

README

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

    

Autoregressive models—generating content step-by-step like reading a sentence—excel in language but struggle with images. Traditionally, they either depend on costly diffusion models or compress images into discrete, lossy tokens via vector quantization (VQ).

NextStep-1 takes a different path: a 14B-parameter autoregressive model that works directly with continuous image tokens, preserving the full richness of visual data. It models sequences of discrete text tokens and continuous image tokens jointly—using a standard LM head for text and a lightweight 157M-parameter flow matching head for visuals. This unified next-token prediction framework is simple, scalable, and capable of producing stunningly detailed images.

🔥 News

  • Feb. 25, 2026: vLLM-Omni supports high performance inference of NextStep-1.1. Please check here for details!

  • Feb. 16, 2026: The training code of NextStep-1 (this repo) and the post-training blogs of NextStep-1.1 (link) have been released. Welcome to discuss and contribute. Happy Chinese New Year!

  • Feb. 6, 2026: NextStep-1 has been selected as Oral Presentation by ICLR 2026! 🎉🎉🎉

  • Dec. 24, 2025: 🔥 We release NextStep-1.1, a text-to-image model that substantially elevates output quality through extended training and a Flow-based Reinforcement Learning (RL) post-training paradigm. Feel free to try with checkpoints hosted on our HF repo!

    Checkpoints are available on:

  • Aug. 18, 2025: 👋 We deploy NextStep-1-Large-Edit on HuggingFace Spaces. Feel free to try it out!

  • Aug. 18, 2025: 👋 We open the WeChat Group. Feel free to join us!

  • Aug. 14, 2025: 👋 We release the inference code and huggingface model weights of NextStep-1-Large-Pretrain, NextStep-1-Large and NextStep-1-Large-Edit

  • Aug. 14, 2025: 👋 We have made our technical report available as open source.


📑 Table of Contents


📦 Installation & Environment

1.1 Clone the Repository

git clone https://github.com/stepfun-ai/NextStep-1
cd NextStep-1

1.2 Create Conda Environment

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

1.3 Install Dependencies

⚠️ Note: Pre-installing PyTorch based on your CUDA version is recommended.

pip install uv
uv pip install -e .

☕ Tip: This installation may take a while. Grab a cup of coffee and take a break! ☕

1.4 Built-in CLI Tools

The following CLI tools are available after installation:

  • smartrun: An intelligent distributed launcher that automatically wraps torchrun parameters.
  • gen_meta: Scans datasets to generate metadata indices (sample counts, checksums, etc.).
  • warmup_data: Pre-warms and caches data indices to significantly speed up training startup.
  • eshow: Inspect or compare experiment configurations.
  • singlegpu_debug / multigpu_debug: Dedicated debug entries for remote attachment.

📥 Model & Data Preparation

2.1 Download Model Weights

Download models to ./nextstep_models. Please update the corresponding paths in nextstep/model_zoos.py.

bash download_models.sh

☕ Tip: This download may take a while. Grab a cup of coffee and take a break! ☕

Available Models

The following table lists all available models and their training stages:

Model Pre-Training 256px Pre-Training 512px Annealing RL Visual Diversity Fine-Tunability Hugging Face
NextStep-1-f8ch16-Tokenizer ❌ ❌ ❌ ❌ - -
NextStep-1.1-Pretrain-256px ✅ ❌ ❌ ❌ High Easy
NextStep-1.1-Pretrain ✅ ✅ ✅ ❌ Medium Medium
NextStep-1.1 ✅ ✅ ✅ ✅ Low Hard
NextStep-1-Large-Pretrain ✅ ✅ ✅ ❌ High Medium
NextStep-1-Large ✅ ✅ ✅ ✅ Low Hard
NextStep-1-Large-Edit ✅ ✅ ✅ ✅ Low Hard

⚠️ Note: The models of NextStep-1 series are from the old version. Their performance is not as good as NextStep-1.1, so we do not recommend using them. Please use NextStep-1.1 series models instead.

💡 Quick Inference: If you want to quickly inference the model, refer to the inference script below.

python3 inference/inference.py

2.2 Download Training Datasets

Download datasets to ./nextstep_data.

bash download_datasets.sh

☕ Tip: This download may take a while. Grab a cup of coffee and take a break! ☕

⚠️ Important Note: The datasets provided in download_datasets.sh are only example open-source datasets for demonstration purposes. NextStep's actual training utilized approximately 1 billion images from proprietary in-house data sources that cannot be open-sourced. To achieve optimal training results, we strongly recommend collecting and preparing your own large-scale datasets following the data processing guidelines in section 2.3.

2.3 Process Custom Data (Optional)

💡 Skip this section if you are only using the default datasets from step 2.2. Follow these steps to process custom data:

2.3.1 Data Processing

Convert raw data into the unified WebDataset (Tar) format.

python3 nextstep/data/build_wds.py

Data Specification (generates assets/idx_0000_0000.tar):

  • key.json: Must contain a caption field using `` placeholders to define the interleaved sequence.
  • key-{i}.png: Images must be named key-0.png, key-1.png, etc., matching the placeholders in the JSON.
  • ⚠️ Important: The key must NOT contain dots (.) or hyphens (-). You must use the build_wds.py script to ensure correct indexing. Modify load_data and create_example in the script to fit your specific data source.

2.3.2 Metadata Generation

Calculate sample counts for each Tar file to build training indices.

gen_meta /path/to/your/dataset/root_dir

💡 After completion, update configs/data/pretrain_data.json and the corresponding Python data config files in configs/data with the new data.

2.3.3 Warmup Indices

Recommended for large-scale training to cache indices locally.

warmup_data /path/to/your/dataset/root_dir --n_jobs 32

2.3.4 Data Visualization

Preview data distribution and content in Tar files or configurations.

streamlit run nextstep/service/_preview.py --server.port 8501

2.3.5 W&B Credentials

Create a .config file in the root directory for experiment tracking. API key can be found at https://wandb.ai/settings

WANDB_MODE=online
WANDB_API_KEY=YOUR_WANDB_API_KEY
WANDB_BASE_URL=https://api.wandb.ai

🚀 Training

⚠️ Before training, please carefully review the configurations in the configs directory. You may need to modify the model or output paths in the configuration files.

3.1 Start Training (via smartrun)

Option 1: Start with the NextStep-1.1-Pretrain-256px model with small training steps (~10K)

smartrun -m configs.nextstep_qwen14b_512px

💡 This command automatically utilizes all available machine resources. If you run this command on a single machine, it is equivalent to: torchrun --nproc_per_node=8 --nnodes=1 --node_rank=0 -m configs.nextstep_qwen14b_512px

Option 2: Start with the Qwen2.5-14B model with very large training steps (~500K)

smartrun -m configs.nextstep_qwen14b_256px

3.2 Override Training Parameters

Override specific parameters during training:

smartrun -m configs.nextstep_qwen14b_512px \
  training.max_steps=1000 \
  training.save_steps=200 \
  data.num_workers=2

3.3 Inspect and Compare Configurations

View a single configuration:

eshow configs/nextstep_qwen14b_512px.py

Compare differences between two configurations (e.g., 256px vs 512px):

eshow configs/nextstep_qwen14b_256px.py configs/nextstep_qwen14b_512px.py

📌 Tips: Adjust specific parameters, configuration files, and data paths according to your situation. For detailed explanations, see configs/README.md.


🔮 Inference

4.1 Convert Checkpoint Format

Convert DeepSpeed sharded checkpoints to standard HuggingFace format:

python3 nextstep/deepspeed/zero_to_fp32.py /path/to/your/trained/checkpoint_dir

4.2 Run Inference

Basic inference:

python3 inference/inference.py --model_name_or_path /path/to/your/trained/checkpoint_dir

Quick start with default model:

python3 inference/inference.py

📖 Documentation

For detailed documentation on specific modules, please refer to:


📚 References

Core Frameworks

Datasets


📄 License

NextStep is licensed under the Apache License 2.0. You can find the license files in the respective GitHub and HuggingFace repositories.


📖 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}
}
Nearby in the ranking
Similar items