anas WinstonDeng commited on
Commit
d1ff5e9
·
0 Parent(s):

Duplicate from stepfun-ai/Step-3.5-Flash

Browse files

Co-authored-by: dengwenjin <WinstonDeng@users.noreply.huggingface.co>

This view is limited to 50 files because it contains too many changes.   See raw diff
.done ADDED
File without changes
.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ step-bar-chart.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,581 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model:
4
+ - stepfun-ai/step-3.5-flash
5
+ library_name: transformers
6
+ ---
7
+
8
+ # Step 3.5 Flash
9
+
10
+ <div align="center">
11
+
12
+ <div align="center" style="display: flex; justify-content: center; align-items: center;">
13
+ <img src="stepfun.svg" width="25" style="margin-right: 10px;"/>
14
+ <h1 style="margin: 0; border-bottom: none;">Step 3.5 Flash</h1>
15
+ </div>
16
+
17
+ [![GitHub](https://img.shields.io/badge/GitHub-181717?style=flat&logo=github&logoColor=white)](https://github.com/stepfun-ai/Step-3.5-Flash)
18
+ [![Hugging Face](https://img.shields.io/badge/%F0%9F%A4%97%20HF-StepFun/STEP3p5-preview)](https://huggingface.co/stepfun-ai/Step-3.5-Flash)
19
+ [![ModelScope](https://img.shields.io/badge/ModelScope-StepFun/STEP3p5-preview)](https://modelscope.cn/models/stepfun-ai/Step-3.5-Flash)
20
+ [![Discord](https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white)](https://discord.gg/RcMJhNVAQc)
21
+ [![Webpage](https://img.shields.io/badge/Webpage-Blog-blue)](https://static.stepfun.com/blog/step-3.5-flash/)
22
+ [![Paper](https://img.shields.io/badge/Arxiv-TechReport-red)](https://arxiv.org/abs/2602.10604)
23
+ [![License](https://img.shields.io/badge/License-Apache%202.0-green)]()
24
+ [![Chat with the model on OpenRouter](https://img.shields.io/badge/Chat%20with%20the%20model-OpenRouter-5B3DF5?logo=chatbot&logoColor=white)](https://openrouter.ai/chat?models=stepfun/step-3.5-flash:free)
25
+ [![Chat with the model on HuggingfaceSpace](https://img.shields.io/badge/Chat%20with%20the%20model-HuggingfaceSpace-5B3DF5?logo=chatbot&logoColor=white)](https://huggingface.co/spaces/stepfun-ai/Step-3.5-Flash)
26
+ </div>
27
+
28
+
29
+
30
+ ## 1. Introduction
31
+
32
+ **Step 3.5 Flash** ([visit website](https://static.stepfun.com/blog/step-3.5-flash/)) 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.
33
+
34
+ ## 2. Key Capabilities
35
+
36
+ - **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.
37
+
38
+ - **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.
39
+
40
+ - **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.
41
+
42
+ - **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.
43
+
44
+ ## 3. Performance
45
+
46
+ Step 3.5 Flash delivers performance parity with leading closed-source systems while remaining open and efficient.
47
+
48
+ ![](step-bar-chart.png)
49
+
50
+ 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](https://xbench.org/agi/aisearch) for consistency. The shadowed bars represent the enhanced performance of Step 3.5 Flash using [Parallel Thinking](https://arxiv.org/pdf/2601.05593).
51
+
52
+ ### Detailed Benchmarks
53
+
54
+ | Benchmark | Step 3.5 Flash | DeepSeek V3.2 | Kimi K2 Thinking / K2.5 | GLM-4.7 | MiniMax M2.1 | MiMo-V2 Flash |
55
+ | --- | --- | --- | --- | --- | --- | --- |
56
+ | # Activated Params | 11B | 37B | 32B | 32B | 10B | 15B |
57
+ | # Total Params (MoE) | 196B | 671B | 1T | 355B | 230B | 309B |
58
+ | 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 |
59
+ | | | | **Agent** | | | |
60
+ | τ²-Bench | 88.2 | 80.3 (85.2*) | 74.3*/85.4* | 87.4 | 86.6* | 80.3 (84.1*) |
61
+ | BrowseComp | 51.6 | 51.4 | 41.5* / 60.6 | 52.0 | 47.4 | 45.4 |
62
+ | BrowseComp (w/ Context Manager) | 69.0 | 67.6 | 60.2/74.9 | 67.5 | 62.0 | 58.3 |
63
+ | BrowseComp-ZH | 66.9 | 65.0 | 62.3 / 62.3* | 66.6 | 47.8* | 51.2* |
64
+ | BrowseComp-ZH (w/ Context Manager) | 73.7 | — | —/— | — | — | — |
65
+ | GAIA (no file) | 84.5 | 75.1* | 75.6*/75.9* | 61.9* | 64.3* | 78.2* |
66
+ | xbench-DeepSearch (2025.05) | 83.7 | 78.0* | 76.0*/76.7* | 72.0* | 68.7* | 69.3* |
67
+ | xbench-DeepSearch (2025.10) | 56.3 | 55.7* | —/40+ | 52.3* | 43.0* | 44.0* |
68
+ | ResearchRubrics | 65.3 | 55.8* | 56.2*/59.5* | 62.0* | 60.2* | 54.3* |
69
+ | | | | **Reasoning** | | | |
70
+ | AIME 2025 | 97.3 | 93.1 | 94.5/96.1 | 95.7 | 83.0 | 94.1 (95.1*) |
71
+ | HMMT 2025 (Feb.) | 98.4 | 92.5 | 89.4/95.4 | 97.1 | 71.0* | 84.4 (95.4*) |
72
+ | HMMT 2025 (Nov.) | 94.0 | 90.2 | 89.2*/— | 93.5 | 74.3* | 91.0* |
73
+ | IMOAnswerBench | 85.4 | 78.3 | 78.6/81.8 | 82.0 | 60.4* | 80.9* |
74
+ | | | | **Coding** | | | |
75
+ | LiveCodeBench-V6 | 86.4 | 83.3 | 83.1/85.0 | 84.9 | — | 80.6 (81.6*) |
76
+ | SWE-bench Verified | 74.4 | 73.1 | 71.3/76.8 | 73.8 | 74.0 | 73.4 |
77
+ | Terminal-Bench 2.0 | 51.0 | 46.4 | 35.7*/50.8 | 41.0 | 47.9 | 38.5 |
78
+
79
+ **Notes**:
80
+ 1. "—" indicates the score is not publicly available or not tested.
81
+ 2. "*" indicates the original score was inaccessible or lower than our reproduced, so we report the evaluation under the same test conditions as Step 3.5 Flash to ensure fair comparability.
82
+ 3. **BrowseComp (with Context Manager)**: When the effective context length exceeds a predefined threshold, the agent resets the context and restarts the agent loop. By contrast, Kimi K2.5 and DeepSeek-V3.2 used a "discard-all" strategy.
83
+ 4. **Decoding Cost**: Estimates are based on a methodology similar to, but more accurate than, the approach described arxiv.org/abs/2507.19427
84
+
85
+ ### Recommended Inference Parameters
86
+ 1. For general chat domain, we suggest: `temperature=0.6, top_p=0.95`
87
+ 2. For reasoning / agent scenario, we recommend: `temperature=1.0, top_p=0.95`.
88
+
89
+ ## 4. Architecture Details
90
+
91
+ 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.
92
+
93
+ ### 4.1 Technical Specifications
94
+
95
+ | Component | Specification |
96
+ | :--- | :--- |
97
+ | **Backbone** | 45-layer Transformer (4,096 hidden dim) |
98
+ | **Context Window** | 256K |
99
+ | **Vocabulary** | 128,896 tokens |
100
+ | **Total Parameters** | **196.81B** (196B Backbone + 0.81B Head) |
101
+ | **Active Parameters** | **~11B** (per token generation) |
102
+
103
+ ### 4.2 Mixture of Experts (MoE) Routing
104
+
105
+ Unlike traditional dense models, Step 3.5 Flash uses a fine-grained routing strategy to maximize efficiency:
106
+ - **Fine-Grained Experts**: 288 routed experts per layer + 1 shared expert (always active).
107
+ - **Sparse Activation**: Only the Top-8 experts are selected per token.
108
+ - **Result**: The model retains the "memory" of a 196B parameter model but executes with the speed of an 11B model.
109
+
110
+ ### 4.3 Multi-Token Prediction (MTP)
111
+
112
+ 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.
113
+
114
+ ## 5. Quick Start
115
+
116
+ You can get started with Step 3.5 Flash in minutes using Cloud API via our supported providers.
117
+
118
+ ### 5.1 Get Your API Key.
119
+
120
+ Sign up at [OpenRouter](https://openrouter.ai) or [platform.stepfun.ai](https://platform.stepfun.ai), and grab your API key.
121
+
122
+ > OpenRouter now offers free trial for Step 3.5 Flash.
123
+
124
+ | Provider | Website | Base URL |
125
+ | :--- | :--- | :--- |
126
+ | OpenRouter | https://openrouter.ai | https://openrouter.ai/api/v1 |
127
+ | StepFun | https://platform.stepfun.ai | https://api.stepfun.ai/v1 |
128
+
129
+ ### 5.2 Setup
130
+
131
+ Install the standard OpenAI SDK (compatible with both platforms).
132
+
133
+ ```bash
134
+ pip install --upgrade "openai>=1.0"
135
+ ```
136
+
137
+ Note: OpenRouter supports multiple SDKs. Learn more [here](https://openrouter.ai/docs/quickstart).
138
+
139
+ ### 5.3 Implementation Example
140
+
141
+ This example shows starting a chat with Step 3.5 Flash.
142
+
143
+ ```python
144
+ from openai import OpenAI
145
+
146
+ client = OpenAI(
147
+ api_key="YOUR_API_KEY",
148
+ base_url="https://api.stepfun.ai/v1", # or "https://openrouter.ai/api/v1"
149
+ # Optional: OpenRouter headers for app rankings
150
+ default_headers={
151
+ "HTTP-Referer": "<YOUR_SITE_URL>",
152
+ "X-Title": "<YOUR_SITE_NAME>",
153
+ }
154
+ )
155
+
156
+ completion = client.chat.completions.create(
157
+ model="step-3.5-flash", # Use "stepfun/step-3.5-flash" for OpenRouter
158
+ messages=[
159
+ {
160
+ "role": "system",
161
+ "content": "You are an AI chat assistant provided by StepFun. You are good at Chinese, English, and many other languages.",
162
+ },
163
+ {
164
+ "role": "user",
165
+ "content": "Introduce StepFun's artificial intelligence capabilities."
166
+ },
167
+ ],
168
+ )
169
+
170
+ print(completion.choices[0].message.content)
171
+ ```
172
+
173
+ ## 6. Local Deployment
174
+
175
+ Step 3.5 Flash is optimized for local inference and supports industry-standard backends including vLLM, SGLang, Hugging Face Transformers and llama.cpp.
176
+
177
+ ### 6.1 vLLM
178
+ We recommend using the latest nightly build of vLLM.
179
+ 1. Install vLLM.
180
+
181
+ ```bash
182
+ # via Docker
183
+ docker pull vllm/vllm-openai:nightly
184
+
185
+ # or via pip (nightly wheels)
186
+ pip install -U vllm --pre \
187
+ --index-url https://pypi.org/simple \
188
+ --extra-index-url https://wheels.vllm.ai/nightly
189
+ ```
190
+ 2. Launch the server.
191
+
192
+ **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.
193
+
194
+ - For fp8 model
195
+ ```bash
196
+ vllm serve <MODEL_PATH_OR_HF_ID> \
197
+ --served-model-name step3p5-flash \
198
+ --tensor-parallel-size 8 \
199
+ --enable-expert-parallel \
200
+ --disable-cascade-attn \
201
+ --reasoning-parser step3p5 \
202
+ --enable-auto-tool-choice \
203
+ --tool-call-parser step3p5 \
204
+ --hf-overrides '{"num_nextn_predict_layers": 1}' \
205
+ --speculative_config '{"method": "step3p5_mtp", "num_speculative_tokens": 1}' \
206
+ --trust-remote-code \
207
+ --quantization fp8
208
+ ```
209
+
210
+ - For bf16 model
211
+ ```bash
212
+ vllm serve <MODEL_PATH_OR_HF_ID> \
213
+ --served-model-name step3p5-flash \
214
+ --tensor-parallel-size 8 \
215
+ --enable-expert-parallel \
216
+ --disable-cascade-attn \
217
+ --reasoning-parser step3p5 \
218
+ --enable-auto-tool-choice \
219
+ --tool-call-parser step3p5 \
220
+ --hf-overrides '{"num_nextn_predict_layers": 1}' \
221
+ --speculative_config '{"method": "step3p5_mtp", "num_speculative_tokens": 1}' \
222
+ --trust-remote-code
223
+ ```
224
+ You can also refer to the [Step-3.5-Flash](https://github.com/vllm-project/recipes/blob/main/StepFun/Step-3.5-Flash.md) recipe.
225
+
226
+ ### 6.2 SGLang
227
+
228
+ 1. Install SGLang.
229
+ ```bash
230
+ # via Docker
231
+ docker pull lmsysorg/sglang:dev-pr-18084
232
+ # or from source (pip)
233
+ pip install "sglang[all] @ git+https://github.com/sgl-project/sglang.git"
234
+ ```
235
+
236
+ 2. Launch the server.
237
+ - For bf16 model
238
+
239
+ ```bash
240
+ sglang serve --model-path <MODEL_PATH_OR_HF_ID> \
241
+ --served-model-name step3p5-flash \
242
+ --tp-size 8 \
243
+ --tool-call-parser step3p5 \
244
+ --reasoning-parser step3p5 \
245
+ --speculative-algorithm EAGLE \
246
+ --speculative-num-steps 3 \
247
+ --speculative-eagle-topk 1 \
248
+ --speculative-num-draft-tokens 4 \
249
+ --enable-multi-layer-eagle \
250
+ --host 0.0.0.0 \
251
+ --port 8000
252
+ ```
253
+ - For fp8 model
254
+ ```bash
255
+ sglang serve --model-path <MODEL_PATH_OR_HF_ID> \
256
+ --served-model-name step3p5-flash \
257
+ --tp-size 8 \
258
+ --ep-size 8 \
259
+ --tool-call-parser step3p5 \
260
+ --reasoning-parser step3p5 \
261
+ --speculative-algorithm EAGLE \
262
+ --speculative-num-steps 3 \
263
+ --speculative-eagle-topk 1 \
264
+ --speculative-num-draft-tokens 4 \
265
+ --enable-multi-layer-eagle \
266
+ --host 0.0.0.0 \
267
+ --port 8000
268
+ ```
269
+
270
+ ### 6.3 Transformers (Debug / Verification)
271
+
272
+ Use this snippet for quick functional verification. For high-throughput serving, use vLLM or SGLang.
273
+ ```python
274
+ from transformers import AutoModelForCausalLM, AutoTokenizer
275
+
276
+ MODEL_PATH = "<MODEL_PATH_OR_HF_ID>"
277
+
278
+ # 1. Setup
279
+ tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH)
280
+ model = AutoModelForCausalLM.from_pretrained(
281
+ MODEL_PATH,
282
+ trust_remote_code=True,
283
+ torch_dtype="auto",
284
+ device_map="auto",
285
+ )
286
+
287
+ # 2. Prepare Input
288
+ messages = [{"role": "user", "content": "Explain the significance of the number 42."}]
289
+ inputs = tokenizer.apply_chat_template(
290
+ messages,
291
+ tokenize=True,
292
+ add_generation_prompt=True,
293
+ return_dict=True,
294
+ return_tensors="pt",
295
+ ).to(model.device)
296
+
297
+ # 3. Generate
298
+ generated_ids = model.generate(**inputs, max_new_tokens=128, do_sample=False)
299
+ output_text = tokenizer.decode(generated_ids[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
300
+
301
+ print(output_text)
302
+ ```
303
+
304
+ ### 6.4 llama.cpp
305
+
306
+ #### System Requirements
307
+ - GGUF Model Weights(int4): 111.5 GB
308
+ - Runtime Overhead: ~7 GB
309
+ - Minimum VRAM: 120 GB (e.g., Mac studio, DGX-Spark, AMD Ryzen AI Max+ 395)
310
+ - Recommended: 128GB unified memory
311
+ #### Steps
312
+ 1. Use official llama.cpp:
313
+ > the folder `Step-3.5-Flash/tree/main/llama.cpp` is **obsolete**
314
+ ```bash
315
+ git clone https://github.com/ggml-org/llama.cpp
316
+ cd llama.cpp
317
+ ```
318
+ 2. Build llama.cpp on Mac:
319
+ ```bash
320
+ cmake -S . -B build-macos \
321
+ -DCMAKE_BUILD_TYPE=Release \
322
+ -DGGML_METAL=ON \
323
+ -DGGML_ACCELERATE=ON \
324
+ -DLLAMA_BUILD_EXAMPLES=ON \
325
+ -DLLAMA_BUILD_COMMON=ON \
326
+ -DGGML_LTO=ON
327
+ cmake --build build-macos -j8
328
+ ```
329
+ 3. Build llama.cpp on DGX-Spark:
330
+ ```bash
331
+ cmake -S . -B build-cuda \
332
+ -DCMAKE_BUILD_TYPE=Release \
333
+ -DGGML_CUDA=ON \
334
+ -DGGML_CUDA_GRAPHS=ON \
335
+ -DLLAMA_CURL=OFF \
336
+ -DLLAMA_BUILD_EXAMPLES=ON \
337
+ -DLLAMA_BUILD_COMMON=ON
338
+ cmake --build build-cuda -j8
339
+ ```
340
+ 4. Build llama.cpp on AMD Windows:
341
+ ```bash
342
+ cmake -S . -B build-vulkan \
343
+ -DCMAKE_BUILD_TYPE=Release \
344
+ -DLLAMA_CURL=OFF \
345
+ -DGGML_OPENMP=ON \
346
+ -DGGML_VULKAN=ON
347
+ cmake --build build-vulkan -j8
348
+ ```
349
+ 5. Run with llama-cli
350
+ ```bash
351
+ ./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?"
352
+ ```
353
+ 6. Test performance with llama-batched-bench:
354
+ ```bash
355
+ ./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
356
+ ```
357
+
358
+ ## 7. Using Step 3.5 Flash on Agent Platforms
359
+
360
+ ### 7.1 Claude Code & Codex
361
+ 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.
362
+
363
+ #### 7.1.1 Prerequisites
364
+ Sign up at StepFun.ai or OpenRouter and grab an API key, as mentioned in the Quick Start.
365
+
366
+ #### 7.1.2 Environment setup
367
+ Claude Code and Codex rely on Node.js. We recommend installing Node.js version > v20. You can install Node via nvm.
368
+
369
+ **Mac/Linux**:
370
+ ```bash
371
+ # Install nvm on Mac/Linux via curl:
372
+ # Step 1
373
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
374
+
375
+ # Copy the full command
376
+ export NVM_DIR="$HOME/.nvm"
377
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
378
+ [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
379
+
380
+ # Users in China can set up npm mirror
381
+ config set registry https://registry.npmmirror.com
382
+
383
+ # Step 2
384
+ nvm install v22
385
+
386
+ # Make sure Node.js is installed
387
+ node --version
388
+
389
+ npm --version
390
+ ```
391
+
392
+ **Windows**:
393
+ You can download the installation file (`nvm-setup.exe`) from [https://github.com/coreybutler/nvm-windows/releases](https://github.com/coreybutler/nvm-windows/releases). Follow the instructions to install nvm. Run nvm commands to make sure it is installed.
394
+
395
+ #### 7.1.3 Use Step 3.5 Flash on Claude Code
396
+
397
+ 1. Install Claude Code.
398
+ ```bash
399
+ # install claude code via npm
400
+ npm install -g @anthropic-ai/claude-code
401
+
402
+ # test if the installation is successful
403
+ claude --version
404
+ ```
405
+
406
+ 2. Configure Claude Code.
407
+
408
+ To accommodate diverse workflows in Claude Code, we support both **Anthropic-style** and **OpenAI-style** APIs.
409
+
410
+ **Option A: Anthropic API style**:
411
+
412
+ > If you intend to use the **OpenRouter** API, refer to the OpenRouter integration guide.
413
+
414
+ Step 1: Edit Claude Settings. Update `~/.claude/settings.json`.
415
+ > You only need to modify the fields shown below. Leave the rest of the file unchanged.
416
+
417
+ ```json
418
+ {
419
+ "env": {
420
+ "ANTHROPIC_API_KEY": "API_KEY_from_StepFun",
421
+ "ANTHROPIC_BASE_URL": "https://api.stepfun.ai/"
422
+ },
423
+ "model": "step-3.5-flash"
424
+ }
425
+ ```
426
+ Step 2: Start Claude Code.
427
+
428
+ Save the file, and then start Claude Code. Run `/status` to confirm the model and base URL.
429
+
430
+ ```txt
431
+ ❯ /status
432
+ ─────────────────────────────────────────────────────────────────────────────────
433
+ Settings: Status Config Usage (←/→ or tab to cycle)
434
+
435
+ Version: 2.1.1
436
+ Session name: /rename to add a name
437
+ Session ID: 676dae61-259d-4eef-8c2f-0f1641600553
438
+ cwd: /Users/step-test/
439
+ Auth token: none
440
+ API key: ANTHROPIC_API_KEY
441
+ Anthropic base URL: https://api.stepfun.ai/
442
+
443
+ Model: step-3.5-flash
444
+ Setting sources: User settings
445
+ ```
446
+
447
+ **Option B: OpenAI API style**
448
+
449
+ > Note: OpenAI API style here refers to the `chat/completions/` format.
450
+
451
+ > We recommend using `claude-code-router`. For details, see [https://github.com/musistudio/claude-code-router](https://github.com/musistudio/claude-code-router).
452
+
453
+ After Claude Code is installed, install `claude-code-router` :
454
+
455
+ ```bash
456
+ # install ccr via npm
457
+ npm install -g @musistudio/claude-code-router
458
+
459
+ # validate it is installed
460
+ ccr -v
461
+ ```
462
+
463
+ Add the following configurations to `~/.claude-code-router/config.json`.
464
+
465
+ ```json
466
+ {
467
+ "PORT": 3456,
468
+ "Providers": [
469
+ {
470
+ "name": "stepfun-api",
471
+ "api_base_url": "https://api.stepfun.com/v1/chat/completions",
472
+ "api_key": "StepFun_API_KEY",
473
+ "models": ["step-3.5-flash"],
474
+ "transformer":{
475
+ "step-3.5-flash": { "use": ["OpenAI"]}
476
+ }
477
+ }
478
+ ],
479
+ "Router": {
480
+ "default": "stepfun-api,step-3.5-flash",
481
+ "background": "stepfun-api,step-3.5-flash",
482
+ "think": "stepfun-api,step-3.5-flash",
483
+ "longContext": "stepfun-api,step-3.5-flash",
484
+ "webSearch": "stepfun-api,step-3.5-flash"
485
+ }
486
+ }
487
+ ```
488
+ You can now start Claude Code:
489
+
490
+ ```bash
491
+ # Start Claude
492
+ ccr code
493
+
494
+ # restart ccr if configs are changed
495
+ ccr restart
496
+ ```
497
+
498
+ #### 7.1.4 Use Step 3.5 Flash on Codex
499
+ 1. Install Codex
500
+ ```bash
501
+ # Install codex via npm
502
+ npm install -g @openai/codex
503
+
504
+ # Test if it is installed
505
+ codex --version
506
+ ```
507
+
508
+ 2. Configure Codex
509
+ Add the following settings to `~/.codex/config.toml`, keeping the rest of the settings as they are.
510
+
511
+ ```json
512
+ model="step-3.5-flash"
513
+ model_provider = "stepfun-chat"
514
+ preferred_auth_method = "apikey"
515
+
516
+ # configure the provider
517
+ [model_providers.stepfun-chat]
518
+ name = "OpenAI using response"
519
+ base_url = "https://api.stepfun.com/v1"
520
+ env_key = "OPENAI_API_KEY"
521
+ wire_api = "chat"
522
+ query_params = {}
523
+ ```
524
+
525
+ 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`.
526
+
527
+ When finishing the configuration, run codex in a new Terminal window to start Codex. Run `/status` to check the configuration.
528
+
529
+ ```bash
530
+ /status
531
+ 📂 Workspace
532
+ • Path: /Users/step-test/
533
+ • Approval Mode: on-request
534
+ • Sandbox: workspace-write
535
+ • AGENTS files: (none)
536
+
537
+ 🧠 Model
538
+ • Name: step-3.5-flash
539
+ • Provider: Stepfun-chat
540
+
541
+ 💻 Client
542
+ • CLI Version: 0.40.0
543
+ ```
544
+
545
+ #### 7.1.5 Use Step 3.5 Flash on Step-DeepResearch (DeepResearch)
546
+ 1. Use the reference environment setup below and configure `MODEL_NAME` to `Step-3.5-Flash`. [https://github.com/stepfun-ai/StepDeepResearch?tab=readme-ov-file#1-environment-setup](https://github.com/stepfun-ai/StepDeepResearch?tab=readme-ov-file#1-environment-setup)
547
+
548
+
549
+ ## 8. Known Issues and Future Directions
550
+
551
+ 1. **Token Efficiency**. Step 3.5 Flash achieves frontier-level agentic intelligence but currently relies on longer generation trajectories than Gemini 3.0 Pro to reach comparable quality.
552
+ 2. **Efficient Universal Mastery**. We aim to unify generalist versatility with deep domain expertise. To achieve this efficiently, we are advancing variants of on-policy distillation, allowing the model to internalize expert behaviors with higher sample efficiency.
553
+ 3. **RL for More Agentic Tasks**. While Step 3.5 Flash demonstrates competitive performance on academic agentic benchmarks, the next frontier of agentic AI necessitates the application of RL to intricate, expert-level tasks found in professional work, engineering, and research.
554
+ 4. **Operational Scope and Constraints**. Step 3.5 Flash is tailored for coding and work-centric tasks, but may experience reduced stability during distribution shifts. This typically occurs in highly specialized domains or long-horizon, multi-turn dialogues, where the model may exhibit repetitive reasoning, mixed-language outputs, or inconsistencies in time and identity awareness.
555
+
556
+ ## 9. Co-Developing the Future
557
+
558
+ We view our roadmap as a living document, evolving continuously based on real-world usage and developer feedback.
559
+ 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.
560
+
561
+ - **Join the Conversation**: Our Discord community is the primary hub for brainstorming future architectures, proposing capabilities, and getting early access updates 🚀
562
+ - **Report Friction**: Encountering limitations? You can open an issue on GitHub or flag it directly in our Discord support channels.
563
+
564
+ ## 📜 Citation
565
+
566
+ If you find this project useful in your research, please cite our technical report:
567
+
568
+ ```tex
569
+ @misc{huang2026step35flashopen,
570
+ title={Step 3.5 Flash: Open Frontier-Level Intelligence with 11B Active Parameters},
571
+ author={Ailin Huang and Ang Li and Aobo Kong and Bin Wang and Binxing Jiao and Bo Dong and Bojun Wang and Boyu Chen and Brian Li and Buyun Ma and Chang Su and Changxin Miao and Changyi Wan and Chao Lou and Chen Hu and Chen Xu and Chenfeng Yu and Chengting Feng and Chengyuan Yao and Chunrui Han and Dan Ma and Dapeng Shi and Daxin Jiang and Dehua Ma and Deshan Sun and Di Qi and Enle Liu and Fajie Zhang and Fanqi Wan and Guanzhe Huang and Gulin Yan and Guoliang Cao and Guopeng Li and Han Cheng and Hangyu Guo and Hanshan Zhang and Hao Nie and Haonan Jia and Haoran Lv and Hebin Zhou and Hekun Lv and Heng Wang and Heung-Yeung Shum and Hongbo Huang and Hongbo Peng and Hongyu Zhou and Hongyuan Wang and Houyong Chen and Huangxi Zhu and Huimin Wu and Huiyong Guo and Jia Wang and Jian Zhou and Jianjian Sun and Jiaoren Wu and Jiaran Zhang and Jiashu Lv and Jiashuo Liu and Jiayi Fu and Jiayu Liu and Jie Cheng and Jie Luo and Jie Yang and Jie Zhou and Jieyi Hou and Jing Bai and Jingcheng Hu and Jingjing Xie and Jingwei Wu and Jingyang Zhang and Jishi Zhou and Junfeng Liu and Junzhe Lin and Ka Man Lo and Kai Liang and Kaibo Liu and Kaijun Tan and Kaiwen Yan and Kaixiang Li and Kang An and Kangheng Lin and Lei Yang and Liang Lv and Liang Zhao and Liangyu Chen and Lieyu Shi and Liguo Tan and Lin Lin and Lina Chen and Luck Ma and Mengqiang Ren and Michael Li and Ming Li and Mingliang Li and Mingming Zhang and Mingrui Chen and Mitt Huang and Na Wang and Peng Liu and Qi Han and Qian Zhao and Qinglin He and Qinxin Du and Qiuping Wu and Quan Sun and Rongqiu Yang and Ruihang Miao and Ruixin Han and Ruosi Wan and Ruyan Guo and Shan Wang and Shaoliang Pang and Shaowen Yang and Shengjie Fan and Shijie Shang and Shiliang Yang and Shiwei Li and Shuangshuang Tian and Siqi Liu and Siye Wu and Siyu Chen and Song Yuan and Tiancheng Cao and Tianchi Yue and Tianhao Cheng and Tianning Li and Tingdan Luo and Wang You and Wei Ji and Wei Yuan and Wei Zhang and Weibo Wu and Weihao Xie and Wen Sun and Wenjin Deng and Wenzhen Zheng and Wuxun Xie and Xiangfeng Wang and Xiangwen Kong and Xiangyu Liu and Xiangyu Zhang and Xiaobo Yang and Xiaojia Liu and Xiaolan Yuan and Xiaoran Jiao and Xiaoxiao Ren and Xiaoyun Zhang and Xin Li and Xin Liu and Xin Wu and Xing Chen and Xingping Yang and Xinran Wang and Xu Zhao and Xuan He and Xuanti Feng and Xuedan Cai and Xuqiang Zhou and Yanbo Yu and Yang Li and Yang Xu and Yanlin Lai and Yanming Xu and Yaoyu Wang and Yeqing Shen and Yibo Zhu and Yichen Lv and Yicheng Cao and Yifeng Gong and Yijing Yang and Yikun Yang and Yin Zhao and Yingxiu Zhao and Yinmin Zhang and Yitong Zhang and Yixuan Zhang and Yiyang Chen and Yongchi Zhao and Yongshen Long and Yongyao Wang and Yousong Guan and Yu Zhou and Yuang Peng and Yuanhao Ding and Yuantao Fan and Yuanzhen Yang and Yuchu Luo and Yudi Zhao and Yue Peng and Yueqiang Lin and Yufan Lu and Yuling Zhao and Yunzhou Ju and Yurong Zhang and Yusheng Li and Yuxiang Yang and Yuyang Chen and Yuzhu Cai and Zejia Weng and Zetao Hong and Zexi Li and Zhe Xie and Zheng Ge and Zheng Gong and Zheng Zeng and Zhenyi Lu and Zhewei Huang and Zhichao Chang and Zhiguo Huang and Zhiheng Hu and Zidong Yang and Zili Wang and Ziqi Ren and Zixin Zhang and Zixuan Wang},
572
+ year={2026},
573
+ eprint={2602.10604},
574
+ archivePrefix={arXiv},
575
+ primaryClass={cs.CL},
576
+ url={https://arxiv.org/abs/2602.10604},
577
+ }
578
+ ```
579
+
580
+ ## License
581
+ This project is open-sourced under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
chat_template.jinja ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% macro render_content(content) %}{% if content is none %}{{- '' }}{% elif content is string %}{{- content }}{% elif content is mapping %}{{- content['value'] if 'value' in content else content['text'] }}{% elif content is iterable %}{% for item in content %}{% if item.type == 'text' %}{{- item['value'] if 'value' in item else item['text'] }}{% elif item.type == 'image' %}<im_patch>{% endif %}{% endfor %}{% endif %}{% endmacro %}
2
+ {{bos_token}}{%- if tools %}
3
+ {{- '<|im_start|>system\n' }}
4
+ {%- if messages[0].role == 'system' %}
5
+ {{- render_content(messages[0].content) + '\n\n' }}
6
+ {%- endif %}
7
+ {{- "# Tools\n\nYou have access to the following functions in JSONSchema format:\n\n<tools>" }}
8
+ {%- for tool in tools %}
9
+ {{- "\n" }}
10
+ {{- tool | tojson(ensure_ascii=False) }}
11
+ {%- endfor %}
12
+ {{- "\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...>\n...\n</function> block must be nested within <tool_call>\n...\n</tool_call> XML tags\n- Required parameters MUST be specified\n</IMPORTANT><|im_end|>\n" }}
13
+ {%- else %}
14
+ {%- if messages[0].role == 'system' %}
15
+ {{- '<|im_start|>system\n' + render_content(messages[0].content) + '<|im_end|>\n' }}
16
+ {%- endif %}
17
+ {%- endif %}
18
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
19
+ {%- for message in messages[::-1] %}
20
+ {%- set index = (messages|length - 1) - loop.index0 %}
21
+ {%- if ns.multi_step_tool and message.role == "user" and render_content(message.content) is string and not(render_content(message.content).startswith('<tool_response>') and render_content(message.content).endswith('</tool_response>')) %}
22
+ {%- set ns.multi_step_tool = false %}
23
+ {%- set ns.last_query_index = index %}
24
+ {%- endif %}
25
+ {%- endfor %}
26
+ {%- for message in messages %}
27
+ {%- set content = render_content(message.content) %}
28
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
29
+ {%- set role_name = 'observation' if (message.role == "system" and not loop.first and message.name == 'observation') else message.role %}
30
+ {{- '<|im_start|>' + role_name + '\n' + content + '<|im_end|>' + '\n' }}
31
+ {%- elif message.role == "assistant" %}
32
+ {%- if message.reasoning_content is string %}
33
+ {%- set reasoning_content = render_content(message.reasoning_content) %}
34
+ {%- else %}
35
+ {%- if '</think>' in content %}
36
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
37
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
38
+ {%- else %}
39
+ {%- set reasoning_content = '' %}
40
+ {%- endif %}
41
+ {%- endif %}
42
+ {%- if loop.index0 > ns.last_query_index %}
43
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n' + content }}
44
+ {%- else %}
45
+ {{- '<|im_start|>' + message.role + '\n' + content }}
46
+ {%- endif %}
47
+ {%- if message.tool_calls %}
48
+ {%- for tool_call in message.tool_calls %}
49
+ {%- if tool_call.function is defined %}
50
+ {%- set tool_call = tool_call.function %}
51
+ {%- endif %}
52
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
53
+ {%- if tool_call.arguments is defined %}
54
+ {%- set arguments = tool_call.arguments %}
55
+ {%- for args_name, args_value in arguments|items %}
56
+ {{- '<parameter=' + args_name + '>\n' }}
57
+ {%- set args_value = args_value | tojson(ensure_ascii=False) | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
58
+ {{- args_value }}
59
+ {{- '\n</parameter>\n' }}
60
+ {%- endfor %}
61
+ {%- endif %}
62
+ {{- '</function>\n</tool_call>' }}
63
+ {%- endfor %}
64
+ {%- endif %}
65
+ {{- '<|im_end|>\n' }}
66
+ {%- elif message.role == "tool" %}
67
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
68
+ {{- '<|im_start|>tool_response\n' }}
69
+ {%- endif %}
70
+ {{- '<tool_response>' }}
71
+ {{- content }}
72
+ {{- '</tool_response>' }}
73
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
74
+ {{- '<|im_end|>\n' }}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if add_generation_prompt %}
79
+ {{- '<|im_start|>assistant\n<think>\n' }}
80
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,312 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Step3p5ForCausalLM"
4
+ ],
5
+ "model_type": "step3p5",
6
+ "auto_map": {
7
+ "AutoConfig": "configuration_step3p5.Step3p5Config",
8
+ "AutoModelForCausalLM": "modeling_step3p5.Step3p5ForCausalLM"
9
+ },
10
+ "rope_scaling": {
11
+ "rope_type": "llama3",
12
+ "factor": 2.0,
13
+ "original_max_position_embeddings": 131072,
14
+ "low_freq_factor": 1.0,
15
+ "high_freq_factor": 32.0
16
+ },
17
+ "yarn_only_types": ["full_attention"],
18
+ "hidden_size": 4096,
19
+ "intermediate_size": 11264,
20
+ "num_hidden_layers": 45,
21
+ "max_seq_len": 262144,
22
+ "vocab_size": 128896,
23
+ "torch_dtype": "bfloat16",
24
+ "use_qk_norm": true,
25
+ "moe_layers_enum": "3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44",
26
+ "num_attention_heads": 64,
27
+ "num_attention_groups": 8,
28
+ "head_dim": 128,
29
+ "use_moe": true,
30
+ "moe_num_experts": 288,
31
+ "moe_top_k": 8,
32
+ "moe_intermediate_size": 1280,
33
+ "share_expert_dim": 1280,
34
+ "moe_layer_offset": 0,
35
+ "moe_every_n_layer": 1,
36
+ "norm_expert_weight": true,
37
+ "moe_router_activation": "sigmoid",
38
+ "moe_router_scaling_factor": 3.0,
39
+ "att_impl_type": "GQA",
40
+ "rope_theta": [
41
+ 5000000.0,
42
+ 10000.0,
43
+ 10000.0,
44
+ 10000.0,
45
+ 5000000.0,
46
+ 10000.0,
47
+ 10000.0,
48
+ 10000.0,
49
+ 5000000.0,
50
+ 10000.0,
51
+ 10000.0,
52
+ 10000.0,
53
+ 5000000.0,
54
+ 10000.0,
55
+ 10000.0,
56
+ 10000.0,
57
+ 5000000.0,
58
+ 10000.0,
59
+ 10000.0,
60
+ 10000.0,
61
+ 5000000.0,
62
+ 10000.0,
63
+ 10000.0,
64
+ 10000.0,
65
+ 5000000.0,
66
+ 10000.0,
67
+ 10000.0,
68
+ 10000.0,
69
+ 5000000.0,
70
+ 10000.0,
71
+ 10000.0,
72
+ 10000.0,
73
+ 5000000.0,
74
+ 10000.0,
75
+ 10000.0,
76
+ 10000.0,
77
+ 5000000.0,
78
+ 10000.0,
79
+ 10000.0,
80
+ 10000.0,
81
+ 5000000.0,
82
+ 10000.0,
83
+ 10000.0,
84
+ 10000.0,
85
+ 5000000.0,
86
+ 10000.0,
87
+ 10000.0,
88
+ 10000.0
89
+ ],
90
+ "use_head_wise_attn_gate": true,
91
+ "sliding_window": 512,
92
+ "use_moe_router_bias": true,
93
+ "need_fp32_gate": true,
94
+ "sink": false,
95
+ "layer_types": [
96
+ "full_attention",
97
+ "sliding_attention",
98
+ "sliding_attention",
99
+ "sliding_attention",
100
+ "full_attention",
101
+ "sliding_attention",
102
+ "sliding_attention",
103
+ "sliding_attention",
104
+ "full_attention",
105
+ "sliding_attention",
106
+ "sliding_attention",
107
+ "sliding_attention",
108
+ "full_attention",
109
+ "sliding_attention",
110
+ "sliding_attention",
111
+ "sliding_attention",
112
+ "full_attention",
113
+ "sliding_attention",
114
+ "sliding_attention",
115
+ "sliding_attention",
116
+ "full_attention",
117
+ "sliding_attention",
118
+ "sliding_attention",
119
+ "sliding_attention",
120
+ "full_attention",
121
+ "sliding_attention",
122
+ "sliding_attention",
123
+ "sliding_attention",
124
+ "full_attention",
125
+ "sliding_attention",
126
+ "sliding_attention",
127
+ "sliding_attention",
128
+ "full_attention",
129
+ "sliding_attention",
130
+ "sliding_attention",
131
+ "sliding_attention",
132
+ "full_attention",
133
+ "sliding_attention",
134
+ "sliding_attention",
135
+ "sliding_attention",
136
+ "full_attention",
137
+ "sliding_attention",
138
+ "sliding_attention",
139
+ "sliding_attention",
140
+ "full_attention",
141
+ "sliding_attention",
142
+ "sliding_attention",
143
+ "sliding_attention"
144
+ ],
145
+ "use_rope_layers": [],
146
+ "num_nextn_predict_layers": 3,
147
+ "partial_rotary_factors": [
148
+ 0.5,
149
+ 1.0,
150
+ 1.0,
151
+ 1.0,
152
+ 0.5,
153
+ 1.0,
154
+ 1.0,
155
+ 1.0,
156
+ 0.5,
157
+ 1.0,
158
+ 1.0,
159
+ 1.0,
160
+ 0.5,
161
+ 1.0,
162
+ 1.0,
163
+ 1.0,
164
+ 0.5,
165
+ 1.0,
166
+ 1.0,
167
+ 1.0,
168
+ 0.5,
169
+ 1.0,
170
+ 1.0,
171
+ 1.0,
172
+ 0.5,
173
+ 1.0,
174
+ 1.0,
175
+ 1.0,
176
+ 0.5,
177
+ 1.0,
178
+ 1.0,
179
+ 1.0,
180
+ 0.5,
181
+ 1.0,
182
+ 1.0,
183
+ 1.0,
184
+ 0.5,
185
+ 1.0,
186
+ 1.0,
187
+ 1.0,
188
+ 0.5,
189
+ 1.0,
190
+ 1.0,
191
+ 1.0,
192
+ 0.5,
193
+ 1.0,
194
+ 1.0,
195
+ 1.0
196
+ ],
197
+ "eos_token_id": [
198
+ 1,
199
+ 2,
200
+ 128007
201
+ ],
202
+ "bos_token_id": 0,
203
+ "attention_other_setting": {
204
+ "attention_type": "sliding_attention",
205
+ "num_attention_heads": 96,
206
+ "num_attention_groups": 8,
207
+ "head_dim": 128,
208
+ "true_head_dim": 128
209
+ },
210
+ "swiglu_limits": [
211
+ 0.0,
212
+ 0.0,
213
+ 0.0,
214
+ 0.0,
215
+ 0.0,
216
+ 0.0,
217
+ 0.0,
218
+ 0.0,
219
+ 0.0,
220
+ 0.0,
221
+ 0.0,
222
+ 0.0,
223
+ 0.0,
224
+ 0.0,
225
+ 0.0,
226
+ 0.0,
227
+ 0.0,
228
+ 0.0,
229
+ 0.0,
230
+ 0.0,
231
+ 0.0,
232
+ 0.0,
233
+ 0.0,
234
+ 0.0,
235
+ 0.0,
236
+ 0.0,
237
+ 0.0,
238
+ 0.0,
239
+ 0.0,
240
+ 0.0,
241
+ 0.0,
242
+ 0.0,
243
+ 0.0,
244
+ 0.0,
245
+ 0.0,
246
+ 0.0,
247
+ 0.0,
248
+ 0.0,
249
+ 0.0,
250
+ 0.0,
251
+ 0.0,
252
+ 0.0,
253
+ 0.0,
254
+ 7,
255
+ 7,
256
+ 0.0,
257
+ 0.0,
258
+ 0.0
259
+ ],
260
+ "swiglu_limits_shared": [
261
+ 0.0,
262
+ 0.0,
263
+ 0.0,
264
+ 0.0,
265
+ 0.0,
266
+ 0.0,
267
+ 0.0,
268
+ 0.0,
269
+ 0.0,
270
+ 0.0,
271
+ 0.0,
272
+ 0.0,
273
+ 0.0,
274
+ 0.0,
275
+ 0.0,
276
+ 0.0,
277
+ 0.0,
278
+ 0.0,
279
+ 0.0,
280
+ 0.0,
281
+ 0.0,
282
+ 0.0,
283
+ 0.0,
284
+ 0.0,
285
+ 0.0,
286
+ 0.0,
287
+ 0.0,
288
+ 0.0,
289
+ 0.0,
290
+ 0.0,
291
+ 0.0,
292
+ 0.0,
293
+ 0.0,
294
+ 0.0,
295
+ 0.0,
296
+ 0.0,
297
+ 0.0,
298
+ 0.0,
299
+ 0.0,
300
+ 0.0,
301
+ 0.0,
302
+ 0.0,
303
+ 0.0,
304
+ 0.0,
305
+ 16,
306
+ 0.0,
307
+ 0.0,
308
+ 0.0
309
+ ],
310
+ "zero_centered": true,
311
+ "max_position_embeddings": 262144
312
+ }
configuration_step3p5.py ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Optional, Union
2
+
3
+ from transformers.configuration_utils import PretrainedConfig
4
+
5
+
6
+
7
+ class Step3p5Config(PretrainedConfig):
8
+ model_type = "step3p5"
9
+ architectures = ["Step3p5ForCausalLM"]
10
+
11
+ def __init__(
12
+ self,
13
+ hidden_size: int = 4096,
14
+ intermediate_size: int = 11264,
15
+ num_attention_heads: int = 64,
16
+ num_attention_groups: int = 8,
17
+ num_hidden_layers: int = 45,
18
+ max_seq_len: int = 128000,
19
+ vocab_size: int = 128815,
20
+ rms_norm_eps: float = 1e-5,
21
+ moe_intermediate_size: int = 1280,
22
+ moe_num_experts: int = 288,
23
+ moe_top_k: int = 8,
24
+ rope_theta: float = 10000,
25
+ rope_scaling: Optional[dict[str, Any]] = None,
26
+ max_position_embeddings: int = 128000,
27
+ share_expert_dims: int = 1280,
28
+ head_dim: int = 128,
29
+ norm_expert_weight: bool = True,
30
+ layer_types: list[str] = None,
31
+ sliding_window: Optional[int] = None,
32
+ moe_layers_enum: tuple[int] = (3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
33
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
34
+ 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35
+ 35, 36, 37, 38, 39, 40, 41, 42, 43, 44),
36
+ **kwargs,
37
+ ) -> None:
38
+ self.hidden_size = hidden_size
39
+ self.intermediate_size = intermediate_size
40
+ self.num_attention_heads = num_attention_heads
41
+ self.num_attention_groups = num_attention_groups
42
+ self.num_hidden_layers = num_hidden_layers
43
+ self.max_seq_len = max_seq_len
44
+ self.vocab_size = vocab_size
45
+ self.rms_norm_eps = rms_norm_eps
46
+ self.moe_intermediate_size = moe_intermediate_size
47
+ self.moe_num_experts = moe_num_experts
48
+ self.moe_top_k = moe_top_k
49
+ self.rope_theta = rope_theta
50
+ self.rope_scaling = rope_scaling
51
+ self.max_position_embeddings = max_position_embeddings
52
+ self.share_expert_dim = share_expert_dims
53
+ self.head_dim = head_dim
54
+ self.norm_expert_weight = norm_expert_weight
55
+ self.moe_layers_enum = moe_layers_enum
56
+ self.layer_types = layer_types
57
+ self.sliding_window = sliding_window
58
+ super().__init__(**kwargs)
59
+
model-00001.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f8e2662c620b7f21cb8b00961471128746421c6f61ba92ad24ff8651e986766
3
+ size 9628898912
model-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22e138ece5dce3c2611f8b6728f966e506ed139c57b72ee4139ba1deca91ead7
3
+ size 8632547344
model-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8726b3b15516baa63f029590c8b5da4459edd0f50da57e273d13fc2deff31d8
3
+ size 9059696992
model-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:198b2f0c237110ad9bbe65de107dd4dfe450a86cfc5f250c6b9cb688321e571d
3
+ size 9059696992
model-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d3721a49193beb502621b97b55f22ff9b7458a71a910ffc1fe74243abc19777
3
+ size 9059696992
model-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc035e1afcc9785ee895ee1372519d2bd327c76284629f74c4d157bdf573c53f
3
+ size 9059696992
model-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2ff1c7baff83316fae101d258bb44924032df3278849c09d236441ead771330
3
+ size 9059696992
model-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2615aeb466afb62ec1b7403b9040019c3018a44d167405547e7559b3d8e34e8
3
+ size 9059696992
model-00009.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f544f4375037da6cd02366427ff5e75e5244c2491a0090fba350867050b2bed7
3
+ size 9059696992
model-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc5288b60acfc96f4be69f993c9bc603b778a853d7a4cdd24591054ade49bd42
3
+ size 9059697000
model-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0fd8a16bda39fb8ae26ad0dd3a5c32e7ce915be778505c44066c74b3c17e386
3
+ size 9059697000
model-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53f27314566dbf7e6c4755094515dc0b77a20a15ecd83ddaabc61ba0a6f65ecd
3
+ size 9059697000
model-00013.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a1d66062d7e22083872d894ae6f44ec9faea9bc01f0306778b709e1eca83313
3
+ size 9059697000
model-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3db10310139824a2952baaec66da5f93968dd7485c513270943d2c649843b874
3
+ size 9059697000
model-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52db61304d989ae57dc4b8a01c78cb0798bef2624afb1c6425bd9f9296a90494
3
+ size 9059697000
model-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db4c6aef9cc7468ff5587496e6d950b3992e5de02f9b771a0fc1bae4aa873866
3
+ size 9059697000
model-00017.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e376274886e231751f41d71bcba67ad6c02a68fed8bfae6a6335bd10a37b414
3
+ size 9059697000
model-00018.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc48094eac9f450a9b773869aa85394dbec8e32d307e51de94a5bf72b575498b
3
+ size 9059697000
model-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7f962f5a2ab272cc4e90ffd22eb639f4beb15eadd6eca391e80002861161b3f
3
+ size 9059697000
model-00020.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffe4b5d3083c7a874a10129c8085ab1012066981f0d700d315563f759d3dfff9
3
+ size 9059697000
model-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0b8f2f30a026adc1e6936f4bbe0807d4fc4e2caf391f05c533fc32fbec7e0ab
3
+ size 9059697000
model-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e70c49f26b69916ca1fc0266dc2b03f7dd47a2508ee40c68588993b31879962b
3
+ size 9059697000
model-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63fef3259ccfbd135ab4d289ca962e8ed1c2ac55216546e49e259e66ac2cc87e
3
+ size 9059697000
model-00024.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29eeb0ed8525d3bcdbc19643ff66252cbd641f44aa54592fcb0654260e428611
3
+ size 9059697000
model-00025.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20ccb4b13ee04b6d76d8d397420c310312d514f71688d55df5529114c7adf769
3
+ size 9059697000
model-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da930ba12ecb5ac0f111e5351ce4f4a691b95b99cc34d657490ed0c4ecc6ce29
3
+ size 9059697000
model-00027.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ef0f3708e484aa4be0157b0e78794280820e51604056b12a96e478d3486511c
3
+ size 9059697000
model-00028.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08feb8feb8a238efc43ea376b83139f0a0b121386048c68265d2af2f9beee712
3
+ size 9059697000
model-00029.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05e4482ec47a1e77c2a337be59a5598517fdb23f5aca1fc295e44b2d0283ba59
3
+ size 9059697000
model-00030.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9cb29b0a63748adcb055e1001e955df82278db8c42447829bc6f61cdb162305
3
+ size 9059697000
model-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebe00abaa258ee7142289ef259db4ce3272a1fbe1a3f096acbedfddeb6fcf214
3
+ size 9059697000
model-00032.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0227047725983fd5601c5dfda03cf65f23aec2fd528260b1c33d43a71f473460
3
+ size 9059697000
model-00033.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1673cef13088986b6fad926cc706ff3e2947824c71825a55477e7baa8b09e201
3
+ size 9059697000
model-00034.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52930ddcd3f6c8f99212883967f0bca80f1b0bd1e1269e97b4a5cce5666ddc82
3
+ size 9059697000
model-00035.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:581b9539799266540a2e78dee7a2b294c8820b412b2d148fca47c32c9347ee32
3
+ size 9059697000
model-00036.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:571ddde460371caa95e0e2a0f3c18e7974d80ada1c5cd9f00b1242ba880fda47
3
+ size 9059697000
model-00037.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abeea37a41821b07daed0e98b44349a089d7cb43030cfcc6608db8bc6fcd926c
3
+ size 9059697000
model-00038.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df998f9af1c225263239d9210fc66fcdb76b1134833aa318bc0f144e8d33426b
3
+ size 9059697000
model-00039.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d316a3f796db46b13bfd9dddc086fa4cd866e1e2338f63e68bf35ba186274a7
3
+ size 9059697000
model-00040.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e287dbcfaa2c9c8ea77334cdd6fc011b8c058b8f750870ff309faf671b38d688
3
+ size 9059697000
model-00041.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:933b06efa555d81b7525b87f3b5636ca82fc5b730a8cc0e35f7f0fedb658dbf4
3
+ size 9059697000
model-00042.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0057a63127ae7282dc9aaf28fc7948e3377d8d04bc7aec580772520264a7f450
3
+ size 9059697000
model-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29bb1885b5721799447e65b4d67054aba290cba32e38e6934c3690b41ff22c6c
3
+ size 9059697000
model-00044.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d4febe2c29ebb67ed97b99922113c353f97935a7f4243d7843c833d06471b41
3
+ size 9059697000