Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
5ed704ec
Unverified
Commit
5ed704ec
authored
Feb 04, 2024
by
Massimiliano Pronesti
Committed by
GitHub
Feb 03, 2024
Browse files
docs: fix langchain (#2736)
parent
4abf6336
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/source/serving/serving_with_langchain.rst
docs/source/serving/serving_with_langchain.rst
+3
-3
No files found.
docs/source/serving/serving_with_langchain.rst
View file @
5ed704ec
...
@@ -9,13 +9,13 @@ To install langchain, run
...
@@ -9,13 +9,13 @@ To install langchain, run
.. code-block:: console
.. code-block:: console
$ pip install langchain -q
$ pip install langchain
langchain_community
-q
To run inference on a single or multiple GPUs, use ``VLLM`` class from ``langchain``.
To run inference on a single or multiple GPUs, use ``VLLM`` class from ``langchain``.
.. code-block:: python
.. code-block:: python
from langchain.llms import VLLM
from langchain
_community
.llms import VLLM
llm = VLLM(model="mosaicml/mpt-7b",
llm = VLLM(model="mosaicml/mpt-7b",
trust_remote_code=True, # mandatory for hf models
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,4 +28,4 @@ To run inference on a single or multiple GPUs, use ``VLLM`` class from ``langcha
print(llm("What is the capital of France ?"))
print(llm("What is the capital of France ?"))
Please refer to this `Tutorial <https://github.com/langchain-ai/langchain/blob/master/docs/docs/integrations/llms/vllm.ipynb>`_ for more details.
Please refer to this `Tutorial <https://python.langchain.com/docs/integrations/llms/vllm>`_ for more details.
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment