首页 > 其他分享 >chatglm_langchain

chatglm_langchain

时间:2023-06-06 14:34:39浏览次数:35  
标签:bin git chatglm kaggle langchain conda ChatGLM

#Setup envirnment
!conda create -n langchain python=3.8.1 -y
!conda activate langchain
# 拉取仓库
#!git clone https://github.com/imClumsyPanda/langchain-ChatGLM.git
!cp -r /kaggle/input/langchain-chatglm/ /kaggle/working/langchain-ChatGLM

# 安装依赖
%cd /kaggle/working/langchain-ChatGLM
!/opt/conda/envs/langchain/bin/python3 -m pip install -r requirements.txt
!/opt/conda/envs/langchain/bin/python3 -m pip install gradio==3.28.3
!/opt/conda/envs/langchain/bin/python3 -m pip install tabulate
#Download models
!git lfs install
%cd /kaggle/working/langchain-ChatGLM
!git clone https://huggingface.co/THUDM/chatglm-6b-int4
!git clone https://huggingface.co/GanymedeNil/text2vec-large-chinese
%cd /kaggle/working/langchain-ChatGLM
!/opt/conda/envs/langchain/bin/python3 webui.py

 

标签:bin,git,chatglm,kaggle,langchain,conda,ChatGLM
From: https://www.cnblogs.com/zhangbo2008/p/17460453.html

相关文章

  • ChatGLM-6B int4的本地部署与初步测试
    0.前言本次笔记是对于实习初期,初次接触到LLM大模型的一些记录。内容主要集中在对于环境的配置的模型的运行。本人的硬软件配置如下:GPU:RTX30606GB显存内存:32GB系统:Windows111.Anaconda3+Pycharm的环境搭建我使用的是Anaconda3+PyCharm的环境搭建。首先下......
  • LangChain教程 – 如何构建自定义知识聊天机器人
    您可能已经了解到过去几个月发布的大量AI应用程序。您甚至可能已经开始使用其中的一些。ChatPDF和CustomGPTAI等AI工具已经对人们变得非常有用——这是有充分理由的。您需要滚动浏览50页文档才能找到简单答案的日子已经一去不复返了。相反,您可以依靠AI来完成繁重的工作......
  • LangChain入门(三)-对超长文本进行总结
    GitHub-liaokongVFX/LangChain-Chinese-Getting-Started-Guide:LangChain的中文入门教程LangChain的中文入门教程.ContributetoliaokongVFX/LangChain-Chinese-Getting-Started-GuidedevelopmentbycreatinganaccountonGitHub.https://github.com/liaokongVFX/LangCh......
  • LangChain入门(一)访问LLM模型
    GitHub-liaokongVFX/LangChain-Chinese-Getting-Started-Guide:LangChain的中文入门教程LangChain的中文入门教程.ContributetoliaokongVFX/LangChain-Chinese-Getting-Started-GuidedevelopmentbycreatinganaccountonGitHub.https://github.com/liaokongVFX/LangCh......
  • LangChain入门(二)-通过 Google 搜索并返回答案
    GitHub-liaokongVFX/LangChain-Chinese-Getting-Started-Guide:LangChain的中文入门教程LangChain的中文入门教程.ContributetoliaokongVFX/LangChain-Chinese-Getting-Started-GuidedevelopmentbycreatinganaccountonGitHub.https://github.com/liaokongVFX/LangCh......
  • 吴恩达教授AI课程:LangChain、扩散模型,用ChatGPT API搭建系统
    家人们,吴恩达教授的AI课程时隔一个月终于又更新了!这次一口气直接推出了三门课,主题包括LangChain、扩散模型,以及用ChatGPTAPI搭建系统。依旧是限时免费,除了扩散模型需要一定知识储备之外,另外两门课新手也能听。有网友为了看完这些课程,直接连觉都不睡了。课程内容这三门课的......
  • LangChain学习笔记1:基本概念
    GPT:x中之事,事无大小,悉以咨之概念加载器(Loader)从某种介质中获取数据,即加载。文档(Document)数据转换成文档进行处理。类比数据库转换成记录……文本分割(TextSpltter)LLM一次处理的数据有限,分割成多批进行处理。向量数据库(Vectorstores)文档转换成向量,把文档存入到向量数据库,自动转换成......
  • langchain-ChatGLM调研
    https://github.com/imClumsyPanda/langchain-ChatGLM 1.确定显卡规格lspci|grep-invidia00:07.03Dcontroller:NVIDIACorporationGV100GL[TeslaV100SXM232GB](reva1)2.确定显卡运行状况nvidia-smi如果有问题,需要先装显卡的驱动aptsearchnvidia-drive......
  • 部署ChatGLM6B模型过程
    背景大语言模型的本地化部署尝试步骤下载项目下载页:https://github.com/josStorer/selfhostedAI/releases/tag/v2下载selfhostedAI-chatglm-6b-int4-widoowed-nvidia.7z.001-003压缩包解压后,更新项目:update.bat安装pytorchforgpupipinstalltorch1.13.1+cu117t......
  • ChatGLM-6B本地化部署
    一、硬件要求量化等级最低GPU显存(推理)最低GPU显存(高效参数微调)FP16(无量化)13GB14GBINT88GB9GBINT46GB7GB二、环境要求需先安装git、python三、下载源码1mkdir/gpt2cdgpt3gitclonehttps://github.com/THUDM/ChatGLM-6B.git ......