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
0f621c2c
Unverified
Commit
0f621c2c
authored
Nov 29, 2023
by
Simon Mo
Committed by
GitHub
Nov 29, 2023
Browse files
[Docs] Add information about using shared memory in docker (#1845)
parent
a9e45742
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
docs/source/models/adding_model.rst
docs/source/models/adding_model.rst
+1
-1
docs/source/serving/deploying_with_docker.rst
docs/source/serving/deploying_with_docker.rst
+9
-1
No files found.
docs/source/models/adding_model.rst
View file @
0f621c2c
...
@@ -18,7 +18,7 @@ This document provides a high-level guide on integrating a `HuggingFace Transfor
...
@@ -18,7 +18,7 @@ This document provides a high-level guide on integrating a `HuggingFace Transfor
0. Fork the vLLM repository
0. Fork the vLLM repository
--------------------------------
--------------------------------
Start by forking our `GitHub
<https://github.com/vllm-project/vllm/>
`_ repository and then :ref:`build it from source <build_from_source>`.
Start by forking our `GitHub`_ repository and then :ref:`build it from source <build_from_source>`.
This gives you the ability to modify the codebase and test your model.
This gives you the ability to modify the codebase and test your model.
...
...
docs/source/serving/deploying_with_docker.rst
View file @
0f621c2c
...
@@ -11,12 +11,20 @@ The image is available on Docker Hub as `vllm/vllm-openai <https://hub.docker.co
...
@@ -11,12 +11,20 @@ The image is available on Docker Hub as `vllm/vllm-openai <https://hub.docker.co
$ docker run --runtime nvidia --gpus all \
$ docker run --runtime nvidia --gpus all \
-v ~/.cache/huggingface:/root/.cache/huggingface \
-v ~/.cache/huggingface:/root/.cache/huggingface \
-p 8000:8000 \
--env "HUGGING_FACE_HUB_TOKEN=<secret>" \
--env "HUGGING_FACE_HUB_TOKEN=<secret>" \
-p 8000:8000 \
--ipc=host \
vllm/vllm-openai:latest \
vllm/vllm-openai:latest \
--model mistralai/Mistral-7B-v0.1
--model mistralai/Mistral-7B-v0.1
.. note::
You can either use the ``ipc=host`` flag or ``--shm-size`` flag to allow the
container to access the host's shared memory. vLLM uses PyTorch, which uses shared
memory to share data between processes under the hood, particularly for tensor parallel inference.
You can build and run vLLM from source via the provided dockerfile. To build vLLM:
You can build and run vLLM from source via the provided dockerfile. To build vLLM:
.. code-block:: console
.. code-block:: console
...
...
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