1 Star 1 Fork 2

xuweihui / SkyChat-Chinese-Chatbot-GPT3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

SkyChat

简体中文

English

模型简介

SkyChat是一款基于中文GPT-3 API研发的聊天机器人项目,它除了基本的聊天、对话、你问我答外,还能支持中英文互译、内容续写、对对联、写古诗、生成菜谱、第三人称转述、创建采访问题等多种功能。

image

更多细节可见奇点智源官网文档

下面是一些示例:

效果示例

体验、试用,请访问奇点智源API试用

聊天

image

问答

image

生成菜谱

输入: image

输出: image

对对联

image

——————————————————————————————

Demo使用教程:

模型服务以及Python环境搭建

Windows

  1. 下载Anaconda 勾选添加到环境变量选项
    图片名称
  2. 下载并解压semantic_score_cleanuser_profile_clean服务、模型以及示例训练数据
  3. 打开Anaconda 输入
    conda create -n semantic 创建新环境
    conda info --envs 查看环境
    activate semantic 启动环境
    cd C:\你的路径\semantic_score_clean\semantic_score_clean cd到解压好的semantic_score_clean文件夹
    python -m pip uninstall numpy 删掉初始自带的numpy
    python -m pip install -r requirements.txt 或者 pip install -r requirements.txt 安装所需依赖包
    python semantic_score_api.py 运行服务
  4. 下载对应系统的Cuda并安装
  5. 打开一个新的Anaconda界面 输入
    conda create -n userprofile创建新环境
    conda info --envs查看环境
    activate userprofile启动环境
    cd C:\你的路径\user_profile_clean\user_profile_cleancd 到解压好的user_profile_clean文件夹
    python -m pip uninstall numpy 删掉初始自带的numpy
    python -m pip install -r requirements.txt 或者 pip install -r requirements.txt安装所需依赖包
    python -m pip install torch==1.11.0+cu115 -f https://download.pytorch.org/whl/torch_stable.html 下载cuda版torch
    python server_v3.py运行服务

Unity版Demo

  1. Release中下载最新的包。
  2. 在openAPI网站 或demo中点击注册 注册并认证 获得 api-key 和 api-secret
  3. 点击设置 进入设置界面, 对应位置填入key和secret,以及双方姓名,完后点击保存并退出
  4. 确认semantic_score_clean和user_profile_clean服务以部署到本地,如果远程部署请在设置中替换对应请求URL
  5. 开聊

Python版Demo

  1. 在openAPI网站 或demo中点击注册 注册并认证 获得 api-key 和 api-secret
  2. 打开 \你的路径\OpenAPIDemo\PythonDemo\main.py 在对应位置填入api-key 和 api-secret 并修改需要修改的参数 图片名称
  3. 打开Anaconda 输入
    conda create -n talk 创建新环境
    conda info --envs 查看环境
    activate talk 启动环境
    cd C:\你的路径\OpenAPIDemo\PythonDemo 导航到代码所在的文件夹
    python -m pip install requests 下载依赖资源
    python main.py 开始聊天(需确认2个服务以开启)

*最低配置要求Nvidia Gfx 1060

加入开发者群

如果您有问题,不妨微信扫码加入开发者群——

text

感兴趣别忘了star一下~

cts

MIT License Copyright (c) 2022 SkyWorkAIGC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

SkyChat是一款基于中文GPT-3 api的聊天机器人项目。它可以像chatGPT一样,实现人机聊天、问答、中英文互译、对对联、写古诗等任务。| SkyChat is a Chatbot project based on Chinese GPT3 API. Like chatGPT, it can do human-machine chat, question and answer, and can also complete tasks such as Chinese-English or English-Chinese translation, content continuation, couplets, and Chinese ancient poems writing. 展开 收起
C# 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/wei__hui/SkyChat-Chinese-Chatbot-GPT3.git
git@gitee.com:wei__hui/SkyChat-Chinese-Chatbot-GPT3.git
wei__hui
SkyChat-Chinese-Chatbot-GPT3
SkyChat-Chinese-Chatbot-GPT3
main

搜索帮助