zhaicunqi commited on
Commit
5d5143b
1 Parent(s): 9acd5c6

Upload README_EN.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README_EN.md +22 -11
README_EN.md CHANGED
@@ -1,7 +1,16 @@
1
- <p align="left">
2
- <a href="./README.md">中文</a> | &nbsp English</a>&nbsp
3
- </p>
4
- <br>
 
 
 
 
 
 
 
 
 
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>&nbsp&nbsp | &nbsp&nbsp
13
  🤖 <a href="https://www.modelscope.cn/profile/qihoo360">ModelScope</a>&nbsp&nbsp | &nbsp&nbsp
14
- 💬 <a href="./assets/WeChat.png">WeChat (微信)</a>&nbsp&nbsp
 
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
- -H 'Content-Type: application/json' \
331
- -d '{
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
- {"role": "system", "content": "You are a helpful assistant."},
340
- {"role": "user", "content": "你好"}
 
 
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>&nbsp&nbsp | &nbsp&nbsp
22
+ 🔥 <a href="https://github.com/Qihoo360/360zhinao/blob/main/assets/WeChat.png">GitHub</a>&nbsp&nbsp | &nbsp&nbsp
23
+ 💬 <a href="https://github.com/Qihoo360/360zhinao/tree/main/assets/WeChat.png">WeChat (微信)</a>&nbsp&nbsp
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
  ```