• This repository has been archived on 07/Apr/2023
  • Stars
    star
    182
  • Rank 209,857 (Top 5 %)
  • Language
    Python
  • License
    BSD 3-Clause "New...
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A naive webui for ChatGLM

ChatGLM WebUI

基于 ChatGPT WebUI 的一个简单的 ChatGLM WebUI。

环境安装

pip install -r requirements.txt

Gradio 版本必须大于 3.21.0!

Windows 下 CPU 运行需要安装编译器,可参考 (https://www.freesion.com/article/4185669814/)。

运行

通过 git clone https://huggingface.co/THUDM/chatglm-6b-int4 下载模型文件到根目录下然后 python main.py 即可,默认状态至少需要 4 GB 显存(CPU 运行则需要 5.2 GB 内存)。

实参

  • --path:指定模型所在文件夹