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
26aebea5
Commit
26aebea5
authored
Mar 09, 2026
by
shihm
Browse files
updata
parent
646210d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+3
-3
No files found.
README.md
View file @
26aebea5
...
@@ -117,8 +117,7 @@ ray start --address='x.x.x.x:6379' --num-gpus=8 --num-cpus=32
...
@@ -117,8 +117,7 @@ ray start --address='x.x.x.x:6379' --num-gpus=8 --num-cpus=32
vllm serve /path/to/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
16
--pipeline-parallel-size
2
--gpu-memory-utilization
0.9
--gpu-memory-utilization
0.9
--served-model-name
baichuan-m3
--served-model-name
baichuan-m3
--reasoning-parser
deepseek_r1
--reasoning-parser
deepseek_r1
...
@@ -149,12 +148,13 @@ curl http://localhost:8000/v1/chat/completions \
...
@@ -149,12 +148,13 @@ curl http://localhost:8000/v1/chat/completions \
### transformers
### transformers
#### 单机推理
#### 单机推理
```
bash
```
bash
python
from transformers import AutoTokenizer, AutoModelForCausalLM
from transformers import AutoTokenizer, AutoModelForCausalLM
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'
os.environ[
'MODELSCOPE_OFFLINE'
]
=
'1'
os.environ[
'MODELSCOPE_OFFLINE'
]
=
'1'
model_path
=
"/path/to/Baichuan-M3-235B"
model
=
AutoModelForCausalLM.from_pretrained
(
model
=
AutoModelForCausalLM.from_pretrained
(
model_path,
model_path,
trust_remote_code
=
True,
trust_remote_code
=
True,
...
...
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