Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
thomas-yanxin 953abfb74b | 1 year ago | |
---|---|---|
__pycache__ | 1 year ago | |
docs | 1 year ago | |
img | 1 year ago | |
modelscope | 1 year ago | |
nltk_data | 1 year ago | |
Dockerfile | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
app.py | 1 year ago | |
chatllm.py | 1 year ago | |
chinese_text_splitter.py | 1 year ago | |
config.py | 1 year ago | |
requirements.txt | 1 year ago |
本项目提供基于HuggingFace社区和ModelScope魔搭社区的在线体验, 欢迎尝试和反馈!
受langchain-ChatGLM启发, 利用LangChain和ChatGLM-6B系列模型制作的Webui, 提供基于本地知识的大模型应用.
目前支持上传 txt、docx、md、pdf等文本格式文件, 提供包括ChatGLM-6B系列、Belle系列等模型文件以及GanymedeNil/text2vec-large-chinese、nghuyong/ernie-3.0-base-zh、nghuyong/ernie-3.0-nano-zh等Embedding模型.
提供ModelScope版本和HuggingFace版本.
需要Python>=3.8.1
git clone https://github.com/thomas-yanxin/LangChain-ChatGLM-Webui.git
cd LangChain-ChatGLM-Webui
pip3 install -r requirements.txt
python3 app.py
docker build -t langchain-chatglm-webui .
docker run -it --rm --runtime=nvidia --gpus all --network host langchain-chatglm-webui
docker run -d --name langchain-ChatGLM-webui --runtime=nvidia --gpus all --network host registry.cn-beijing.aliyuncs.com/public-development-resources/langchain-chatglm-webui:latest
-v langchain-ChatGLM-webui-cache:/root/.cache/
-v ~/THUDM_chatglm-6b/:/models
http://ip:7861
若存在网络问题可点击以下链接快速下载:
large language model | Embedding model |
---|---|
ChatGLM-6B | text2vec-large-chinese |
ChatGLM-6B-int8 | ernie-3.0-base-zh |
ChatGLM-6B-int4 | ernie-3.0-nano-zh |
ChatGLM-6B-int4-qe | ernie-3.0-xbase-zh |
Vicuna-7b-1.1 | simbert-base-chinese |
BELLE-LLaMA-7B-2M | |
BELLE-LLaMA-13B-2M | |
Minimax |
详情请见: 更新日志
项目处于初期阶段, 有很多可以做的地方和优化的空间, 欢迎感兴趣的社区大佬们一起加入!
基于LangChain和ChatGLM-6B的针对本地知识库的自动问答
Python Dockerfile Text
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》