zhaicunqi commited on
Commit
3138aa6
1 Parent(s): 5038208

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +23 -12
README.md CHANGED
@@ -1,7 +1,16 @@
1
- <p align="left">
2
- 中文</a>&nbsp | &nbsp<a href="README_EN.md">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">
@@ -329,9 +338,9 @@ python openai_api.py
329
 
330
  请求参数
331
  ```shell
332
- curl 'http://localhost:8360/v1/chat/completions' \
333
- -H 'Content-Type: application/json' \
334
- -d '{
335
  "max_new_tokens": 200,
336
  "do_sample": true,
337
  "top_k": 0,
@@ -339,8 +348,10 @@ curl 'http://localhost:8360/v1/chat/completions' \
339
  "temperature": 1.0,
340
  "repetition_penalty": 1.0,
341
  "messages": [
342
- {"role": "system", "content": "You are a helpful assistant."},
343
- {"role": "user", "content": "你好"}
 
 
344
  ]
345
  }'
346
  ```
@@ -537,4 +548,4 @@ bash finetune/ds_finetune.sh
537
 
538
  本仓库源码遵循开源许可证Apache 2.0。
539
 
540
- 360智脑开源模型支持商用,若需将本模型及衍生模型用于商业用途,请通过邮箱(g-zhinao-opensource@360.cn)联系进行申请, 具体许可协议请见[《360智脑开源模型许可证》](./360智脑开源模型许可证.txt)。
 
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/blob/main/assets/WeChat.png">WeChat (微信)</a>&nbsp&nbsp
24
  </div>
25
  <br>
26
  <p align="center">
 
338
 
339
  请求参数
340
  ```shell
341
+ curl --location --request POST 'http://localhost:8360/v1/chat/completions' \
342
+ --header 'Content-Type: application/json' \
343
+ --data-raw '{
344
  "max_new_tokens": 200,
345
  "do_sample": true,
346
  "top_k": 0,
 
348
  "temperature": 1.0,
349
  "repetition_penalty": 1.0,
350
  "messages": [
351
+ {
352
+ "role": "user",
353
+ "content": "你叫什么名字"
354
+ }
355
  ]
356
  }'
357
  ```
 
548
 
549
  本仓库源码遵循开源许可证Apache 2.0。
550
 
551
+ 360智脑开源模型支持商用,若需将本模型及衍生模型用于商业用途,请通过邮箱(g-zhinao-opensource@360.cn)联系进行申请, 具体许可协议请见[《360智脑开源模型许可证》](./360智脑开源模型许可证.txt)。