zhaicunqi commited on
Commit
c0174d8
1 Parent(s): 96e1ce7

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +12 -22
README.md CHANGED
@@ -1,15 +1,7 @@
1
- ---
2
- license: apache-2.0
3
- language:
4
- - zh
5
- - en
6
- library_name: transformers
7
- tags:
8
- - qihoo360
9
- - 奇虎360
10
- - 360Zhinao
11
- - pretrain
12
- ---
13
 
14
  <div align="center">
15
  <h1>
@@ -17,9 +9,9 @@ tags:
17
  </h1>
18
  </div>
19
  <div align="center">
 
20
  🤖 <a href="https://www.modelscope.cn/profile/qihoo360">ModelScope</a>&nbsp&nbsp | &nbsp&nbsp
21
- 🔥 <a href="https://github.com/Qihoo360/360zhinao/blob/main/assets/WeChat.png">GitHub</a>&nbsp&nbsp | &nbsp&nbsp
22
- 💬 <a href="https://github.com/Qihoo360/360zhinao/blob/main/assets/WeChat.png">WeChat (微信)</a>&nbsp&nbsp
23
  </div>
24
  <br>
25
  <p align="center">
@@ -337,9 +329,9 @@ python openai_api.py
337
 
338
  请求参数
339
  ```shell
340
- curl --location --request POST 'http://localhost:8360/v1/chat/completions' \
341
- --header 'Content-Type: application/json' \
342
- --data-raw '{
343
  "max_new_tokens": 200,
344
  "do_sample": true,
345
  "top_k": 0,
@@ -347,10 +339,8 @@ curl --location --request POST 'http://localhost:8360/v1/chat/completions' \
347
  "temperature": 1.0,
348
  "repetition_penalty": 1.0,
349
  "messages": [
350
- {
351
- "role": "user",
352
- "content": "你叫什么名字"
353
- }
354
  ]
355
  }'
356
  ```
@@ -547,4 +537,4 @@ bash finetune/ds_finetune.sh
547
 
548
  本仓库源码遵循开源许可证Apache 2.0。
549
 
550
- 360智脑开源模型支持商用,若需将本模型及衍生模型用于商业用途,请通过邮箱(g-zhinao-opensource@360.cn)联系进行申请, 具体许可协议请见[《360智脑开源模型许可证》](./360智脑开源模型许可证.txt)。
 
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
  </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
 
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
  "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
 
538
  本仓库源码遵循开源许可证Apache 2.0。
539
 
540
+ 360智脑开源模型支持商用,若需将本模型及衍生模型用于商业用途,请通过邮箱(g-zhinao-opensource@360.cn)联系进行申请, 具体许可协议请见[《360智脑开源模型许可证》](./360智脑开源模型许可证.txt)。