Self-hosting Step 3.7 Flash on Modal with SGLang
- Source
- modal.com
- Publisher
- Modal
- Author
- StepFun
- Date

Context
Running Step 3.7 Flash on your own rented hardware, instead of calling StepFun's API, takes eight H100 GPUs in Modal's worked example, which StepFun shared. Modal is a serverless platform that starts GPU containers on demand. The guide serves the model with SGLang, an open-source inference server, and loads the FP8 version of the weights, about 190 GB. Eight 80 GB cards give 640 GB of GPU memory, which the guide says leaves enough room for the weights plus the , the working memory that holds each request's while the model generates. The model itself is covered in StepFun's launch item.
Much of the setup deals with how slowly a model this large comes up. Weights are cached on a Modal Volume, persistent storage attached to the container, so a cold start does not download them again. Modal gives the container up to two hours to start, though the example's own health check gives up if SGLang is not ready within ten minutes. The server then answers three short warm-up requests before taking traffic, and it stays up through 15 idle minutes before scaling down. Each copy of the server aims for 16 concurrent requests and runs at most 32 at once, and clients send messages in OpenAI's chat completions format. The example also sets Modal's unauthenticated option to true, and its test client calls the endpoint without any credentials, so as written the deployed endpoint appears open to anyone who has its URL. The guide does not explain the setting.
- KV cache — The memory a model keeps about text it has already read, so generating each new token doesn't require reprocessing the whole conversation.
- Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
- OpenAI-compatible API — An API that accepts the common OpenAI request shape so existing clients can call another provider with fewer code changes.
- streaming — Sending a model's response token by token as it is generated, so the reader sees text immediately instead of waiting for the whole answer.






