Langchain ChatChat V0.2.9 window下部署指南

一:电脑配置

设备参数:
CPU处理器:13th Gen Intel® Core™ i5-13600KF × 20
操作系统: windows10
显存: NVIDIA GeForce RTX 4060 Ti
内存: 32.0 GiB
Cuda 12.1

二:步骤流程

2.1拉取仓库

$ git clone https://github.com/chatchat-space/Langchain-Chatchat.git

2.2 Conda 创建环境

$ conda create -n langchain python=3.10
$ conda activate langchain
pip config set global.index-url https://pypi.org/simple/

2.3 执行命令

$ cd Langchain-Chatchat
1 打开 requirements.txt 文件,注释掉第48行
2打开 requirements_api.txt 文件,注释掉第46行

3 执行命令安装
$ pip install -r requirements.txt
$ pip install -r requirements_api.txt
$ pip install -r requirements_webui.txt

4 执行命令
$ conda install jq
$ pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
$ python copy_config_example.py
$ python init_database.py --recreate-vs

5 修改配置文件Config/model_config.py
先下载chatglm3-6b 以及 bge-large-zh 两个模型解压到本地
5.1 embeding模型路径修改
修改为本地模型路径
5.2 model模型路径修改

6 运行web界面
python startup.py --all-webui

自动打开界面

部署完成

视频教程:b站链接

https://www.bilibili.com/video/BV1cT4y1H7kZ/?vd_source=d1de2dbbe72d3f544ec6460680aa194a

  • 10
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

aifeng-pro

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值