Llama 2 with langchain项目详解(三)

Llama 2 with langchain项目详解(三)

    正在检查是否收录...

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. !pip -q install git+https://github.com/huggingface/transformers # need to install from github 2. !pip install -q datasets loralib sentencepiece 3. !pip -

langchainllamallama 2gitgithubtransformerhuggingfacetransformerscodepythonurl
  • 本文作者:WAP站长网
  • 本文链接: https://wapzz.net/post-4149.html
  • 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。
本站部分内容来源于网络转载,仅供学习交流使用。如涉及版权问题,请及时联系我们,我们将第一时间处理。
文章很赞!支持一下吧 还没有人为TA充电
为TA充电
还没有人为TA充电
0
0
  • 支付宝打赏
    支付宝扫一扫
  • 微信打赏
    微信扫一扫
感谢支持
文章很赞!支持一下吧
关于作者
2.8W+
9
1
2
WAP站长官方

紧跟潮流,抓住趋势,跟上全民AI的节奏,开源IM项目OpenIM产品介绍,为AIGC贡献力量

上一篇

抖音测试“AI搜”功能 可从抖音APP智能搜索总结答案

下一篇
  • 复制图片
按住ctrl可打开默认菜单