Giter Site home page Giter Site logo

microgpt's Introduction

最近更新

  • 支持ChatGLM(8.24)
  • 机器人模式支持流式输出(8.23)

微型GPT | MicroGPT

For English version, please check here.

运行界面

  • Llama-Chatbot模式 av

  • Llama-KB模式 avatar

安装运行

  1. (推荐)安装并配置conda
    conda create -n MicroGPT python=3.11
    conda activate MicroGPT
  2. 获取本仓库
    git clone https://github.com/yxq321/MicroGPT.git
    cd MicroGPT
  3. 安装依赖包
    pip install -r requirements.txt
  4. 配置模型文件
    1. 下载大模型bin文件(可以从网上查找Llama2的bin文件), 以下是举例
      mkdir models/ && cd models/
      wget https://huggingface.co/rozek/LLaMA-2-7B-32K_GGUF/resolve/main/LLaMA-2-7B-32K-Q4_0.gguf
    2. 配置大模型bin文件的路径
      vi setting.py # 根据实际路径,修改 model_file 变量
  5. 运行程序
    streamlit run streamlit_app.py
    # 或指定端口
    # streamlit run streamlit_app.py --server.port=8088 
  6. (可选)配置supervisor自启动
    sudo cp supervisor_microgpt.conf /etc/supervisor/conf.d/microgpt.conf
    sudo vi /etc/supervisor/conf.d/microgpt.conf # 根据实际路径作修改
    systemctl restart supervisor

TODO LIST

  • Llama-KB模式不支持流式输出(ongoing)
  • Llama-KB模式不支持history
  • Embedding模型下载

联系方式

欢迎报bug

  • 邮件: yxq321(at)gmail.com

microgpt's People

Contributors

yxq321 avatar

Watchers

 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.