Downloads · 30 days
253
12% of all-time downloads
milkowski/Step-3.5-Flash-GGUF
Step-3.5-Flash-GGUF is a machine learning model from milkowski. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
253
12% of all-time downloads
All-time downloads
2.2K
Public
Repo size
2 TB
Likes
2
Public
Click a slice to open those files.
.gguf1.2 TB · 100%
From the Hugging Face model README
GGUF quantizations of StepFun Step 3.5 Flash model
llama.cpp version: 7972 (e06088da0)
Updates:
- @exxocism template fix for function calls is applied (https://huggingface.co/stepfun-ai/Step-3.5-Flash-Int4/discussions/12#698843065134284e39789093)
- All quantizations are generated with "--leave-output-tensor" option for increased precision
Step 3.5 Flash (visit website) is our most capable open-source foundation model, engineered to deliver frontier reasoning and agentic capabilities with exceptional efficiency. Built on a sparse Mixture of Experts (MoE) architecture, it selectively activates only 11B of its 196B parameters per token. This "intelligence density" allows it to rival the reasoning depth of top-tier proprietary models, while maintaining the agility required for real-time interaction.
Deep Reasoning at Speed: While chatbots are built for reading, agents must reason fast. Powered by 3-way Multi-Token Prediction (MTP-3), Step 3.5 Flash achieves a generation throughput of 100–300 tok/s in typical usage (peaking at 350 tok/s for single-stream coding tasks). This allows for complex, multi-step reasoning chains with immediate responsiveness.
A Robust Engine for Coding & Agents: Step 3.5 Flash is purpose-built for agentic tasks, integrating a scalable RL framework that drives consistent self-improvement. It achieves 74.4% on SWE-bench Verified and 51.0% on Terminal-Bench 2.0, proving its ability to handle sophisticated, long-horizon tasks with unwavering stability.
Efficient Long Context: The model supports a cost-efficient 256K context window by employing a 3:1 Sliding Window Attention (SWA) ratio—integrating three SWA layers for every full-attention layer. This hybrid approach ensures consistent performance across massive datasets or long codebases while significantly reducing the computational overhead typical of standard long-context models.
Accessible Local Deployment: Optimized for accessibility, Step 3.5 Flash brings elite-level intelligence to local environments. It runs securely on high-end consumer hardware (e.g., Mac Studio M4 Max, NVIDIA DGX Spark), ensuring data privacy without sacrificing performance.
Step 3.5 Flash delivers performance parity with leading closed-source systems while remaining open and efficient.

Performance of Step 3.5 Flash measured across Reasoning, Coding, and Agentic Abilities. Open-source models (left) are sorted by their total parameter count, while top-tier proprietary models are shown on the right. xbench-DeepSearch scores are sourced from official publications for consistency. The shadowed bars represent the enhanced performance of Step 3.5 Flash using Parallel Thinking.
| Benchmark | Step 3.5 Flash | DeepSeek V3.2 | Kimi K2 Thinking / K2.5 | GLM-4.7 | MiniMax M2.1 | MiMo-V2 Flash |
|---|---|---|---|---|---|---|
| # Activated Params | 11B | 37B | 32B | 32B | 10B | 15B |
| # Total Params (MoE) | 196B | 671B | 1T | 355B | 230B | 309B |
| Est. decoding cost @ 128K context, Hopper GPU** | 1.0x<br>100 tok/s, MTP-3, EP8 | 6.0x<br>33 tok/s, MTP-1, EP32 | 18.9x<br>33 tok/s, no MTP, EP32 | 18.9x<br>100 tok/s, MTP-3, EP8 | 3.9x<br>100 tok/s, MTP-3, EP8 | 1.2x<br>100 tok/s, MTP-3, EP8 |
| Agent | ||||||
| τ²-Bench | 88.2 | 80.3 (85.2*) | 74.3*/85.4* | 87.4 | 86.6* | 80.3 (84.1*) |
| BrowseComp | 51.6 | 51.4 | 41.5* / 60.6 | 52.0 | 47.4 | 45.4 |
| BrowseComp (w/ Context Manager) | 69.0 | 67.6 | 60.2/74.9 | 67.5 | 62.0 | 58.3 |
| BrowseComp-ZH | 66.9 | 65.0 | 62.3 / 62.3* | 66.6 | 47.8* | 51.2* |
| BrowseComp-ZH (w/ Context Manager) | 73.7 | — | —/— | — | — | — |
| GAIA (no file) | 84.5 | 75.1* | 75.6*/75.9* | 61.9* | 64.3* | 78.2* |
| xbench-DeepSearch (2025.05) | 83.7 | 78.0* | 76.0*/76.7* | 72.0* | 68.7* | 69.3* |
| xbench-DeepSearch (2025.10) | 56.3 | 55.7* | —/40+ | 52.3* | 43.0* | 44.0* |
| ResearchRubrics | 65.3 | 55.8* | 56.2*/59.5* | 62.0* | 60.2* | 54.3* |
| Reasoning | ||||||
| AIME 2025 | 97.3 | 93.1 | 94.5/96.1 | 95.7 | 83.0 | 94.1 (95.1*) |
| HMMT 2025 (Feb.) | 98.4 | 92.5 | 89.4/95.4 | 97.1 | 71.0* | 84.4 (95.4*) |
| HMMT 2025 (Nov.) | 94.0 | 90.2 | 89.2*/— | 93.5 | 74.3* | 91.0* |
| IMOAnswerBench | 85.4 | 78.3 | 78.6/81.8 | 82.0 | 60.4* | 80.9* |
| Coding | ||||||
| LiveCodeBench-V6 | 86.4 | 83.3 | 83.1/85.0 | 84.9 | — | 80.6 (81.6*) |
| SWE-bench Verified | 74.4 | 73.1 | 71.3/76.8 | 73.8 | 74.0 | 73.4 |
| Terminal-Bench 2.0 | 51.0 | 46.4 | 35.7*/50.8 | 41.0 | 47.9 | 38.5 |
Notes:
Step 3.5 Flash is built on a Sparse Mixture-of-Experts (MoE) transformer architecture, optimized for high throughput and low VRAM usage during inference.
| Component | Specification |
|---|---|
| Backbone | 45-layer Transformer (4,096 hidden dim) |
| Context Window | 256K |
| Vocabulary | 128,896 tokens |
| Total Parameters | 196.81B (196B Backbone + 0.81B Head) |
| Active Parameters | ~11B (per token generation) |
Unlike traditional dense models, Step 3.5 Flash uses a fine-grained routing strategy to maximize efficiency:
To improve inference speed, we utilize a specialized MTP Head consisting of a sliding-window attention mechanism and a dense Feed-Forward Network (FFN). This module predicts 4 tokens simultaneously in a single forward pass, significantly accelerating inference without degrading quality.
You can get started with Step 3.5 Flash in minutes using Cloud API via our supported providers.
Sign up at OpenRouter or platform.stepfun.ai, and grab your API key.
OpenRouter now offers free trial for Step 3.5 Flash.
| Provider | Website | Base URL |
|---|---|---|
| OpenRouter | https://openrouter.ai | https://openrouter.ai/api/v1 |
| StepFun | https://platform.stepfun.ai | https://api.stepfun.ai/v1 |
Install the standard OpenAI SDK (compatible with both platforms).
pip install --upgrade "openai>=1.0"
Note: OpenRouter supports multiple SDKs. Learn more here.
This example shows starting a chat with Step 3.5 Flash.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.stepfun.ai/v1", # or "https://openrouter.ai/api/v1"
# Optional: OpenRouter headers for app rankings
default_headers={
"HTTP-Referer": "<YOUR_SITE_URL>",
"X-Title": "<YOUR_SITE_NAME>",
}
)
completion = client.chat.completions.create(
model="step-3.5-flash", # Use "stepfun/step-3.5-flash" for OpenRouter
messages=[
{
"role": "system",
"content": "You are an AI chat assistant provided by StepFun. You are good at Chinese, English, and many other languages.",
},
{
"role": "user",
"content": "Introduce StepFun's artificial intelligence capabilities."
},
],
)
print(completion.choices[0].message.content)
Step 3.5 Flash is optimized for local inference and supports industry-standard backends including vLLM, SGLang, Hugging Face Transformers and llama.cpp.
We recommend using the latest nightly build of vLLM.
# via Docker
docker pull vllm/vllm-openai:nightly
# or via pip (nightly wheels)
pip install -U vllm --pre \
--index-url https://pypi.org/simple \
--extra-index-url https://wheels.vllm.ai/nightly
Note: Full MTP3 support is not yet available in vLLM. We are actively working on a Pull Request to integrate this feature, which is expected to significantly enhance decoding performance.
vllm serve <MODEL_PATH_OR_HF_ID> \
--served-model-name step3p5-flash \
--tensor-parallel-size 8 \
--enable-expert-parallel \
--disable-cascade-attn \
--reasoning-parser step3p5 \
--enable-auto-tool-choice \
--tool-call-parser step3p5 \
--hf-overrides '{"num_nextn_predict_layers": 1}' \
--speculative_config '{"method": "step3p5_mtp", "num_speculative_tokens": 1}' \
--trust-remote-code \
--quantization fp8
vllm serve <MODEL_PATH_OR_HF_ID> \
--served-model-name step3p5-flash \
--tensor-parallel-size 8 \
--enable-expert-parallel \
--disable-cascade-attn \
--reasoning-parser step3p5 \
--enable-auto-tool-choice \
--tool-call-parser step3p5 \
--hf-overrides '{"num_nextn_predict_layers": 1}' \
--speculative_config '{"method": "step3p5_mtp", "num_speculative_tokens": 1}' \
--trust-remote-code
You can also refer to the Step-3.5-Flash recipe.
# via Docker
docker pull lmsysorg/sglang:dev-pr-18084
# or from source (pip)
pip install "sglang[all] @ git+https://github.com/sgl-project/sglang.git"
sglang serve --model-path <MODEL_PATH_OR_HF_ID> \
--served-model-name step3p5-flash \
--tp-size 8 \
--tool-call-parser step3p5 \
--reasoning-parser step3p5 \
--speculative-algorithm EAGLE \
--speculative-num-steps 3 \
--speculative-eagle-topk 1 \
--speculative-num-draft-tokens 4 \
--enable-multi-layer-eagle \
--host 0.0.0.0 \
--port 8000
sglang serve --model-path <MODEL_PATH_OR_HF_ID> \
--served-model-name step3p5-flash \
--tp-size 8 \
--ep-size 8 \
--tool-call-parser step3p5 \
--reasoning-parser step3p5 \
--speculative-algorithm EAGLE \
--speculative-num-steps 3 \
--speculative-eagle-topk 1 \
--speculative-num-draft-tokens 4 \
--enable-multi-layer-eagle \
--host 0.0.0.0 \
--port 8000
Use this snippet for quick functional verification. For high-throughput serving, use vLLM or SGLang.
from transformers import AutoModelForCausalLM, AutoTokenizer
MODEL_PATH = "<MODEL_PATH_OR_HF_ID>"
# 1. Setup
tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH)
model = AutoModelForCausalLM.from_pretrained(
MODEL_PATH,
trust_remote_code=True,
torch_dtype="auto",
device_map="auto",
)
# 2. Prepare Input
messages = [{"role": "user", "content": "Explain the significance of the number 42."}]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
# 3. Generate
generated_ids = model.generate(**inputs, max_new_tokens=128, do_sample=False)
output_text = tokenizer.decode(generated_ids[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(output_text)
git clone [email protected]:stepfun-ai/Step-3.5-Flash.git
cd Step-3.5-Flash/llama.cpp
cmake -S . -B build-macos \
-DCMAKE_BUILD_TYPE=Release \
-DGGML_METAL=ON \
-DGGML_ACCELERATE=ON \
-DLLAMA_BUILD_EXAMPLES=ON \
-DLLAMA_BUILD_COMMON=ON \
-DGGML_LTO=ON
cmake --build build-macos -j8
cmake -S . -B build-cuda \
-DCMAKE_BUILD_TYPE=Release \
-DGGML_CUDA=ON \
-DGGML_CUDA_GRAPHS=ON \
-DLLAMA_CURL=OFF \
-DLLAMA_BUILD_EXAMPLES=ON \
-DLLAMA_BUILD_COMMON=ON
cmake --build build-cuda -j8
cmake -S . -B build-vulkan \
-DCMAKE_BUILD_TYPE=Release \
-DLLAMA_CURL=OFF \
-DGGML_OPENMP=ON \
-DGGML_VULKAN=ON
cmake --build build-vulkan -j8
./llama-cli -m step3.5_flash_Q4_K_S.gguf -c 16384 -b 2048 -ub 2048 -fa on --temp 1.0 -p "What's your name?"
./llama-batched-bench -m step3.5_flash_Q4_K_S.gguf -c 32768 -b 2048 -ub 2048 -npp 0,2048,8192,16384,32768 -ntg 128 -npl 1
It's straightforward to add Step 3.5 Flash to the list of models in most coding environments. See below for the instructions for configuring Claude Code and Codex to use Step 3.5 Flash.
Sign up at StepFun.ai or OpenRouter and grab an API key, as mentioned in the Quick Start.
Claude Code and Codex rely on Node.js. We recommend installing Node.js version > v20. You can install Node via nvm.
Mac/Linux:
# Install nvm on Mac/Linux via curl:
# Step 1
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Copy the full command
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# Users in China can set up npm mirror
config set registry https://registry.npmmirror.com
# Step 2
nvm install v22
# Make sure Node.js is installed
node --version
npm --version
Windows:
You can download the installation file (nvm-setup.exe) from https://github.com/coreybutler/nvm-windows/releases. Follow the instructions to install nvm. Run nvm commands to make sure it is installed.
# install claude code via npm
npm install -g @anthropic-ai/claude-code
# test if the installation is successful
claude --version
To accommodate diverse workflows in Claude Code, we support both Anthropic-style and OpenAI-style APIs.
Option A: Anthropic API style:
If you intend to use the OpenRouter API, refer to the OpenRouter integration guide.
Step 1: Edit Claude Settings. Update ~/.claude/settings.json.
You only need to modify the fields shown below. Leave the rest of the file unchanged.
{
"env": {
"ANTHROPIC_API_KEY": "API_KEY_from_StepFun",
"ANTHROPIC_BASE_URL": "https://api.stepfun.ai/"
},
"model": "step-3.5-flash"
}
Step 2: Start Claude Code.
Save the file, and then start Claude Code. Run /status to confirm the model and base URL.
❯ /status
─────────────────────────────────────────────────────────────────────────────────
Settings: Status Config Usage (←/→ or tab to cycle)
Version: 2.1.1
Session name: /rename to add a name
Session ID: 676dae61-259d-4eef-8c2f-0f1641600553
cwd: /Users/step-test/
Auth token: none
API key: ANTHROPIC_API_KEY
Anthropic base URL: https://api.stepfun.ai/
Model: step-3.5-flash
Setting sources: User settings
Option B: OpenAI API style
Note: OpenAI API style here refers to the
chat/completions/format.
We recommend using
claude-code-router. For details, see https://github.com/musistudio/claude-code-router.
After Claude Code is installed, install claude-code-router :
# install ccr via npm
npm install -g @musistudio/claude-code-router
# validate it is installed
ccr -v
Add the following configurations to ~/.claude-code-router/config.json.
{
"PORT": 3456,
"Providers": [
{
"name": "stepfun-api",
"api_base_url": "https://api.stepfun.com/v1/chat/completions",
"api_key": "StepFun_API_KEY",
"models": ["step-3.5-flash"],
"transformer":{
"step-3.5-flash": { "use": ["OpenAI"]}
}
}
],
"Router": {
"default": "stepfun-api,step-3.5-flash",
"background": "stepfun-api,step-3.5-flash",
"think": "stepfun-api,step-3.5-flash",
"longContext": "stepfun-api,step-3.5-flash",
"webSearch": "stepfun-api,step-3.5-flash"
}
}
You can now start Claude Code:
# Start Claude
ccr code
# restart ccr if configs are changed
ccr restart
# Install codex via npm
npm install -g @openai/codex
# Test if it is installed
codex --version
~/.codex/config.toml, keeping the rest of the settings as they are.model="step-3.5-flash"
model_provider = "stepfun-chat"
preferred_auth_method = "apikey"
# configure the provider
[model_providers.stepfun-chat]
name = "OpenAI using response"
base_url = "https://api.stepfun.com/v1"
env_key = "OPENAI_API_KEY"
wire_api = "chat"
query_params = {}
For Codex, wire_api only supports chat . If you use the responses mode, you'll need to change to chat. Please also switch model_provider to the newly configured stepfun-chat.
When finishing the configuration, run codex in a new Terminal window to start Codex. Run /status to check the configuration.
/status
📂 Workspace
• Path: /Users/step-test/
• Approval Mode: on-request
• Sandbox: workspace-write
• AGENTS files: (none)
🧠 Model
• Name: step-3.5-flash
• Provider: Stepfun-chat
💻 Client
• CLI Version: 0.40.0
MODEL_NAME to Step-3.5-Flash. https://github.com/stepfun-ai/StepDeepResearch?tab=readme-ov-file#1-environment-setupWe view our roadmap as a living document, evolving continuously based on real-world usage and developer feedback. As we work to shape the future of AGI by expanding broad model capabilities, we want to ensure we are solving the right problems. We invite you to be part of this continuous feedback loop—your insights directly influence our priorities.
This project is open-sourced under the Apache 2.0 License.