The short answer
You can self-host Step 5 Preview, but not Step 5. The Preview weights are public on Hugging Face in FP8, BF16 and NVFP4 checkpoints, and the smallest documented deployment is one B300 node with 4 GPUs (FP8) or one H200 node with 8 GPUs (FP8). BF16 needs 8 B300 GPUs or 16 H200 GPUs across two nodes. Step 5 (GA), released on 30 November 2026, has no public weights at all. For the full picture of how the two models relate, start with the complete Step 5 guide.
This post is about the self-hosting route only: what the model card and the SGLang cookbook say you need, what SGLang measured, how the unusual attention layout works in plain language, and what the StepFun Model License 1.0 allows. We do not quote GPU rental prices, because we have no verified source for them. Where we do arithmetic, we show it, and we mark it as ours.
TL;DR
- Preview weights are public; Step 5 (GA) weights are not. Hugging Face lists FP8, BF16 and an NVFP4 checkpoint (
stepfun-ai/Step-5-Preview-NVFP4). - Hardware from the model card: FP8 on 4 B300 or 8 H200 GPUs; BF16 on 8 B300 or 16 H200 GPUs. FP8 weights do not fit four H200 GPUs.
- Architecture: 600B total and 27B active parameters, 92 layers, 8 of 352 experts per MoE layer, and a 3:1 mix of sliding-window and sparse attention layers.
- SGLang reports about 299 tok/s for a single request on four GB300 GPUs and about 740 output tok/s per GPU at 64 concurrent requests.
- License: StepFun Model License 1.0 has attribution and commercial-license triggers tied to users, revenue, hardware makers and model-as-a-service businesses. Read it before you ship.
- Self-hosting is rarely the cheaper path for small teams. The hosted API costs $1.00 input, $0.10 cached input and $2.70 output per 1M tokens for both Preview and Step 5.
Can you self-host Step 5 at all?
You can self-host Step 5 Preview, and you cannot self-host Step 5 (GA). The distinction matters because the two names are easy to blur in search results.
Step 5 Preview reached the API on 20 September 2026, and StepFun published its weights on 14 and 15 October 2026 on Hugging Face under the StepFun Model License 1.0. Step 5 (GA) was released on 30 November 2026. Artificial Analysis lists its weights as not available, and OrcaRouter reports that StepFun’s Hugging Face organization hosts the Preview repositories and no Step 5 repository. StepFun has not said whether Step 5 weights will follow.
| Question | Step 5 Preview | Step 5 (GA) |
|---|---|---|
| Weights public | Yes, Hugging Face and GitHub | No |
| Checkpoints | FP8, BF16, NVFP4 | None |
| Hosted API | step-5-preview, $1.00 / $0.10 / $2.70 per 1M |
step-5, same price |
| Reasoning effort in docs | low, medium, high | low, medium, high, xhigh, max |
| AA Intelligence Index v5.0.2 | 29 | 40 |
The practical consequence: if you self-host, you are running the older model. The 11-point index gap that Artificial Analysis measured between Preview (29) and Step 5 (40) is exactly what you give up by choosing weights over the API. For the weights-or-API decision at the product level, read the Step 5 API or Preview weights comparison; for the model differences, see Step 5 Preview versus the final Step 5.
Which checkpoints does Step 5 Preview ship in?
Step 5 Preview ships in three forms: an FP8 checkpoint, a BF16 checkpoint and an NVFP4 checkpoint. Each trades memory for the effort you spend on setup.
The SGLang cookbook describes the precision layout. The routed-expert weights are FP8 in the E4M3 format with 128 by 128 block scales, except in the last three MoE layers, which stay BF16. SGLang runs every layer at its released precision, so the FP8 checkpoint is not a uniform FP8 model, and that detail matters when you estimate memory.
Three practical rules come out of the model card and the cookbook:
- BF16 needs its own checkpoint. The Hugging Face card says that setting
--dtype bfloat16on the FP8 checkpoint does not convert its quantized weights to BF16. You download the BF16 weights separately. - NVFP4 is for Blackwell. The cookbook says the NVFP4 checkpoint serves on Blackwell with TP4, EP4 and attention data parallelism of 2, keeps the last three MoE layers in BF16, does not support MegaMoE, and is not available on H200. Its smaller weights leave more GPU memory for the KV cache.
- The FP8 KV cache is a separate, lossy option. SGLang defaults to a BF16 KV cache. Choosing
--kv-cache-dtype fp8_e4m3raises KV capacity for the full-attention layers only, and the cookbook warns to re-verify accuracy before using it.
A back-of-envelope check on weight size, which is our arithmetic and not a vendor figure: 600B parameters at one byte each is on the order of 600 GB, and at two bytes each on the order of 1.2 TB, before the KV cache, activations and runtime buffers. That is why the documented configurations start at a multi-GPU node, and why the model card says its examples do not guarantee enough memory for a full 1M-token request.
What hardware does Step 5 Preview need?
The Hugging Face model card lists eight deployment configurations. For an OpenAI-compatible server the realistic ones are four.
| Framework | Precision | Hardware | Parallelism | Interface |
|---|---|---|---|---|
| vLLM | FP8 | One B300 node, 4 GPUs | TP4, TEP4 or DEP4 | OpenAI-compatible API |
| vLLM | FP8 | One H200 node, 8 GPUs | TP8, TEP8 or DEP8 | OpenAI-compatible API |
| vLLM | BF16 | One B300 node, 8 GPUs | TP8, TEP8 or DEP8 | OpenAI-compatible API |
| vLLM | BF16 | Two H200 nodes, 16 GPUs | TP16, TEP16 or DEP16 | OpenAI-compatible API |
| SGLang | FP8 | One B300 node, 4 GPUs | TP4 / EP4 | OpenAI-compatible API |
| SGLang | FP8 | One H200 node, 8 GPUs | TP8 / EP8 | OpenAI-compatible API |
| Transformers | FP8 | One H200 node, 8 GPUs | TP8 / EP8 | Offline generation |
| Transformers | BF16 | Two H200 nodes, 16 GPUs | TP16 / EP16 | Offline generation, with a validation caveat |
The SGLang cookbook adds one sentence that saves a lot of failed launches: the FP8 weights do not fit four H200 GPUs. Eight H200 GPUs work; four do not. On Blackwell the same FP8 checkpoint fits on four B300 GPUs.
Two cautions apply to every row. First, the card says actual memory requirements, usable context length and concurrency vary with the checkpoint, the framework and the KV cache allocation. Second, the BF16 Transformers path carries a note that the full file-shard workflow has not yet been validated end to end, so treat that row as a starting point and not a tested recipe.
The card also lists a small inconsistency worth knowing. Its specification table gives input as text and image and a maximum output of up to 1M tokens, while its introduction says the model accepts text, images and video. The hosted Step 5 API documentation, by contrast, lists text, image and video input and a 64K maximum output. If you depend on video input or on a specific output cap, test your own deployment instead of assuming the hosted API’s limits carry over to the weights.
What does the 3:1 attention layout mean in plain language?
Step 5 Preview reads recent text closely in most layers and reaches back into older text through a selective lookup in the rest. That is what lets it keep a 1M-token context without reading the entire history in every layer.
The SGLang day-0 blog describes the pattern. The language model has 92 layers, arranged in repeating groups of four. In each group, three sliding-window layers read only the most recent 512 tokens. The fourth layer is a sparse-attention layer: the key-value history is split into blocks of 8 tokens, a lightweight indexer scores a summary of each block, and the layer reads token-level keys and values from up to 512 selected historical blocks plus the current block.
Our arithmetic from those numbers: 512 selected blocks of 8 tokens is up to 4,096 historical tokens that a sparse layer reads in detail, plus the current block. Against a context window of up to 1M tokens, that is a small, targeted slice. The sliding-window layers read 512 tokens each.
Why should an operator care? The StepFun technical blog, Inside Step 5 Preview, says the design uses Gated sliding-window attention interleaved 3 to 1 with sparse full-attention layers, and that block-wise token merging in the indexer reduces its footprint. The SGLang team puts the serving consequence in StepFun’s launch post: most layers use a short window to limit KV cache memory, and the remaining layers score and attend to small contiguous blocks, so memory and compute stay under control as contexts grow. The cookbook adds a concrete knob, because the launch command sets a small sliding-window token ratio of 0.03 for the cache. For a deeper treatment of the design, see our post on the 600B and 27B mixture-of-experts architecture, and for what a 1M window costs in practice, the Step 5 1M context window.
What does “8 of 352 experts” mean?
Each mixture-of-experts layer holds 352 routed experts, and for each token a router picks 8 of them, plus one shared expert that always runs. The other 344 routed experts sit idle for that token.
That is the mechanism behind the 600B total and 27B active parameter figures. The model stores 600B parameters, but a token passes through only about 27B of them. For self-hosting this has a double edge. Compute per token behaves like a 27B model, which is why decode can be quick. Memory behaves like a 600B model, because every expert must be resident on some GPU, which is why the node sizes above are so large. When you pick expert parallelism (the EP and TEP and DEP modes in the tables), you spread experts across GPUs so each one holds a share.
The model also ships three multi-token prediction layers for speculative decoding. SGLang’s recipes enable them with a speculative algorithm of EAGLE, three steps and four draft tokens, so a verification round can advance generation by up to four tokens: three accepted draft tokens plus one from the target model. vLLM’s commands use --spec-method mtp with --spec-tokens 3.
Parameters stored against parameters used per token
- Total parameters600B
- Active per token27B
How do you launch Step 5 Preview with SGLang?
You pull the preview Docker image and start sglang serve with the Step 5 parsers. A stock pip install sglang cannot serve the model, because the cookbook says Step 5 Preview support has not shipped in an SGLang release yet.
Every recipe on the cookbook page uses the image lmsysorg/sglang:step-5-preview, which already includes the FlashInfer patches the model needs. The day-0 blog gives a four-GPU launch command for low latency on Blackwell:
docker pull lmsysorg/sglang:step-5-preview
sglang serve \
--trust-remote-code \
--model-path stepfun-ai/Step-5-Preview \
--tp 4 \
--moe-runner-backend flashinfer_trtllm \
--attention-backend fa4 \
--kv-cache-dtype bfloat16 \
--max-running-requests 64 \
--speculative-algorithm EAGLE \
--speculative-num-steps 3 \
--speculative-eagle-topk 1 \
--speculative-num-draft-tokens 4 \
--enable-multi-layer-eagle \
--reasoning-parser step5 \
--tool-call-parser step5 \
--host 0.0.0.0 \
--port 30000That block is a trimmed copy of the blog’s command, with page size, memory fraction and a few tuning flags left out for length; take the full command from the source. The cookbook recommends different starting points by goal:
| Goal | Hardware | Setup |
|---|---|---|
| Lowest latency | 4 B300 | TP4 with the FlashInfer TRT-LLM MoE |
| Multi-user serving | 4 B300 | TP4 with MegaMoE (--moe-a2a-backend megamoe) |
| Highest throughput | 8 B300 | TP8 with DP attention 2 and EP8, either MoE backend |
| Hopper | 8 H200 | TP8 and EP8 with FA3 attention and the Triton MoE |
Operational notes from the cookbook that you would otherwise learn the slow way. The first launch compiles FlashInfer modules and takes about 15 minutes on B300, while later launches take about 6 minutes, so persist the FlashInfer workspace and the SGLang cache across restarts. HiCache can keep evicted prefixes in host memory for long multi-turn sessions, sized to the host RAM per rank. Prefill and decode disaggregation over Mooncake is supported, including the MTP draft KV cache. And the model always thinks before it answers: the step5 reasoning parser returns the thinking in reasoning_content and the answer in content, and the reasoning_effort request field accepts low, medium or high, defaulting to high.
That last point differs from the hosted API. StepFun’s Step 5 API documentation lists effort levels up to xhigh and max for step-5. If your application relies on those levels, the Preview weights will not provide them. Our post on Step 5 reasoning effort levels covers what each level does on the hosted model.
How do you launch Step 5 Preview with vLLM?
You use the vllm/vllm-openai:step-5-preview image and serve the model on port 18000 under the name step5. The model card documents TP4, TEP4 and DEP4 modes for four B300 GPUs.
The three modes differ in how they split the work. TP4 uses tensor parallelism of 4 with the default MoE backend. TEP4 adds expert parallelism and selects MegaMoE with --moe-backend deep_gemm_mega_moe. DEP4 runs data parallelism of 4 with expert parallelism. The shared flags in the card’s commands include a 1,048,576-token maximum model length, a maximum of 16,384 batched tokens, 64 sequences per data-parallel rank, GPU memory utilization of 0.85, prefix caching, MTP speculation with three tokens, and the step5 reasoning and tool-call parsers.
Four details from the card are easy to miss:
- The 1M-token limit covers input and output combined. Plan your longest prompt plus the longest reply inside that number.
- On H200, drop the MegaMoE flag. Hopper uses the default MoE backend, and the card says to remove
--moe-backend deep_gemm_mega_moefor TEP8 and DEP8. - Two-node BF16 uses a headless second node. Only node 0 exposes the API, on port 18000.
- If KV cache memory runs short, lower
--max-model-lenor concurrency. The card says this directly.
Which engine should you pick? The cookbook’s measured numbers are SGLang’s, and the SGLang team supplied day-0 serving and routing work, so SGLang has the more detailed published tuning. vLLM has the more compact reference commands on the model card. If you already operate one of them, start there and benchmark your own traffic before switching. For client code against either server, the hosted-API guidance in our Chat Completions, Messages and Responses overview applies, because both engines expose an OpenAI-compatible endpoint.
What speeds did SGLang measure?
SGLang reports about 299 tokens per second for a single request on four GB300 GPUs, about 740 output tokens per second per GPU at 64 concurrent requests, and a 128K-token prefill at about 11,440 tokens per second per GPU. These are SGLang’s measurements, taken on specific hardware and settings.
The conditions matter more than the headline. Both sets of figures use FP8 routed experts with BF16 in the last three MoE layers, a BF16 KV cache, MTP at an acceptance length of 2.85, about 8K input tokens and 768 to 1,280 output tokens, public text and no prefix-cache hits. The 299 tok/s figure uses the FlashInfer TRT-LLM MoE backend and the 740 tok/s figure uses MegaMoE.
Turn them into planning numbers with our own arithmetic:
- Node-level throughput at 64 requests. 740 tok/s per GPU times 4 GPUs is 2,960 output tok/s across the node. Divided by 64 concurrent requests, each request averages about 46 tok/s, which is far below the 299 tok/s single-request figure. Concurrency raises total output and lowers per-user speed; that is the trade the two MoE backends are tuned around.
- Time to first token for a long prompt. SGLang defines its prefill figure as prompt tokens divided by time to first token divided by 4 GPUs. A 128K prompt at 11,440 tok/s per GPU is 45,760 tok/s across four GPUs, so the first token arrives after roughly 2.8 to 2.9 seconds. That is derived, not measured by us.
Compare with the hosted model, carefully. Artificial Analysis measured Step 5 at 104 tokens per second through the API, and an earlier reading for Step 5 Preview was 83 tokens per second. Those are API measurements of a hosted service with its own batching and routing, while SGLang’s 299 tok/s is a single request on GB300 hardware with speculative decoding tuned for that run. They answer different questions, and none of them predicts what your rack will do. See Step 5 tokens per second for how to read speed numbers like these.
SGLang also describes a routing layer that tracks cached prefixes and worker load, so an agent that resends most of its context after a tool call can land on a worker that already holds that prefix. That layer was being prepared for a formal release when the blog was published, so check its status before you plan around it.
What does the StepFun Model License 1.0 allow?
The license grants a perpetual, worldwide, royalty-free right to use, copy, distribute, sublicense and modify the model, with conditions. It is not a standard permissive license, and its conditions turn on your users, revenue and business model. GitHub labels it “Other”. The summary below follows the LICENSE file closely; read the full text yourself, and ask a lawyer if your use is commercial. This is not legal advice.
What the license text says, in short:
- Derivative Works are broad. The definition covers fine-tuned, distilled, merged, quantized, pruned and continually pre-trained models. A model trained to a material extent on outputs of the Model is deemed to contain a substantial part of it. A separate application that only calls the Model through an API is not a Derivative Work for that reason alone.
- Redistribution has conditions. If you distribute the Model or a Derivative Work, you provide a copy of the license, keep notices, mark your modifications, include any NOTICE file and provide the model card or a link.
- Attribution threshold. If in any calendar month a commercial product or service of yours (or your affiliates) that uses the Model or a Derivative Work has more than 100,000,000 active users or generates revenue above US$20,000,000, you must display “Powered by StepFun AI” in the product interface and documentation.
- Commercial license required in two cases. First, hardware makers and brand owners (the text lists phones, vehicles, smart glasses, wearables, robots and smart-home devices) that first make the Model’s capabilities available as a feature of those devices. Second, commercial use of the Model while you or your affiliates operate a model-as-a-service business, if combined revenue from all sources exceeds US$20,000,000 over any consecutive twelve months.
- Exceptions. The commercial-license requirement does not apply to internal use that does not make the Model, its outputs or its capabilities available to any third party, or to use through a distribution channel certified by StepFun within the scope of that certification.
- The MaaS definition is specific. It means giving a third party inference or fine-tuning access, including through an API, where that third party has meaningful control over inputs, parameters or training data. Embedding the Model in a specific end-user feature without giving that control, or merely relaying requests to another provider’s model, is stated not to be MaaS.
- Termination. A material breach ends your rights, with reinstatement if you cure it within 30 days of written notice, and the license disclaims warranties and liability.
Two readings follow, and both are ours to check with counsel, not facts. A small team running Preview for its own product, with no hardware and no inference reselling, is far from every threshold. A company that sells inference access to others and clears US$20,000,000 in combined revenue is in the commercial-license clause. Anyone fine-tuning, quantizing or distilling the model should treat the result as a Derivative Work and follow the redistribution rules.
This license is specific to Step 5 Preview. Step 5 (GA) is delivered through the StepFun API under StepFun’s service terms, with no weights to license.
Can you run Step 5 Preview on one consumer GPU?
No documented configuration does. The model card’s smallest deployment is four B300 GPUs, and the SGLang cookbook’s matrix starts at the same place. We found no first-party single-GPU recipe, and we do not cite community quantizations because we have not verified them.
If your goal is a model you can run locally on modest hardware, the open-weight field has smaller models, and several are on the free lane. Our post on how Step 5 compares with the open-weight ceiling puts Step 5 next to the largest open models, and the model comparison page lets you set candidates side by side. For a hosted open-weight model you can try without any hardware, the free lane includes ids such as gemma-4-31b-it:free and nvidia-nemotron-3-ultra-550b-a55b:free.
When does self-hosting beat the API?
Self-hosting wins when you need control, not when you need a lower bill at small volume. A full GPU node costs money every hour it is up, while the API charges only for tokens used.
The hosted API prices Preview and Step 5 identically: $1.00 per 1M input tokens on a cache miss, $0.10 on a cache hit and $2.70 per 1M output tokens. Use the calculator below with your own numbers. Enter a monthly token volume, the share of input that hits the cache, and your actual monthly cost of running a node (which only you can look up), and it shows the API bill and the volume where the two cross.
API bill against your own GPU node
- Input cost at API prices
- $560.00
- Output cost at API prices
- $405.00
- Total API bill per month
- $965.00
- API bill as a share of your node cost
- 4.8%
API prices are StepFun's list prices for Step 5 and Step 5 Preview: $1.00 input on a cache miss, $0.10 on a cache hit, $2.70 output per 1M tokens. The node cost is a number you supply; we do not quote GPU prices. A share under 100% means the API is cheaper at that volume.
With the defaults, the arithmetic is: 2,000M input tokens, 80% cached, is 400M at $1.00 plus 1,600M at $0.10, which is $400 plus $160, so $560. Output of 150M tokens at $2.70 is $405. The API bill is $965 a month. Against a hypothetical node cost of $20,000 a month, the API is about 4.8% of the node cost. The defaults are illustrative, not a market quote. The lesson is the shape: unless your volume is large or your constraints are not about price, the hosted API is cheaper than keeping a multi-GPU node busy.
The reasons teams self-host anyway are real, and none of them is price:
- Data must not leave your network. A regulated workload may rule out any hosted route.
- You need to fine-tune or modify the model. The weights allow that, subject to the license.
- You need predictable latency under your own scheduler. A dedicated node gives you control of queueing.
- You need to pin a model version. Open weights do not change under you.
If none of those apply, call the model through an API. For hosted routes, OpenRouter and Vercel AI Gateway both list Step 5, and how to access Step 5 walks through the StepFun API and Step Plan paths. For cost mechanics once you are on an API, Step 5 prompt caching cost math shows why a high cache-hit share moves the bill so much.
Which self-hosting path fits your team?
Self-hosting readiness for Step 5 Preview
0 of 6 ticked
Use the hosted API
Most gates are closed. The hosted API costs only the tokens you use and runs the newer model.
What this post does not prove
Hold these limits before you act on any number above.
- We have not run these commands. Everything here comes from the model card, the cookbook, the SGLang blog, the StepFun technical blog and the LICENSE file. We did not benchmark a node.
- Speeds are SGLang’s, on GB300 hardware and a specific prompt shape. Your results will differ with other GPUs, longer prompts, prefix cache hits and different output lengths.
- The BF16 Transformers path is not fully validated by StepFun’s own note.
- The framework support is moving. The cookbook says Step 5 Preview support had not shipped in an SGLang release, and both engines use preview images, so recheck the pages before you build.
- The license summary is not legal advice. The text is the authority.
- No GPU prices appear here, because we have no verified source. Bring your own quote.
- Step 5 (GA) cannot be self-hosted, and StepFun has not announced weights for it.
Run it on the free lane
The hosted model that matches the 40 on the index is Step 5 (GA), not the Preview you would self-host. Before you buy GPU hours, you can send your real prompts to step-5:free on our gateway at $0 per token, inside the free daily allowance of 33 Step 5 requests a day, and see whether the answers justify any further spend. The model has a 1M-token context window and takes image input on our gateway. See the Step 5 model page for live stats.
curl https://api.oneaiapikey.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "step-5:free",
"messages": [{"role": "user", "content": "Summarise this stack trace and propose a fix: ..."}]
}'The same request shape works against your own SGLang or vLLM server, because both expose an OpenAI-compatible endpoint: change the base URL and the model name (step5 in the vLLM recipe above) and keep the rest.
What to do next
If you decided to self-host, pick the recipe from the SGLang table, pull the image, and benchmark with your real prompts at your real concurrency before you buy capacity. If you decided on the API, use a key that works across providers so you can compare Preview, Step 5 and alternatives without rewriting code: the gateway page explains how one key handles OpenAI- and Anthropic-compatible calls, and the quickstart shows the first request. The complete Step 5 guide links every post in this cluster, including the release timeline from Preview to GA and the post on Step 5 in coding agents.
Test models before you rent hardware
Use one OpenAI-compatible key to try step-5:free and other free-lane models on your own prompts, then decide whether a hosted paid model or your own node is worth it.
FAQ
Are the Step 5 weights public?
What GPUs do I need to run Step 5 Preview?
Should I use SGLang or vLLM?
How fast is Step 5 Preview when self-hosted?
Can I use Step 5 Preview commercially?
Is self-hosting cheaper than the API?
Does self-hosted Preview match the hosted Step 5?
Is Step 5 available on this gateway?
Sources
- Hugging Face: stepfun-ai/Step-5-Preview model card: specifications, deployment table, vLLM and Transformers commands.
- GitHub: stepfun-ai/Step-5-Preview: repository, README mirror of the card, license label “Other”.
- GitHub: StepFun Model License 1.0: the full license text summarized above.
- SGLang cookbook: Step 5 Preview: image, hardware recipes, configuration tips, NVFP4 notes.
- SGLang blog: day-0 support: measured speeds, attention layout, routing layer.
- StepFun: Inside Step 5 Preview: architecture and training write-up.
- StepFun: Introducing Step 5: launch post, SGLang team quote on serving design.
- StepFun API docs: Step 5: hosted model limits and reasoning effort levels.
- Artificial Analysis: Step 5: index score, weights availability, measured speed.
- OrcaRouter: Step 5 launch note: Hugging Face repository observation and price table.