Update README.md
Browse files
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
| 2 |
-
---
|
| 3 |
license: other
|
| 4 |
license_link: https://huggingface.co/stepfun-ai/Step-5-Preview/blob/main/LICENSE.txt
|
| 5 |
---
|
|
|
|
| 6 |
<p align="center">
|
| 7 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/65dc9de42a6348b052a3286e/-R9DERgmQiBfO2cF0HXoD.png" alt="StepFun logo" width="64" />
|
| 8 |
</p>
|
|
@@ -141,8 +141,6 @@ Run the serving commands below inside the container. If the checkpoint requires
|
|
| 141 |
<details>
|
| 142 |
<summary><strong>FP8: Single Node on 4 B300 GPUs</strong></summary>
|
| 143 |
|
| 144 |
-
#### FP8: Single Node on 4 B300 GPUs
|
| 145 |
-
|
| 146 |
Choose one of the following parallel configurations for a single node with four B300 GPUs:
|
| 147 |
|
| 148 |
| Mode | Tensor parallel | Data parallel | Expert parallel |
|
|
@@ -248,8 +246,6 @@ TP and TEP use DP=1; DEP uses TP=1. In all configurations, `--max-num-seqs` appl
|
|
| 248 |
<details>
|
| 249 |
<summary><strong>BF16</strong></summary>
|
| 250 |
|
| 251 |
-
#### BF16
|
| 252 |
-
|
| 253 |
BF16 deployments require a BF16 checkpoint. Setting `--dtype bfloat16` on the FP8 checkpoint does not convert its quantized weights to BF16.
|
| 254 |
|
| 255 |
Mount the BF16 checkpoint directory at the same path inside the container, then set `MODEL` to that path:
|
|
@@ -361,8 +357,6 @@ Use separate checkpoints and output directories for FP8 and BF16. Conversion pre
|
|
| 361 |
<details>
|
| 362 |
<summary><strong>FP8: One H200 Node, 8 GPUs</strong></summary>
|
| 363 |
|
| 364 |
-
#### FP8: One H200 Node, 8 GPUs
|
| 365 |
-
|
| 366 |
Convert the FP8 checkpoint once, then launch eight local processes for TP8 / EP8 generation:
|
| 367 |
|
| 368 |
```bash
|
|
@@ -389,8 +383,6 @@ torchrun --standalone --nproc-per-node=8 generate.py \
|
|
| 389 |
<details>
|
| 390 |
<summary><strong>BF16: Two H200 Nodes, 16 GPUs</strong></summary>
|
| 391 |
|
| 392 |
-
#### BF16: Two H200 Nodes, 16 GPUs
|
| 393 |
-
|
| 394 |
For TP16 / EP16 generation across two nodes, first convert the BF16 checkpoint into 16 shards. Make the resulting `tp16/` and `tokenizer_files/` directories accessible to both nodes:
|
| 395 |
|
| 396 |
```bash
|
|
@@ -433,6 +425,11 @@ This launches 16 processes across the two nodes, matching the 16-shard checkpoin
|
|
| 433 |
|
| 434 |
### SGLang
|
| 435 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 436 |
#### Environment Setup
|
| 437 |
|
| 438 |
Pull the Step 5 Preview SGLang Docker image:
|
|
@@ -441,14 +438,12 @@ Pull the Step 5 Preview SGLang Docker image:
|
|
| 441 |
docker pull lmsysorg/sglang:step-5-preview
|
| 442 |
```
|
| 443 |
|
| 444 |
-
Then, launch the server using the configuration for your hardware.
|
| 445 |
|
| 446 |
<details>
|
| 447 |
-
<summary><strong>B300:
|
| 448 |
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
For single-user chat and latency-sensitive serving.
|
| 452 |
|
| 453 |
```bash
|
| 454 |
export CUDA_VISIBLE_DEVICES=0,1,2,3
|
|
@@ -458,8 +453,9 @@ python -m sglang.launch_server \
|
|
| 458 |
--model-path stepfun-ai/Step-5-Preview \
|
| 459 |
--served-model-name step5 \
|
| 460 |
--tp 4 \
|
| 461 |
-
--ep-size
|
| 462 |
--moe-runner-backend flashinfer_trtllm \
|
|
|
|
| 463 |
--attention-backend fa4 \
|
| 464 |
--page-size 64 \
|
| 465 |
--kv-cache-dtype bfloat16 \
|
|
@@ -474,19 +470,16 @@ python -m sglang.launch_server \
|
|
| 474 |
--speculative-eagle-topk 1 \
|
| 475 |
--speculative-num-draft-tokens 4 \
|
| 476 |
--enable-multi-layer-eagle \
|
| 477 |
-
--reasoning-parser
|
| 478 |
-
--tool-call-parser
|
| 479 |
--host 0.0.0.0 \
|
| 480 |
--port 30000
|
| 481 |
```
|
| 482 |
|
| 483 |
</details>
|
| 484 |
|
| 485 |
-
|
| 486 |
<details>
|
| 487 |
-
<summary><strong>H200:
|
| 488 |
-
|
| 489 |
-
#### H200: Balanced (8 GPUs, TP8/EP8)
|
| 490 |
|
| 491 |
For single-node H200 serving with Triton MoE and FA3 attention.
|
| 492 |
|
|
@@ -514,8 +507,8 @@ python -m sglang.launch_server \
|
|
| 514 |
--speculative-eagle-topk 1 \
|
| 515 |
--speculative-num-draft-tokens 4 \
|
| 516 |
--enable-multi-layer-eagle \
|
| 517 |
-
--reasoning-parser
|
| 518 |
-
--tool-call-parser
|
| 519 |
--host 0.0.0.0 \
|
| 520 |
--port 30000
|
| 521 |
```
|
|
@@ -554,6 +547,6 @@ curl http://127.0.0.1:18000/v1/chat/completions \
|
|
| 554 |
|
| 555 |
## License
|
| 556 |
|
| 557 |
-
This model, including its weights, parameters, configuration, tokenizer, model-specific code, and documentation, is licensed under the StepFun Model License 1.0. The full text of the License is available in the [LICENSE](LICENSE) file in this repository. The StepFun Model License 1.0 is an Apache-2.0-Style license, with additional attribution and commercial-license conditions specific to model use, modification and distribution.
|
| 558 |
|
| 559 |
Where accompanying materials in this repository, including sample code, datasets, third-party components and other documentation, are separately marked as subject to a different license, such materials are licensed under that license.
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
license: other
|
| 3 |
license_link: https://huggingface.co/stepfun-ai/Step-5-Preview/blob/main/LICENSE.txt
|
| 4 |
---
|
| 5 |
+
|
| 6 |
<p align="center">
|
| 7 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/65dc9de42a6348b052a3286e/-R9DERgmQiBfO2cF0HXoD.png" alt="StepFun logo" width="64" />
|
| 8 |
</p>
|
|
|
|
| 141 |
<details>
|
| 142 |
<summary><strong>FP8: Single Node on 4 B300 GPUs</strong></summary>
|
| 143 |
|
|
|
|
|
|
|
| 144 |
Choose one of the following parallel configurations for a single node with four B300 GPUs:
|
| 145 |
|
| 146 |
| Mode | Tensor parallel | Data parallel | Expert parallel |
|
|
|
|
| 246 |
<details>
|
| 247 |
<summary><strong>BF16</strong></summary>
|
| 248 |
|
|
|
|
|
|
|
| 249 |
BF16 deployments require a BF16 checkpoint. Setting `--dtype bfloat16` on the FP8 checkpoint does not convert its quantized weights to BF16.
|
| 250 |
|
| 251 |
Mount the BF16 checkpoint directory at the same path inside the container, then set `MODEL` to that path:
|
|
|
|
| 357 |
<details>
|
| 358 |
<summary><strong>FP8: One H200 Node, 8 GPUs</strong></summary>
|
| 359 |
|
|
|
|
|
|
|
| 360 |
Convert the FP8 checkpoint once, then launch eight local processes for TP8 / EP8 generation:
|
| 361 |
|
| 362 |
```bash
|
|
|
|
| 383 |
<details>
|
| 384 |
<summary><strong>BF16: Two H200 Nodes, 16 GPUs</strong></summary>
|
| 385 |
|
|
|
|
|
|
|
| 386 |
For TP16 / EP16 generation across two nodes, first convert the BF16 checkpoint into 16 shards. Make the resulting `tp16/` and `tokenizer_files/` directories accessible to both nodes:
|
| 387 |
|
| 388 |
```bash
|
|
|
|
| 425 |
|
| 426 |
### SGLang
|
| 427 |
|
| 428 |
+
| Framework | Precision | Hardware | Parallelism | Interface |
|
| 429 |
+
| --- | --- | --- | --- | --- |
|
| 430 |
+
| SGLang | FP8 | One B300 node, 4 GPUs | TP4/EP4 | OpenAI-compatible API |
|
| 431 |
+
| SGLang | FP8 | One H200 node, 8 GPUs | TP8/EP8 | OpenAI-compatible API |
|
| 432 |
+
|
| 433 |
#### Environment Setup
|
| 434 |
|
| 435 |
Pull the Step 5 Preview SGLang Docker image:
|
|
|
|
| 438 |
docker pull lmsysorg/sglang:step-5-preview
|
| 439 |
```
|
| 440 |
|
| 441 |
+
Then, launch the server using the configuration for your hardware. For more optimized configurations, including MegaMoE, attention data parallelism and HiCache, see the [SGLang Cookbook for Step 5 Preview](https://docs.sglang.io/cookbook/autoregressive/StepFun/Step-5-Preview).
|
| 442 |
|
| 443 |
<details>
|
| 444 |
+
<summary><strong>B300: TP4/EP4, 4 GPUs</strong></summary>
|
| 445 |
|
| 446 |
+
Uses MegaMoE for the FP8 routed experts.
|
|
|
|
|
|
|
| 447 |
|
| 448 |
```bash
|
| 449 |
export CUDA_VISIBLE_DEVICES=0,1,2,3
|
|
|
|
| 453 |
--model-path stepfun-ai/Step-5-Preview \
|
| 454 |
--served-model-name step5 \
|
| 455 |
--tp 4 \
|
| 456 |
+
--ep-size 4 \
|
| 457 |
--moe-runner-backend flashinfer_trtllm \
|
| 458 |
+
--moe-a2a-backend megamoe \
|
| 459 |
--attention-backend fa4 \
|
| 460 |
--page-size 64 \
|
| 461 |
--kv-cache-dtype bfloat16 \
|
|
|
|
| 470 |
--speculative-eagle-topk 1 \
|
| 471 |
--speculative-num-draft-tokens 4 \
|
| 472 |
--enable-multi-layer-eagle \
|
| 473 |
+
--reasoning-parser step5 \
|
| 474 |
+
--tool-call-parser step5 \
|
| 475 |
--host 0.0.0.0 \
|
| 476 |
--port 30000
|
| 477 |
```
|
| 478 |
|
| 479 |
</details>
|
| 480 |
|
|
|
|
| 481 |
<details>
|
| 482 |
+
<summary><strong>H200: TP8/EP8, 8 GPUs</strong></summary>
|
|
|
|
|
|
|
| 483 |
|
| 484 |
For single-node H200 serving with Triton MoE and FA3 attention.
|
| 485 |
|
|
|
|
| 507 |
--speculative-eagle-topk 1 \
|
| 508 |
--speculative-num-draft-tokens 4 \
|
| 509 |
--enable-multi-layer-eagle \
|
| 510 |
+
--reasoning-parser step5 \
|
| 511 |
+
--tool-call-parser step5 \
|
| 512 |
--host 0.0.0.0 \
|
| 513 |
--port 30000
|
| 514 |
```
|
|
|
|
| 547 |
|
| 548 |
## License
|
| 549 |
|
| 550 |
+
This model, including its weights, parameters, configuration, tokenizer, model-specific code, and documentation, is licensed under the StepFun Model License 1.0. The full text of the License is available in the [LICENSE.txt](https://huggingface.co/stepfun-ai/Step-5-Preview/blob/main/LICENSE.txt) file in this repository. The StepFun Model License 1.0 is an Apache-2.0-Style license, with additional attribution and commercial-license conditions specific to model use, modification and distribution.
|
| 551 |
|
| 552 |
Where accompanying materials in this repository, including sample code, datasets, third-party components and other documentation, are separately marked as subject to a different license, such materials are licensed under that license.
|