Giter Club home page Giter Club logo

mingpt-group-bot-server's Introduction

minGPT-group-bot-server

q q 群 暴 论 b o t

简单几步训练你群专属的暴论人工智能(zhang)!

太智能了

步骤:

  1. 从QQ导出txt格式的聊天记录,重命名为qbqljl.txt
  2. 将其放在项目根目录,运行python data_preprocess.py并生成input.txt(语料库)。第一行有可能删不掉,如果显示日期时间则手动删除。
  3. 将mingpt和input.txt打包为qbqljl.zip,然后上传到kaggle为Dataset。同时创建一个新notebook然后上传train_model.ipynb使用这个Dataset,开启gpu后保存运行,就可以白嫖kaggle的GPU训练啦!当然如果自己有设备也可以自己训练。
  4. 下载model.pkl,放在项目根目录,之后运行python -m pip -r requirements.txt安装依赖。
  5. 运行python predict_server.py 8000 启动后台服务器(8000为端口,如果需要可以换一个)
  6. 前往https://github.com/DEDZTBH/minGPT-group-bot-mirai 到release页面下载mirai端。根据教程启动。
  7. 你的bot可以使用了!

*由于license原因mirai端是一个单独的repo

*人工智能模型基于minGPT (https://github.com/karpathy/minGPT) 并使用GPT-1参数

mingpt-group-bot-server's People

Contributors

dedztbh avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.