{"Code":200,"Data":{"AigcAttributes":"{}","AigcIsTop":0,"AigcType":"","AlreadyStar":false,"ApplyMeta":"{}","ApprovalMode":1,"ApprovalNotifyEmail":"","Architectures":["Step5ForConditionalGeneration"],"Avatar":"https://resources.modelscope.cn/avatar/660b6637-48c7-47b1-ab96-c7a06c23ef9b.png","Backbone":[],"BackendSupport":{"architectures":null,"backend_info":{"deploy_task":null,"lmdeploy":null,"lmdeploy_turbomind":null,"ollama":null,"sglang":null,"vllm":null},"model_id":"stepfun-ai/Step-5-Preview"},"BaseModel":[],"BaseModelRelation":"","CardReady":0,"CardUnreadyReason":"","CertificationCreateBy":"","CertificationCreatedTime":-62135596800,"ChineseName":"","CoverHeight":0,"CoverImages":[],"CoverWidth":0,"CreatedBy":"kelseye","CreatedTime":1789871708,"DashSdkParameter":"","Datasets":{},"DemoAvailable":0,"DemoUnavailableReason":"","Description":"","Domain":[],"Downloads":9889,"ExampleCodeAvailable":0,"ExampleCodeUnavailableReason":"","ForbiddenVisibilityUpdate":false,"Frameworks":[],"FromSite":"github","Id":1583653,"Integrating":0,"IntegrationFailureLog":"","IntegrationFailureReason":"","IsAccessible":1,"IsCertification":4,"IsHot":0,"IsNewModel":false,"IsOnline":1,"IsOrgClaimed":false,"IsPreTrain":0,"IsPublished":1,"IsTop":57,"Language":[],"LastUpdatedTime":1792029972,"Libraries":["safetensors"],"License":"other","LicenseLink":"","LicenseName":"","Meta":"","Metrics":[],"ModelDetail":{},"ModelInfos":{"safetensor":{"chat_template":"","files":[{"name":"model.safetensors.index.json","sha256":"bc899210bffffde7a8f28242801645b84fda8333cb0f319013e7ec79a4d79ab0","size":214332},{"name":"model-00001.safetensors","sha256":"95a1ffcb4002575d42bd5bfff32bed0f1db70efdc89f4ff999b88febe7a3341b","size":9657059160},{"name":"model-00002.safetensors","sha256":"f0f59e294e5d28697308a8c4a3782a4166a74df7b585840ef250279f370a8b80","size":27640029784},{"name":"model-00003.safetensors","sha256":"494c44c97bafde0bd2e83cbe5f80b2ce4a5b80c7efbc8f8b96f3428f6da83753","size":27640029832},{"name":"model-00004.safetensors","sha256":"fde51dd026fd9f96b323a9ce3874bd16b9dee3e6909f2e872744ed4b1985160a","size":27640029872},{"name":"model-00005.safetensors","sha256":"ca79704bff35cc49bf3fc7df656b7deefe8c268a8739a2f46852cdaf8e99e1e2","size":27640029872},{"name":"model-00006.safetensors","sha256":"c6ed7cf1b31fe7288676dd37d2fca4b07f15b52803527a409e11eca47344e4df","size":27640029872},{"name":"model-00007.safetensors","sha256":"ba6d5caf57620cd02f18d172b9ce9123459598cb21a56083701f531f281497e0","size":27640029872},{"name":"model-00008.safetensors","sha256":"4ba7c365e60c0608865c55b55890341495f8df6539eca4a33f86bb44c8e9f7f2","size":27640029872},{"name":"model-00009.safetensors","sha256":"4d900315a7be1c1fc6c0356ce166f06054827a48cc8d553ce8b5388a2d1429e9","size":27640029872},{"name":"model-00010.safetensors","sha256":"51953b3306afaef77b726e317e626fff5ab06652e0611a9afacebc0e50e08f23","size":27640029872},{"name":"model-00011.safetensors","sha256":"5f72119820a448399f6690e11245d3db215041ea67c46b0d6a786bd7620bf335","size":27640029872},{"name":"model-00012.safetensors","sha256":"5b453f65119c1ba1f9dadbede237980be354310035f401fb456bcc7d477cc500","size":27640029872},{"name":"model-00013.safetensors","sha256":"cd5f40028202b99a5d79be664baa28eb3e4663b9cccb5f23858724cb45171880","size":27640029872},{"name":"model-00014.safetensors","sha256":"f16d2fb2db0dbdd73629223805540b1f4bac6b2f7723c9ca6a97b97b2081648a","size":27640029872},{"name":"model-00015.safetensors","sha256":"e49c4e2c793c39b50aa38d28d79a1699236135938f1b655b69be0f1be1eb2d48","size":27640029872},{"name":"model-00016.safetensors","sha256":"a806ab06ed75963023944dc7fc73058dad563282874c9fb6e0429b2fdefc4b2d","size":27640029872},{"name":"model-00017.safetensors","sha256":"ac5fa540f25d293dc93f03235cd6afb15ed2f910543738172a31c87f8c81bc2c","size":27640029872},{"name":"model-00018.safetensors","sha256":"2f757785696b5bdd617fde8df2cc07e6fb1e465099e5e2fe8c1a8b8a6f68f188","size":27640029872},{"name":"model-00019.safetensors","sha256":"b2fa22da20d3c01c1eedb6e8c843d67de9a6759a531a42821ae60cd087f825cf","size":27640029872},{"name":"model-00020.safetensors","sha256":"6a019bbe342a09e97dca1a56d4c500384694bb1d08db916a2f2c733cb20c5f5f","size":27640029872},{"name":"model-00021.safetensors","sha256":"8bb9f66f06cc69dbc438e949b7acfd6990907cd35d6c15945ce9d9524a635a9e","size":27640029872},{"name":"model-00022.safetensors","sha256":"212c6d221d046c2e94b60a9c4632578edbbddc7fd6cda04ae83fb076ca980a08","size":27640029872},{"name":"model-00023.safetensors","sha256":"64160f45f60c2914ec1a573b3856a07fe90caf58642a140ee2b79c9b023be685","size":41220199832},{"name":"model-00024.safetensors","sha256":"cd74b35d85c47ca19263aa1b237001e9dc8e0dd5a4b475d47d4183206a1ac15e","size":3789131416},{"name":"model-mtp3-full-00001.safetensors","sha256":"33b25d792c58b25e26fc4b72b34da2a5a098e15cb075ac16fa9cb89fbdc6c068","size":5031847968},{"name":"model-vit-00001.safetensors","sha256":"16a65fcfdcc73a20abc9374a2db61909eb884712e817ca10ca8289c31c490823","size":3962113720}],"model_size":604339504832,"tensor_type":["F32","BF16","F8_E4M3"]}},"ModelRevisions":null,"ModelSource":"USER_UPLOAD","ModelTools":"","ModelType":["step5_vl"],"MuseInfo":null,"NEXA":{"Catalogues":null,"ModelCover":"","ScientificField":"","Source":"","SubScientificField":null},"Name":"Step-5-Preview","NewVersion":"","NickName":"kelseye","OfficialTags":null,"OpenAiSwingDeployInfo":{"Order":0,"Recommend":null,"lmdeploy":{"eas":{"Script":"","requirements":""},"ens":{"Script":"","requirements":""},"fc":{"Script":"","requirements":""},"image_tag":""},"ollama":{"eas":{"Script":"","requirements":""},"ens":{"Script":"","requirements":""},"fc":{"Script":"","requirements":""},"image_tag":""},"pipeline":{"eas":{"Script":"","requirements":""},"ens":{"Script":"","requirements":""},"fc":{"Script":"","requirements":""},"image_tag":""},"vllm":{"eas":{"Script":"","requirements":""},"ens":{"Script":"","requirements":""},"fc":{"Script":"","requirements":""},"image_tag":""}},"Organization":{"ApplyFailureReason":"","ApplyReason":"","Avatar":"https://resources.modelscope.cn/avatar/5c948a2f-8e61-49e1-99c0-6615104149d3.png","CreateCompetition":false,"CreatedBy":"Cherrytest","Description":"[\"root\",{},[\"p\",{},[\"span\",{\"data-type\":\"text\"},[\"span\",{\"data-type\":\"leaf\"},\"欢迎来到 StepFun 🙋\"]]],[\"p\",{},[\"span\",{\"data-type\":\"text\"},[\"span\",{\"data-type\":\"leaf\"},\"StepFun 成立于 2023 年 4 月，其使命是“为每个人扩大可能性”，它汇集了来自国内外的人工智能顶尖人才，致力于向 AGI 迈进。该公司已经推出了 Step 系列基础模型，其中包括 Step-2（一种尖端的万亿参数混合专家 (MoE) 语言模型）、Step-1.5V（一种强大的多模态大型模型）和 Step-1X（一种创新的图像生成模型）等。\"]]]]","DisplayUrl":"","Email":"","EmailDomain":"","FollowerCnt":0,"FromSite":"","FullName":"阶跃星辰","GithubAddress":" https://www.stepfun.com/","GmtCreated":"2024-09-23T09:42:42Z","GmtModified":"2026-11-09T09:15:32Z","Id":1047,"InitAdminMembers":"","IsApply":false,"IsCertification":"","MemberCnt":0,"Mobile":"","Name":"stepfun-ai","Path":"","Roles":null,"SocialLinks":null,"StarCnt":0,"Status":0,"SubscribeVo":null,"Type":2},"PaiModelGalleryUrl":null,"PaiSdkParameter":null,"Path":"stepfun-ai","PreReleaseData":{"AlreadyStar":false,"Description":"面向真实世界 Agentic 任务的旗舰基座模型","Enabled":false,"Introduce":"# Step 5 Preview\n\nStep-5-Preview 在 AI 编程、软件工程、专业知识工作等任务上达到前沿水平，并在金融领域展现出尤为突出的能力。模型采用稀疏 MoE 架构，总参数量 600B，每个 Token 激活 27B 参数，支持 1M Token 上下文窗口和视觉输入。\n\n\n\u003cbr /\u003e\n\n## 亮点\n\n**智能与成本：关注能力，也关注实际使用效率**。对于这一代模型，我们关注的不只是智能上限本身，也包括达到这一智能水平所需要的成本。随着 Agent 任务变得更长、更复杂，模型的实际使用成本会直接影响它是否能进入更多真实场景，以及能否支持更大规模的工作负载。从公开评测到内部测试，Step-5-Preview 在软件工程、Agent、专业工作和金融等多个方向上都取得了有竞争力的结果。\n\n![aa-chart](https://modelscope.oss-cn-beijing.aliyuncs.com/data/stepfun-perf-0.png)\n\n在 Artificial Analysis Intelligence Index 上，Step-5-Preview 获得 44 分。而在相近智能水平下，它的 Task Cost 明显更低。\n\n![aa-chart](https://modelscope.oss-cn-beijing.aliyuncs.com/data/stepfun-perf-1.png)\n\n\u003cbr /\u003e\n\n## 获取最新动态\n\n点击「点赞并获取通知」，我们将在模型发布的第一时间通知您。届时，您可在本页面获取 Step-5-Preview 的开源模型最新相关资源。\n\n\u003cbr /\u003e\n\n\n","PlannedArtifacts":["stepfun-ai/Step-5-Preview"],"ReleaseDate":"2026-10-15T03:00:00.000Z","Stars":279,"SubscriberSample":[{"Avatar":"https://img.alicdn.com/imgextra/i1/O1CN01yhHrHg1Pdl3UKPhGc_!!6000000001864-2-tps-88-88.png","Name":"AIGCwhite"},{"Avatar":"https://img.alicdn.com/imgextra/i1/O1CN01yhHrHg1Pdl3UKPhGc_!!6000000001864-2-tps-88-88.png","Name":"kqgyl2026"},{"Avatar":"https://img.alicdn.com/imgextra/i1/O1CN01yhHrHg1Pdl3UKPhGc_!!6000000001864-2-tps-88-88.png","Name":"dianxing321"},{"Avatar":"https://img.alicdn.com/imgextra/i1/O1CN01yhHrHg1Pdl3UKPhGc_!!6000000001864-2-tps-88-88.png","Name":"chen2014"}],"UiConfig":"{\"modelNameImageUrl\":\"https://resources.modelscope.cn/models/pre-release/dce4b8c4-e4d1-44a6-9e26-fd338941ac3a.png\",\"modelLogoImageUrl\":\"https://resources.modelscope.cn/models/pre-release/96ab8e3a-6cd5-4f32-bc95-67c5207db88f.png\",\"theme\":{\"darkBgColor\":\"#0d0c0c\"}}"},"ProtectedMode":2,"ReadMeContent":"\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://cdn-uploads.huggingface.co/production/uploads/65dc9de42a6348b052a3286e/-R9DERgmQiBfO2cF0HXoD.png\" alt=\"StepFun logo\" width=\"64\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eStep 5 Preview\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eStepFun's flagship model for agentic work\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  600B total parameters \u0026nbsp;·\u0026nbsp; 27B active parameters \u0026nbsp;·\u0026nbsp; Up to 1M context\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://huggingface.co/stepfun-ai/Step-5-Preview\"\u003e\u003cimg src=\"https://img.shields.io/badge/Hugging_Face-FP8-FFD21E?style=flat-square\" alt=\"Hugging Face FP8\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://huggingface.co/stepfun-ai/Step-5-Preview-BF16\"\u003e\u003cimg src=\"https://img.shields.io/badge/Hugging_Face-BF16-FFD21E?style=flat-square\" alt=\"Hugging Face BF16\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://modelscope.ai/models/stepfun-ai/Step-5-Preview\"\u003e\u003cimg src=\"https://img.shields.io/badge/ModelScope-FP8-624AFF?style=flat-square\" alt=\"ModelScope FP8\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://modelscope.ai/models/stepfun-ai/Step-5-Preview-BF16\"\u003e\u003cimg src=\"https://img.shields.io/badge/ModelScope-BF16-624AFF?style=flat-square\" alt=\"ModelScope BF16\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.stepfun.com/step-5-preview\"\u003e\u003cimg src=\"https://img.shields.io/badge/Model_Page-00BFA5?style=flat-square\" alt=\"Model Page\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://platform.stepfun.ai/docs/en/guides/models/step-5-preview\"\u003e\u003cimg src=\"https://img.shields.io/badge/Documentation-2563EB?style=flat-square\" alt=\"Documentation\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://platform.stepfun.ai/\"\u003e\u003cimg src=\"https://img.shields.io/badge/API_Platform-7C3AED?style=flat-square\" alt=\"API Platform\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#introduction\"\u003eIntroduction\u003c/a\u003e \u0026nbsp;·\u0026nbsp;\n  \u003ca href=\"#key-capabilities\"\u003eCapabilities\u003c/a\u003e \u0026nbsp;·\u0026nbsp;\n  \u003ca href=\"#model-specifications\"\u003eSpecifications\u003c/a\u003e \u0026nbsp;·\u0026nbsp;\n  \u003ca href=\"#performance\"\u003ePerformance\u003c/a\u003e \u0026nbsp;·\u0026nbsp;\n  \u003ca href=\"#deployment\"\u003eDeployment\u003c/a\u003e \u0026nbsp;·\u0026nbsp;\n  \u003ca href=\"#resources\"\u003eResources\u003c/a\u003e \u0026nbsp;·\u0026nbsp;\n  \u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## Introduction\n\nStep 5 Preview is StepFun's flagship model for agentic work. It delivers frontier-level performance across software engineering and professional knowledge work, with particular strength in finance.\n\nStep 5 Preview is a sparse Mixture-of-Experts (MoE) model with 600B total parameters and 27B active parameters. It supports up to 1 million tokens of context and accepts text, images, and video, enabling sustained reasoning and tool use across complex tasks.\n\n## Key Capabilities\n\n### Software Engineering\n\nStep 5 Preview supports repository-level software engineering, frontend and visual development, and programming for devices. It can navigate large codebases, coordinate changes across files, run and verify code, and iterate on the results.\n\n### Long-Horizon Agentic Execution\n\nStep 5 Preview can carry out tasks that require repeated tool calls, execution, verification, and revision, drawing on long-context information throughout the workflow.\n\n### Professional Knowledge Work\n\nThe model combines research, multimodal understanding, and tool use to analyze long documents, charts, screenshots, images, and video, and produce structured reports and analyses.\n\n### A Focus on Finance\n\nStep 5 Preview is particularly strong in financial tasks that combine quantitative reasoning with analysis of financial data and supporting documents.\n\n## Model Specifications\n\n| Specification | Step 5 Preview |\n| --- | --- |\n| Architecture | Sparse Mixture-of-Experts (MoE) |\n| Total Parameters | 600B |\n| Active Parameters | 27B |\n| Context Window | Up to 1M tokens |\n| Maximum Output | Up to 1M tokens |\n| Input | Text, image |\n| Output | Text |\n\n## Performance\n\nThe following results summarize Step 5 Preview's performance across coding, agentic tasks, professional knowledge work, and finance.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://cdn-uploads.huggingface.co/production/uploads/65dc9de42a6348b052a3286e/mfY2eltwq9TlXWlK6lx7K.png\" alt=\"Step 5 Preview benchmark results across coding, agentic tasks, professional knowledge work, and finance\" width=\"100%\" /\u003e\n\u003c/p\u003e\n\n### Evaluation Notes\n\n- Recommended inference settings: `temperature=1.0`, `top_p=0.95`, `top_k=0`.\n- Step 5 Preview results shown above use the **High** reasoning setting.\n- GDPval-AA v2.1 scores are based on results from [Artificial Analysis](https://artificialanalysis.ai/) as of September 20, 2026.\n- DeepSWE v1.1 evaluations use the [SWE-agent](https://github.com/SWE-agent/SWE-agent) harness with `temperature=1.0` and `top_p=0.95`.\n\nFor evaluation context, methodology, and detailed case studies, see the [Step 5 Preview Model Page](https://www.stepfun.com/step-5-preview).\n\n## Deployment\n\nStep 5 Preview can be served through an OpenAI-compatible API with vLLM or SGLang, or used for offline generation with the standalone Transformers implementation. The examples below cover FP8 and BF16 checkpoints.\n\nUse a framework build that includes Step 5 Preview support, including the reasoning, tool-call, and speculative decoding features used in the serving commands.\n\n### Deployment Configurations\n\n| Framework | Precision | Hardware | Parallelism | Interface |\n| --- | --- | --- | --- | --- |\n| vLLM | FP8 | One B300 node, 4 GPUs | TP4, TEP4, or DEP4 | OpenAI-compatible API |\n| vLLM | FP8 | One H200 node, 8 GPUs | TP8, TEP8, or DEP8 | OpenAI-compatible API |\n| vLLM | BF16 | One B300 node, 8 GPUs | TP8, TEP8, or DEP8 | OpenAI-compatible API |\n| vLLM | BF16 | Two H200 nodes, 16 GPUs | TP16, TEP16, or DEP16 | OpenAI-compatible API |\n| Transformers | FP8 | One H200 node, 8 GPUs | TP8 / EP8 | Offline generation |\n| Transformers | BF16 | Two H200 nodes, 16 GPUs | TP16 / EP16 | Offline generation (see validation note below) |\n| SGLang | FP8 | One B300 node, 4 GPUs | TP4/EP4 | OpenAI-compatible API |\n| SGLang | FP8 | One H200 node, 8 GPUs | TP8/EP8 | OpenAI-compatible API |\n\n\nDP, TP, and EP refer to data, tensor, and expert parallelism, respectively. TEP combines tensor and expert parallelism; DEP combines data and expert parallelism. These example configurations are sized for the deployments below. Actual memory requirements, usable context length, and concurrency vary with the checkpoint, inference framework, and KV cache allocation.\n\n**Deployment guides:** [vLLM](#vllm) · [Transformers](#transformers) · [SGLang](#sglang) · [Send a Request](#send-a-request)\n\n### vLLM\n\nThe examples below expose Step 5 Preview through an OpenAI-compatible API at port `18000`, with `step5` as the model name used in requests.\n\n#### Environment Setup\n\nPull the Step 5 Preview image and start an interactive container with GPU access:\n\n```bash\ndocker pull vllm/vllm-openai:step-5-preview\n\ndocker run --rm -it \\\n    --gpus all \\\n    --ipc=host \\\n    --network=host \\\n    --volume \"$HOME/.cache/huggingface:/root/.cache/huggingface\" \\\n    --entrypoint /bin/bash \\\n    vllm/vllm-openai:step-5-preview\n```\n\nRun the serving commands below inside the container. If the checkpoint requires authentication, sign in with `hf auth login` before starting the server.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eFP8: Single Node on 4 B300 GPUs\u003c/strong\u003e\u003c/summary\u003e\n\nChoose one of the following parallel configurations for a single node with four B300 GPUs:\n\n| Mode | Tensor parallel | Data parallel | Expert parallel |\n| :---: | :---: | :---: | :---: |\n| TP4 | 4 | 1 | Disabled |\n| TEP4 | 4 | 1 | 4 |\n| DEP4 | 1 | 4 | 4 |\n\nMake all four GPUs visible, then run the command for your chosen configuration:\n\n```bash\nexport CUDA_VISIBLE_DEVICES=0,1,2,3\n```\n\nOn B300 (Blackwell), the TEP4 and DEP4 commands select MegaMoE with `--moe-backend deep_gemm_mega_moe`. The TP4 command uses the default MoE backend, since MegaMoE requires expert parallelism.\n\n##### TP4: Tensor Parallelism\n\n```bash\nvllm serve stepfun-ai/Step-5-Preview \\\n    --host 0.0.0.0 \\\n    --port 18000 \\\n    --served-model-name \"step5\" \\\n    --tensor-parallel-size 4 \\\n    --data-parallel-backend mp \\\n    --distributed-executor-backend mp \\\n    --disable-custom-all-reduce \\\n    --max-model-len 1048576 \\\n    --max-num-batched-tokens 16384 \\\n    --max-num-seqs 64 \\\n    --gpu-memory-utilization 0.85 \\\n    --enable-prefix-caching \\\n    --spec-method mtp \\\n    --spec-tokens 3 \\\n    --reasoning-parser step5 \\\n    --enable-auto-tool-choice \\\n    --tool-call-parser step5\n```\n\n##### TEP4: Tensor and Expert Parallelism\n\n```bash\nvllm serve stepfun-ai/Step-5-Preview \\\n    --host 0.0.0.0 \\\n    --port 18000 \\\n    --served-model-name \"step5\" \\\n    --tensor-parallel-size 4 \\\n    --enable-expert-parallel \\\n    --moe-backend deep_gemm_mega_moe \\\n    --data-parallel-backend mp \\\n    --distributed-executor-backend mp \\\n    --disable-custom-all-reduce \\\n    --max-model-len 1048576 \\\n    --max-num-batched-tokens 16384 \\\n    --max-num-seqs 64 \\\n    --gpu-memory-utilization 0.85 \\\n    --enable-prefix-caching \\\n    --spec-method mtp \\\n    --spec-tokens 3 \\\n    --reasoning-parser step5 \\\n    --enable-auto-tool-choice \\\n    --tool-call-parser step5\n```\n\n##### DEP4: Data and Expert Parallelism\n\n```bash\nvllm serve stepfun-ai/Step-5-Preview \\\n    --host 0.0.0.0 \\\n    --port 18000 \\\n    --served-model-name \"step5\" \\\n    --tensor-parallel-size 1 \\\n    --data-parallel-size 4 \\\n    --enable-expert-parallel \\\n    --moe-backend deep_gemm_mega_moe \\\n    --data-parallel-backend mp \\\n    --distributed-executor-backend mp \\\n    --disable-custom-all-reduce \\\n    --max-model-len 1048576 \\\n    --max-num-batched-tokens 16384 \\\n    --max-num-seqs 64 \\\n    --gpu-memory-utilization 0.85 \\\n    --enable-prefix-caching \\\n    --spec-method mtp \\\n    --spec-tokens 3 \\\n    --reasoning-parser step5 \\\n    --enable-auto-tool-choice \\\n    --tool-call-parser step5\n```\n\n##### FP8 on H200\n\nFor a single node with eight H200 GPUs, adapt one of the B300 commands above:\n\n1. Set `CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7`.\n2. For TP8 or TEP8, set `--tensor-parallel-size 8`. For DEP8, keep `--tensor-parallel-size 1` and set `--data-parallel-size 8`.\n3. For TEP8 or DEP8, retain `--enable-expert-parallel` and remove `--moe-backend deep_gemm_mega_moe`; H200 (Hopper) uses the default MoE backend.\n\nTP and TEP use DP=1; DEP uses TP=1. In all configurations, `--max-num-seqs` applies per DP rank. The 1M-token context limit covers input and output combined. If KV cache memory is insufficient, reduce `--max-model-len` or concurrency.\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eBF16\u003c/strong\u003e\u003c/summary\u003e\n\nBF16 deployments require a BF16 checkpoint. Setting `--dtype bfloat16` on the FP8 checkpoint does not convert its quantized weights to BF16.\n\nMount the BF16 checkpoint directory at the same path inside the container, then set `MODEL` to that path:\n\n```bash\nexport MODEL=\"\u003cSTEP5_BF16_MODEL_PATH\u003e\"\n```\n\nChoose a configuration for your hardware:\n\n| Hardware | BF16 layout | MoE backend |\n| :---: | :---: | :---: |\n| 8 B300 GPUs | TP8, TEP8, or DEP8 | MegaMoE for TEP/DEP; default for TP |\n| 2 × 8 H200 GPUs | TP16, TEP16, or DEP16 | Default |\n\nThese configurations provide a starting point for loading the BF16 weights. They do not guarantee enough memory for a 1M-token request; KV cache and runtime buffers also require GPU memory.\n\n##### B300: One Node, 8 GPUs\n\nSet `CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7` inside the container. Start from the [TP4 command](#tp4-tensor-parallelism), replace `stepfun-ai/Step-5-Preview` with `\"$MODEL\"`, and replace `--tensor-parallel-size 4` with one of the argument sets below:\n\n| Mode | Parallel arguments |\n| :---: | :--- |\n| TP8 | `--tensor-parallel-size 8` |\n| TEP8 | `--tensor-parallel-size 8 --enable-expert-parallel --moe-backend deep_gemm_mega_moe` |\n| DEP8 | `--tensor-parallel-size 1 --data-parallel-size 8 --enable-expert-parallel --moe-backend deep_gemm_mega_moe` |\n\nRetain the remaining serving arguments, including `--served-model-name \"step5\"`, `--reasoning-parser step5`, and `--tool-call-parser step5`.\n\n##### H200: Two Nodes, 16 GPUs\n\nUse the same BF16 checkpoint path and container image on both nodes. Replace `\u003cNODE_0_IP\u003e` below with node 0's high-speed-network IP, reachable from node 1. H200 uses the default MoE backend; omit `--moe-backend deep_gemm_mega_moe`.\n\nOn each node:\n\n1. Set `MODEL` to the mounted BF16 checkpoint path and `CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7`.\n2. Start from the [TP4 command](#tp4-tensor-parallelism) and replace `stepfun-ai/Step-5-Preview` with `\"$MODEL\"`.\n3. Remove `--host`, `--port`, and `--tensor-parallel-size` from that command, then insert the argument block for your configuration and node below. These blocks contain arguments to append to `vllm serve`, rather than standalone commands.\n\nKeep all other serving arguments, including `--data-parallel-backend mp`, `--distributed-executor-backend mp`, the model name, and both parsers. Run one completed command per node. Only node 0 exposes the API, on port `18000`.\n\n**TP16 / TEP16**\n\nFor TP16, use the following arguments. For TEP16, also add `--enable-expert-parallel` on both nodes. Both configurations use DP=1.\n\nNode 0:\n\n```text\n--host 0.0.0.0 \\\n--port 18000 \\\n--tensor-parallel-size 16 \\\n--nnodes 2 \\\n--node-rank 0 \\\n--master-addr \u003cNODE_0_IP\u003e\n```\n\nNode 1:\n\n```text\n--tensor-parallel-size 16 \\\n--nnodes 2 \\\n--node-rank 1 \\\n--master-addr \u003cNODE_0_IP\u003e \\\n--headless\n```\n\n**DEP16**\n\nDEP16 uses TP=1 and distributes the experts across 16 data-parallel ranks, with eight ranks on each node. Use the same data-parallel address and RPC port on both nodes.\n\nNode 0:\n\n```text\n--host 0.0.0.0 \\\n--port 18000 \\\n--tensor-parallel-size 1 \\\n--data-parallel-size 16 \\\n--data-parallel-size-local 8 \\\n--data-parallel-address \u003cNODE_0_IP\u003e \\\n--data-parallel-rpc-port 29550 \\\n--enable-expert-parallel\n```\n\nNode 1:\n\n```text\n--tensor-parallel-size 1 \\\n--data-parallel-size 16 \\\n--data-parallel-size-local 8 \\\n--data-parallel-start-rank 8 \\\n--data-parallel-address \u003cNODE_0_IP\u003e \\\n--data-parallel-rpc-port 29550 \\\n--enable-expert-parallel \\\n--headless\n```\n\n\u003c/details\u003e\n\n### Transformers\n\nThe standalone implementation converts checkpoints into shards for offline generation. With its dependencies installed, run the following commands from the `inference/` directory:\n\n```bash\ncd inference\n```\n\nUse separate checkpoints and output directories for FP8 and BF16. Conversion preserves the source dtype, and generation runs offline without an API server.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eFP8: One H200 Node, 8 GPUs\u003c/strong\u003e\u003c/summary\u003e\n\nConvert the FP8 checkpoint once, then launch eight local processes for TP8 / EP8 generation:\n\n```bash\nexport STEP5_FP8_CHECKPOINT=\"\u003cFP8_CHECKPOINT_DIRECTORY\u003e\"\nexport STEP5_FP8_OUT=\"\u003cFP8_SHARD_OUTPUT_DIRECTORY\u003e\"\n\npython3 convert.py \\\n  --checkpoint \"$STEP5_FP8_CHECKPOINT\" \\\n  --tp-size 8 --ep-size 8 --check-only\n\npython3 convert.py \\\n  --checkpoint \"$STEP5_FP8_CHECKPOINT\" \\\n  --out-dir \"$STEP5_FP8_OUT\" \\\n  --tp-size 8 --ep-size 8\n\ntorchrun --standalone --nproc-per-node=8 generate.py \\\n  --tp-dir \"$STEP5_FP8_OUT/tp8\" --ep-size 8 \\\n  --prompt \"Please introduce tensor parallelism.\" \\\n  --max-new-tokens 128\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eBF16: Two H200 Nodes, 16 GPUs\u003c/strong\u003e\u003c/summary\u003e\n\nFor TP16 / EP16 generation across two nodes, first convert the BF16 checkpoint into 16 shards. Make the resulting `tp16/` and `tokenizer_files/` directories accessible to both nodes:\n\n```bash\nexport STEP5_BF16_CHECKPOINT=\"\u003cBF16_CHECKPOINT_DIRECTORY\u003e\"\nexport STEP5_BF16_OUT=\"\u003cBF16_SHARD_OUTPUT_DIRECTORY\u003e\"\n\npython3 convert.py \\\n  --checkpoint \"$STEP5_BF16_CHECKPOINT\" \\\n  --tp-size 16 --ep-size 16 --check-only\n\npython3 convert.py \\\n  --checkpoint \"$STEP5_BF16_CHECKPOINT\" \\\n  --out-dir \"$STEP5_BF16_OUT\" \\\n  --tp-size 16 --ep-size 16\n```\n\nThen run the command below on each node, using the same `MASTER_ADDR`, `MASTER_PORT`, and shard output path. Set `NODE_RANK=0` on node 0 and `NODE_RANK=1` on node 1:\n\n```bash\nexport STEP5_BF16_OUT=\"\u003cBF16_SHARD_OUTPUT_DIRECTORY\u003e\"\nexport MASTER_ADDR=\"\u003cNODE_0_REACHABLE_IP_OR_HOSTNAME\u003e\"\nexport MASTER_PORT=29500\nexport NODE_RANK=0  # Set to 1 on node 1.\n\ntorchrun --nnodes=2 --nproc-per-node=8 \\\n  --node-rank=\"$NODE_RANK\" \\\n  --master-addr=\"$MASTER_ADDR\" \\\n  --master-port=\"$MASTER_PORT\" \\\n  generate.py \\\n  --tp-dir \"$STEP5_BF16_OUT/tp16\" --ep-size 16 \\\n  --prompt \"Please introduce tensor parallelism.\" \\\n  --max-new-tokens 128\n```\n\nThis launches 16 processes across the two nodes, matching the 16-shard checkpoint and `--ep-size 16`. The two-node launch uses a shared rendezvous address rather than `--standalone`.\n\n**BF16 validation:** The full BF16 `convert.py → generate.py --tp-dir` file-shard workflow has not yet been validated end to end. The reference implementation has validated checkpoint names and shapes, BF16 small-model conversion, loading and generation, and full-model streaming-weight inference.\n\n\u003c/details\u003e\n\n### SGLang\n\n\n#### Environment Setup\n\nPull the Step 5 Preview SGLang Docker image:\n\n```bash\ndocker pull lmsysorg/sglang:step-5-preview\n```\n\nThen, launch the server using the configuration for your hardware. For more optimized configurations, including MegaMoE, attention data parallelism and HiCache, see the [SGLang Cookbook for Step 5 Preview](https://docs.sglang.io/cookbook/autoregressive/StepFun/Step-5-Preview).\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eB300: TP4/EP4, 4 GPUs\u003c/strong\u003e\u003c/summary\u003e\n\nUses MegaMoE for the FP8 routed experts.\n\n```bash\nexport CUDA_VISIBLE_DEVICES=0,1,2,3\n\npython -m sglang.launch_server \\\n  --trust-remote-code \\\n  --model-path stepfun-ai/Step-5-Preview \\\n  --served-model-name step5 \\\n  --tp 4 \\\n  --ep-size 4 \\\n  --moe-runner-backend flashinfer_trtllm \\\n  --moe-a2a-backend megamoe \\\n  --attention-backend fa4 \\\n  --page-size 64 \\\n  --kv-cache-dtype bfloat16 \\\n  --mem-fraction-static 0.9 \\\n  --swa-full-tokens-ratio 0.03 \\\n  --chunked-prefill-size 16384 \\\n  --max-running-requests 64 \\\n  --cuda-graph-backend-prefill breakable \\\n  --flashinfer-allreduce-fusion-backend trtllm \\\n  --speculative-algorithm EAGLE \\\n  --speculative-num-steps 3 \\\n  --speculative-eagle-topk 1 \\\n  --speculative-num-draft-tokens 4 \\\n  --enable-multi-layer-eagle \\\n  --reasoning-parser step5 \\\n  --tool-call-parser step5 \\\n  --host 0.0.0.0 \\\n  --port 30000\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eH200: TP8/EP8, 8 GPUs\u003c/strong\u003e\u003c/summary\u003e\n\nFor single-node H200 serving with Triton MoE and FA3 attention.\n\n```bash\nexport CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7\n\npython -m sglang.launch_server \\\n  --trust-remote-code \\\n  --model-path stepfun-ai/Step-5-Preview \\\n  --served-model-name step5 \\\n  --tp 8 \\\n  --ep-size 8 \\\n  --moe-runner-backend triton \\\n  --attention-backend fa3 \\\n  --page-size 64 \\\n  --kv-cache-dtype bfloat16 \\\n  --mem-fraction-static 0.9 \\\n  --swa-full-tokens-ratio 0.03 \\\n  --chunked-prefill-size 16384 \\\n  --max-running-requests 64 \\\n  --cuda-graph-backend-prefill breakable \\\n  --flashinfer-allreduce-fusion-backend trtllm \\\n  --speculative-algorithm EAGLE \\\n  --speculative-num-steps 3 \\\n  --speculative-eagle-topk 1 \\\n  --speculative-num-draft-tokens 4 \\\n  --enable-multi-layer-eagle \\\n  --reasoning-parser step5 \\\n  --tool-call-parser step5 \\\n  --host 0.0.0.0 \\\n  --port 30000\n```\n\n\u003c/details\u003e\n\n### Send a Request\n\nOnce the server is ready, use the base URL for your deployment:\n\n| Serving configuration | Base URL on the server host |\n| --- | --- |\n| vLLM FP8 | `http://localhost:18000` |\n| vLLM BF16 | `http://localhost:18000` (node 0) |\n| SGLang FP8 | `http://localhost:30000` |\n\nThe example below targets vLLM FP8:\n\n```bash\ncurl http://127.0.0.1:18000/v1/chat/completions \\\n    --header 'Content-Type: application/json' \\\n    --data '{\n      \"model\": \"step5\",\n      \"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}],\n      \"max_tokens\": 4096,\n      \"stream\": true\n    }'\n```\n\n## Resources\n\n- [Step 5 Preview Model Page](https://www.stepfun.com/step-5-preview) — Model overview, evaluation context, and long-horizon case studies.\n- [Documentation](https://platform.stepfun.ai/docs/en/guides/models/step-5-preview) — Official documentation and developer guides.\n- [API Platform](https://platform.stepfun.ai/) — Model access and platform services.\n- [StepFun Website](https://www.stepfun.com/) — Company information and model announcements.\n\n## License\n\nThis model, including its weights, parameters, configuration, tokenizer, model-specific code, and documentation, is licensed under the StepFun Model License 1.0. The full text of the License is available in the [LICENSE.txt](https://huggingface.co/stepfun-ai/Step-5-Preview/blob/main/LICENSE.txt) file in this repository. The StepFun Model License 1.0 is an Apache-2.0-Style license, with additional attribution and commercial-license conditions specific to model use, modification and distribution.\n\nWhere accompanying materials in this repository, including sample code, datasets, third-party components and other documentation, are separately marked as subject to a different license, such materials are licensed under that license.\n\n","ReadMeTips":null,"RelatedArxivId":[],"RelatedPaper":[],"Revision":"master","Stars":279,"StorageSize":650320094629,"Studios":[],"SubVisionFoundation":"","SupportApiInference":false,"SupportDashDeployment":0,"SupportDashInference":0,"SupportDashTraining":0,"SupportDeployment":0,"SupportExperience":1,"SupportFinetuning":0,"SupportFlexTrain":0,"SupportInference":"txt2txt","SupportPaiModelGallery":null,"SupportPaiSdk":0,"SupportPivotEval":true,"SwingDeployInfo":null,"Tags":[],"Tasks":[{"ChineseName":"文本生成","Description":"","DomainName":"nlp","Id":22,"IsExhibition":true,"IsHot":0,"IsLeaf":true,"IsLoginRequired":true,"IsRetrieval":true,"Level":1,"Name":"text-generation","ParentId":-1,"ParentTask":null,"Sorting":0,"SupportWidgets":false,"TypicalModel":"","WidgetConfig":"{\"task\": \"text-generation\", \"inputs\": [{\"type\": \"text\", \"validator\": {\"max_words\": \"1000\"}, \"displayType\": \"OnlyTextArea\"}], \"output\": {\"displayType\": \"ReadonlyText\", \"transformOutputs\": [{\"outputKey\": \"text\"}], \"displayOutputMapping\": \"text\"}, \"examples\": []}","WidgetValidator":""}],"Tools":[],"TriggerWords":null,"Visibility":5,"VisionFoundation":"","_":null,"widgets":[{"enable":true,"enabled":false,"examples":[{"inputs":[{"data":"你好","name":"text"}],"name":"","parameters":null,"title":""}],"inferencespec":null,"inputs":null,"parameters":null,"task":"text-generation","template":{"general":true}}]},"Message":"success","RequestId":"4f2d0a42-f642-4483-9203-d1e686e24b6c","Success":true}