Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# gpt-oss-120b-bf16
|
2 |
+
## Model Introduction
|
3 |
+
This model is the bf16 version converted from [openai/gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b).
|
4 |
+
## Usage
|
5 |
+
You can use this model in [SGLang](https://github.com/sgl-project/sglang) with the following instructions.
|
6 |
+
### Installation
|
7 |
+
```
|
8 |
+
# build from source
|
9 |
+
git clone https://github.com/sgl-project/sglang
|
10 |
+
cd sglang
|
11 |
+
pip3 install pip --upgrade
|
12 |
+
pip3 install -e "python[all]"
|
13 |
+
|
14 |
+
# ROCm 6.3
|
15 |
+
pip3 install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/rocm6.3
|
16 |
+
git clone https://github.com/triton-lang/triton
|
17 |
+
cd python/triton_kernels
|
18 |
+
pip3 install .
|
19 |
+
|
20 |
+
# hopper
|
21 |
+
pip3 install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu126
|
22 |
+
pip3 install sgl-kernel==0.3.2
|
23 |
+
|
24 |
+
# blackwell cu128
|
25 |
+
pip3 install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu128
|
26 |
+
pip3 install https://github.com/sgl-project/whl/releases/download/v0.3.2/sgl_kernel-0.3.2+cu128-cp39-abi3-manylinux2014_x86_64.whl
|
27 |
+
|
28 |
+
# blackwell cu129
|
29 |
+
pip3 install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu129
|
30 |
+
pip3 install https://github.com/sgl-project/whl/releases/download/v0.3.2/sgl_kernel-0.3.2-cp39-abi3-manylinux2014_x86_64.whl
|
31 |
+
```
|
32 |
+
### Launch command
|
33 |
+
```
|
34 |
+
python3 -m sglang.launch_server --model lmsys/gpt-oss-120b-bf16 --tp 4
|
35 |
+
```
|
36 |
+
### For more details
|
37 |
+
https://github.com/sgl-project/sglang/issues/8833
|