-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'vllm-project:main' into vllmfp8mistral
- Loading branch information
Showing
4 changed files
with
68 additions
and
16 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 |
---|---|---|
|
@@ -13,3 +13,4 @@ Integrations | |
deploying_with_dstack | ||
serving_with_langchain | ||
serving_with_llamaindex | ||
serving_with_llamastack |
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,42 @@ | ||
.. _run_on_llamastack: | ||
|
||
Serving with Llama Stack | ||
============================ | ||
|
||
vLLM is also available via `Llama Stack <https://github.com/meta-llama/llama-stack>`_ . | ||
|
||
To install Llama Stack, run | ||
|
||
.. code-block:: console | ||
$ pip install llama-stack -q | ||
Inference using OpenAI Compatible API | ||
------------------------------------- | ||
|
||
Then start Llama Stack server pointing to your vLLM server with the following configuration: | ||
|
||
.. code-block:: yaml | ||
inference: | ||
- provider_id: vllm0 | ||
provider_type: remote::vllm | ||
config: | ||
url: http://127.0.0.1:8000 | ||
Please refer to `this guide <https://github.com/meta-llama/llama-stack/blob/main/docs/source/getting_started/distributions/self_hosted_distro/remote_vllm.md>`_ for more details on this remote vLLM provider. | ||
|
||
Inference via Embedded vLLM | ||
--------------------------- | ||
|
||
An `inline vLLM provider | ||
<https://github.com/meta-llama/llama-stack/tree/main/llama_stack/providers/inline/inference/vllm>`_ | ||
is also available. This is a sample of configuration using that method: | ||
|
||
.. code-block:: yaml | ||
inference | ||
- provider_type: vllm | ||
config: | ||
model: Llama3.1-8B-Instruct | ||
tensor_parallel_size: 4 |
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
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