LangChain+ChatGLM整合LLaMa模型(二)

开源大模型语言LLaMa

LangChain+ChatGLM大模型应用落地实践(一)

LLaMa模型GitHub地址

复制代码
git lfs clone https://huggingface.co/huggyllama/llama-7b

添加LLaMa模型配置

在Langchain-ChatGLM/configs/model_config.py中llm_model_dict添加

python 复制代码
"llama-7b": {
        "name": "llama-7b",
        "pretrained_model_name": "/home/user/data/your_path/llama-7b",
        "local_model_path": "/home/user/data/your_path/llama-7b",
        "provides": "LLamaLLMChain"
    }

启用LLaMa模型

进入Web UI选择LLaMa模型

LLAMA-7B(中文提问当作翻译回答了...看来训练的中文语料不太行,但是英文也算是答对了)

具体为什么LLaMa为什么这样回答,等待后续。

相关推荐
里昆2 分钟前
【AI】Tensorflow在jupyterlab中运行要注意的问题
人工智能·python·tensorflow
AI视觉网奇4 分钟前
pycharm 最新版上一次编辑位置
python
2401_8288906426 分钟前
使用 BERT 实现意图理解和实体识别
人工智能·python·自然语言处理·bert·transformer
多恩Stone2 小时前
【3DV 进阶-2】Hunyuan3D2.1 训练代码详细理解下-数据读取流程
人工智能·python·算法·3d·aigc
xiaopengbc2 小时前
在 Python 中实现观察者模式的具体步骤是什么?
开发语言·python·观察者模式
Python大数据分析@2 小时前
python用selenium怎么规避检测?
开发语言·python·selenium·网络爬虫
ThreeAu.2 小时前
Miniconda3搭建Selenium的python虚拟环境全攻略
开发语言·python·selenium·minicoda·python环境配置
偷心伊普西隆2 小时前
Python EXCEL 理论探究:格式转换时处理缺失值方法
python·excel