-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
llama_index serving integration documentation (#6973)
Co-authored-by: pavanmantha <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ Integrations | |
deploying_with_lws | ||
deploying_with_dstack | ||
serving_with_langchain | ||
serving_with_llamaindex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.. _run_on_llamaindex: | ||
|
||
Serving with llama_index | ||
============================ | ||
|
||
vLLM is also available via `llama_index <https://github.com/run-llama/llama_index>`_ . | ||
|
||
To install llamaindex, run | ||
|
||
.. code-block:: console | ||
$ pip install llama-index-llms-vllm -q | ||
To run inference on a single or multiple GPUs, use ``Vllm`` class from ``llamaindex``. | ||
|
||
.. code-block:: python | ||
from llama_index.llms.vllm import Vllm | ||
llm = Vllm( | ||
model="microsoft/Orca-2-7b", | ||
tensor_parallel_size=4, | ||
max_new_tokens=100, | ||
vllm_kwargs={"swap_space": 1, "gpu_memory_utilization": 0.5}, | ||
) | ||
Please refer to this `Tutorial <https://docs.llamaindex.ai/en/latest/examples/llm/vllm/>`_ for more details. |