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 -

猜你喜欢

转载自blog.csdn.net/duan_zhihua/article/details/132128985