StepFun Open-Sources 14B Continuous-Token Image Generation Model
StepFun has open-sourced NextStep-1, a 14B-parameter autoregressive model that models continuous image tokens directly, avoiding the information loss of diffusion models and VQ discretization. It pairs a standard LM head for text with a 157M-parameter flow matching head for visuals under a unified next-token prediction framework, and now has high-performance inference support via vLLM-Omni.
Related Entities
Full Report
Contents9 sections
NextStep-1:迈向大规模连续 Token 的自回归图像生成
自回归模型——像阅读句子一样逐步生成内容——在语言领域表现出色,但在图像领域却举步维艰。传统上,它们要么依赖昂贵的扩散模型,要么通过向量量化(VQ)将图像压缩为离散的有损 token。
NextStep-1 另辟蹊径:一个 14B 参数的自回归模型,直接使用连续图像 token,完整保留视觉数据的丰富性。它联合建模离散文本 token 序列和连续图像 token 序列——文本使用标准 LM head,视觉使用轻量级 157M 参数的流匹配 head。这一统一的下一 token 预测框架简单、可扩展,并能生成细节惊艳的图像。
🔥 动态
-
2026 年 2 月 25 日:vLLM-Omni 支持 NextStep-1.1 的高性能推理。详情请查看此处!
-
2026 年 2 月 16 日:NextStep-1 的训练代码(本仓库)以及 NextStep-1.1 的后训练博客(链接)已发布。欢迎讨论与贡献。新春快乐!
-
2026 年 2 月 6 日:NextStep-1 被 ICLR 2026 选为 Oral Presentation!🎉🎉🎉
-
2025 年 12 月 24 日:🔥 我们发布 NextStep-1.1,这是一个文生图模型,通过扩展训练和基于 Flow 的强化学习(RL)后训练范式,大幅提升了输出质量。欢迎使用我们 HF 仓库上托管的 checkpoint 进行体验!
Checkpoint 可在以下平台获取:
- 🤗 Hugging Face:
- 预训练:NextStep-1.1-Pretrain
- 后训练:NextStep-1.1
- 🇨🇳 ModelScope:
- 预训练:NextStep-1.1-Pretrain
- 后训练:NextStep-1.1
- 🤗 Hugging Face:
-
2025 年 8 月 18 日:👋 我们在 HuggingFace Spaces 上部署了 NextStep-1-Large-Edit。欢迎体验!
-
2025 年 8 月 18 日:👋 我们开放了微信群。欢迎加入我们!
-
2025年8月14日:👋 我们发布了 NextStep-1-Large-Pretrain、NextStep-1-Large 和 NextStep-1-Large-Edit 的推理代码及 huggingface 模型权重
-
2025年8月14日:👋 我们已将技术报告开源发布。
📦 安装与环境配置
1.1 克隆仓库
git clone https://github.com/stepfun-ai/NextStep-1
cd NextStep-11.2 创建 Conda 环境
conda create -n nextstep python=3.10 -y
conda activate nextstep1.3 安装依赖
⚠️ 注意:建议根据你的 CUDA 版本预先安装 PyTorch。
pip install uv
uv pip install -e .☕ 提示:安装过程可能需要一段时间。去冲杯咖啡,休息一下吧!☕
1.4 内置 CLI 工具
安装完成后,可使用以下 CLI 工具:
smartrun:智能分布式启动器,可自动封装torchrun参数。gen_meta:扫描数据集以生成元数据索引(样本数量、校验和等)。warmup_data:预热并缓存数据索引,显著加快训练启动速度。eshow:查看或比较实验配置。singlegpu_debug/multigpu_debug:用于远程接入的专用调试入口。
📥 模型与数据准备
2.1 下载模型权重
将模型下载到 ./nextstep_models。请更新 nextstep/model_zoos.py 中对应的路径。
bash download_models.sh☕ 提示:下载过程可能需要一段时间。去冲杯咖啡,休息一下吧!☕
可用模型
下表列出了所有可用模型及其训练阶段:
⚠️ 注意:NextStep-1 系列模型为旧版本,其性能不如 NextStep-1.1,因此我们不推荐使用。请改用 NextStep-1.1 系列模型。
💡 快速推理:如果你想快速对模型进行推理,请参考下方的推理脚本。
python3 inference/inference.py(注:更多技术实现细节与完整 API 文档请查阅原项目 README)