A high-throughput and memory-efficient inference and serving engine for LLMs
Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git
Synced Nov 17, 05:30 UTC
docs: fix langchain (#2736)
Massimiliano Pronesti committed
Feb 4, 2024 at 03:17 UTC
5ed704ec8c4e68f1bc846ab4e3c9e355585d62da
1 file changed
+3
-3
docs/source/serving/serving_with_langchain.rst
+3
-3
@@ -9,13 +9,13 @@ To install langchain, run
9
10
.. code-block:: console
11
12
- $ pip install langchain -q
12
+ $ pip install langchain langchain_community -q
13
14
To run inference on a single or multiple GPUs, use ``VLLM`` class from ``langchain``.
15
16
.. code-block:: python
17
18
- from langchain.llms import VLLM
18
+ from langchain_community.llms import VLLM
19
20
llm = VLLM(model="mosaicml/mpt-7b",
21
trust_remote_code=True, # mandatory for hf models
@@ -28,4 +28,4 @@ To run inference on a single or multiple GPUs, use ``VLLM`` class from ``langcha
28
29
print(llm("What is the capital of France ?"))
30
31
-Please refer to this `Tutorial <https://github.com/langchain-ai/langchain/blob/master/docs/docs/integrations/llms/vllm.ipynb>`_ for more details.
\ No newline at end of file
31
+Please refer to this `Tutorial <https://python.langchain.com/docs/integrations/llms/vllm>`_ for more details.