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
LLaMA_vllm
Commits
5a8ce787
Commit
5a8ce787
authored
Apr 29, 2024
by
zhuwenwen
Browse files
update readme
parent
5d7ba276
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
README.md
README.md
+1
-1
No files found.
README.md
View file @
5a8ce787
...
...
@@ -64,7 +64,7 @@ python offline_inference.py
### OpenAI兼容服务
启动服务:
```
bash
python
-m
vllm.entrypoints.openai.api_server
--model
meta-llama/Llama-2-7b-chat-hf
--enforce-eager
--dtype
float16
python
-m
vllm.entrypoints.openai.api_server
--model
meta-llama/Llama-2-7b-chat-hf
--enforce-eager
--dtype
float16
--trust-remote-code
```
这里
`--model`
为加载模型路径,
`--dtype`
为数据类型:float16,默认情况使用tokenizer中的预定义聊天模板,
`--chat-template`
可以添加新模板覆盖默认模板
...
...
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