The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
langchain_community: Update documentation for installing llama-cpp-python on windows (#16666)
Abhinav8e44363ec925
diff --git a/docs/docs/integrations/llms/llamacpp.ipynb b/docs/docs/integrations/llms/llamacpp.ipynbindex 58bb7f38d8..a3a22acb7b 100644--- a/docs/docs/integrations/llms/llamacpp.ipynb+++ b/docs/docs/integrations/llms/llamacpp.ipynb@@ -144,24 +144,40 @@"git clone --recursive -j8 https://github.com/abetlen/llama-cpp-python.git\n","```\n","\n",- "2. Open up command Prompt (or anaconda prompt if you have it installed), set up environment variables to install. Follow this if you do not have a GPU, you must set both of the following variables.\n",+ "2. Open up a command Prompt and set the following environment variables.\n",+ "\n","\n","```\n","set FORCE_CMAKE=1\n","set CMAKE_ARGS=-DLLAMA_CUBLAS=OFF\n","```\n",- "You can ignore the second environment variable if you have an NVIDIA GPU.\n",+ "If you have an NVIDIA GPU make sure `DLLAMA_CUBLAS` is set to `ON`\n","\n","#### Compiling and installing\n","\n",- "In the same command prompt (anaconda prompt) you set the variables, you can `cd` into `llama-cpp-python` directory and run the following commands.\n",+ "Now you can `cd` into the `llama-cpp-python` directory and install the package\n","\n","```\n",- "python setup.py clean\n",- "python setup.py install\n",+ "python -m pip install -e .\n","```"]},+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "**IMPORTANT**: If you have already installed a cpu only version of the package, you need to reinstall it from scratch: consider the following command: "+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "!python -m pip install -e . --force-reinstall --no-cache-dir"+ ]+ },{"cell_type": "markdown","metadata": {},