Detailed explanation of Llama 2 with langchain project (3)

Detailed explanation of Llama 2 with langchain project (3)
17.3 Basics of Llama 2 with langchain
This section explains the basics of using the Llama 2 model in LangChain, shows how to run the code of LangChain, and runs the 70 billion model of Llama 2 in the cloud.
First, use Python's pip manager to install a series of libraries, including huggingface/transformers, datasets, loralib, sentencepiece, bitsandbytes, accelerate, xformers, einops, and 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 -

Guess you like

Origin blog.csdn.net/duan_zhihua/article/details/132128985