Llama 2 with langchain项目详解(三)

[复制链接]
查看1007 | 回复0 | 2023-8-13 15:21:21 | 显示全部楼层 |阅读模式
Llama 2 with langchain项目详解(三)
17.3 Llama 2 with langchain基础
本节讲解在LangChain中使用Llama 2模型的基础知识,展示如何运行LangChain的代码,及在云端运行Llama 2的700亿模型。
首先,使用Python的pip管理器安装一系列库,包括huggingface/transformers、datasets、loralib、sentencepiece、bitsandbytes、accelerate、xformers、einops和langchain。
  1. 1.        !pip -q install git+https://github.com/huggingface/transformers # need to install from github
  2. 2.        !pip install -q datasets loralib sentencepiece
  3. 3.        !pip -
复制代码
来源:https://blog.csdn.net/duan_zhihua/article/details/132128985
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则