Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
Baichuan-M3_pytorch
Commits
646210d2
Commit
646210d2
authored
Mar 09, 2026
by
shihm
Browse files
updata
parent
a293067a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
README.md
README.md
+5
-5
No files found.
README.md
View file @
646210d2
...
@@ -114,7 +114,7 @@ ray start --address='x.x.x.x:6379' --num-gpus=8 --num-cpus=32
...
@@ -114,7 +114,7 @@ ray start --address='x.x.x.x:6379' --num-gpus=8 --num-cpus=32
```
```
启动vllm server
启动vllm server
```
bash
```
bash
vllm serve /path/to/
baichuan-inc/
Baichuan-M3-235B
vllm serve /path/to/Baichuan-M3-235B
--host
x.x.x.x
--port
8000
--host
x.x.x.x
--port
8000
--distributed-executor-backend
ray
--distributed-executor-backend
ray
--tensor-parallel-size
8
--tensor-parallel-size
8
...
@@ -147,10 +147,10 @@ curl http://localhost:8000/v1/chat/completions \
...
@@ -147,10 +147,10 @@ curl http://localhost:8000/v1/chat/completions \
### transformers
### transformers
#### 单机推理
```
python
```
bash
from transformers import AutoTokenizer, AutoModelForCausalLM
from transformers import AutoTokenizer, AutoModelForCausalLM
model_path
=
"/path/to/
baichuan-inc/
Baichuan-M3-235B"
model_path
=
"/path/to/Baichuan-M3-235B"
import os
import os
import torch
import torch
os.environ[
'TRANSFORMERS_OFFLINE'
]
=
'1'
os.environ[
'TRANSFORMERS_OFFLINE'
]
=
'1'
...
@@ -188,7 +188,7 @@ print(response)
...
@@ -188,7 +188,7 @@ print(response)
## 预训练权重
## 预训练权重
| 模型名称 | 权重大小 | DCU型号 | 最低卡数需求 |下载地址|
| 模型名称 | 权重大小 | DCU型号 | 最低卡数需求 |下载地址|
|:-----:|:----------:|:----------:|:---------------------:|:----------:|
|:-----:|:----------:|:----------:|:---------------------:|:----------:|
| Baichuan-M3-235B | 235B | BW1000 | 16 |
[
Model
S
cope
](
https://modelscope.cn/models/baichuan-inc/Baichuan-M3-235B
)
|
| Baichuan-M3-235B | 235B | BW1000 | 16 |
[
Model
s
cope
](
https://modelscope.cn/models/baichuan-inc/Baichuan-M3-235B
)
|
## 源码仓库及问题反馈
## 源码仓库及问题反馈
-
https://developer.sourcefind.cn/codes/modelzoo/baichuan-m3-235b_vllm
-
https://developer.sourcefind.cn/codes/modelzoo/baichuan-m3-235b_vllm
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment