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
InternLM_vllm
Commits
b4c46fe7
Commit
b4c46fe7
authored
Nov 27, 2024
by
laibao
Browse files
Updata README.md
添加端口映射
parent
ad5d2f04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
README.md
README.md
+8
-3
No files found.
README.md
View file @
b4c46fe7
...
@@ -79,7 +79,7 @@ conda create -n internlm_vllm python=3.10
...
@@ -79,7 +79,7 @@ conda create -n internlm_vllm python=3.10
| 基座模型 | | | |
| 基座模型 | | | |
| ----------------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------------------------------- | --------------------------------------------------------------- |
| ----------------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------------------------------- | --------------------------------------------------------------- |
|
[
internlm2-7b
](
http
s
://
huggingface.co
/internlm/internlm2-7b
)
|
[
internlm2-20b
](
http
s
://
huggingface.co
/internlm/internlm2-20b
)
|
[
internlm2_5-7b
](
http
s
://
huggingface.co
/internlm/internlm2_5-7b
)
|
[
internlm2_5-20b
](
http
s
://
huggingface.co
/internlm/internlm2_5-20b
)
|
|
[
internlm2-7b
](
http://
113.200.138.88:18080/aimodels
/internlm/internlm2-7b
.git
)
|
[
internlm2-20b
](
http://
113.200.138.88:18080/aimodels
/internlm/internlm2-20b
.git
)
|
[
internlm2_5-7b
](
http://
113.200.138.88:18080/aimodels
/internlm/internlm2_5-7b
.git
)
|
[
internlm2_5-20b
](
http://
113.200.138.88:18080/aimodels
/internlm/internlm2_5-20b
.git
)
|
### 离线批量推理
### 离线批量推理
...
@@ -198,18 +198,23 @@ python gradio_openai_chatbot_webserver.py --model "internlm/internlm2_5-7b" --m
...
@@ -198,18 +198,23 @@ python gradio_openai_chatbot_webserver.py --model "internlm/internlm2_5-7b" --m
```
```
chmod +x frpc_linux_amd64_v0.*
chmod +x frpc_linux_amd64_v0.*
```
2.
3 端口映射
```
ssh -L 8000:计算节点IP:8000 -L 8001:计算节点IP:8001 用户名@登录节点 -p 登录节点端口
```
```
3.
启动OpenAI兼容服务
3.
启动OpenAI兼容服务
```
```
python -m vllm.entrypoints.openai.api_server --model internlm/internlm2_5-7b --enforce-eager --dtype float16 --trust-remote-code --port 8000
python -m vllm.entrypoints.openai.api_server --model internlm/internlm2_5-7b --enforce-eager --dtype float16 --trust-remote-code --port 8000
--host "0.0.0.0"
```
```
4.
启动gradio服务
4.
启动gradio服务
```
```
python gradio_openai_chatbot_webserver.py --model "internlm/internlm2_5-7b" --model-url http://localhost:8000/v1 --temp 0.8 --stop-token-ids
"
"
python gradio_openai_chatbot_webserver.py --model "internlm/internlm2_5-7b" --model-url http://localhost:8000/v1 --temp 0.8 --stop-token-ids
--host "0.0.0.0" --port 8001
"
```
```
5.
使用对话服务
5.
使用对话服务
...
...
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