Upload README_EN.md with huggingface_hub
Browse files- README_EN.md +22 -11
README_EN.md
CHANGED
@@ -1,7 +1,16 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
<div align="center">
|
7 |
<h1>
|
@@ -9,9 +18,9 @@
|
|
9 |
</h1>
|
10 |
</div>
|
11 |
<div align="center">
|
12 |
-
🤗 <a href="https://huggingface.co/qihoo360">Hugging Face</a>   |   
|
13 |
🤖 <a href="https://www.modelscope.cn/profile/qihoo360">ModelScope</a>   |   
|
14 |
-
|
|
|
15 |
</div>
|
16 |
<br>
|
17 |
<p align="center">
|
@@ -326,9 +335,9 @@ python openai_api.py
|
|
326 |
|
327 |
Request parameter
|
328 |
```shell
|
329 |
-
curl 'http://localhost:8360/v1/chat/completions' \
|
330 |
-
|
331 |
-
-
|
332 |
"max_new_tokens": 200,
|
333 |
"do_sample": true,
|
334 |
"top_k": 0,
|
@@ -336,8 +345,10 @@ curl 'http://localhost:8360/v1/chat/completions' \
|
|
336 |
"temperature": 1.0,
|
337 |
"repetition_penalty": 1.0,
|
338 |
"messages": [
|
339 |
-
{
|
340 |
-
|
|
|
|
|
341 |
]
|
342 |
}'
|
343 |
```
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
language:
|
4 |
+
- zh
|
5 |
+
- en
|
6 |
+
library_name: transformers
|
7 |
+
tags:
|
8 |
+
- qihoo360
|
9 |
+
- 奇虎360
|
10 |
+
- zhinao
|
11 |
+
- 360Zhinao
|
12 |
+
- pretrain
|
13 |
+
---
|
14 |
|
15 |
<div align="center">
|
16 |
<h1>
|
|
|
18 |
</h1>
|
19 |
</div>
|
20 |
<div align="center">
|
|
|
21 |
🤖 <a href="https://www.modelscope.cn/profile/qihoo360">ModelScope</a>   |   
|
22 |
+
🔥 <a href="https://github.com/Qihoo360/360zhinao/blob/main/assets/WeChat.png">GitHub</a>   |   
|
23 |
+
💬 <a href="https://github.com/Qihoo360/360zhinao/tree/main/assets/WeChat.png">WeChat (微信)</a>  
|
24 |
</div>
|
25 |
<br>
|
26 |
<p align="center">
|
|
|
335 |
|
336 |
Request parameter
|
337 |
```shell
|
338 |
+
curl --location --request POST 'http://localhost:8360/v1/chat/completions' \
|
339 |
+
--header 'Content-Type: application/json' \
|
340 |
+
--data-raw '{
|
341 |
"max_new_tokens": 200,
|
342 |
"do_sample": true,
|
343 |
"top_k": 0,
|
|
|
345 |
"temperature": 1.0,
|
346 |
"repetition_penalty": 1.0,
|
347 |
"messages": [
|
348 |
+
{
|
349 |
+
"role": "user",
|
350 |
+
"content": "你叫什么名字?"
|
351 |
+
}
|
352 |
]
|
353 |
}'
|
354 |
```
|