Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
2d7bce9c
Unverified
Commit
2d7bce9c
authored
May 02, 2024
by
youkaichao
Committed by
GitHub
May 03, 2024
Browse files
[Doc] add env vars to the doc (#4572)
parent
ce3f1eed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
docs/source/index.rst
docs/source/index.rst
+1
-0
docs/source/serving/env_vars.rst
docs/source/serving/env_vars.rst
+9
-0
vllm/envs.py
vllm/envs.py
+7
-0
No files found.
docs/source/index.rst
View file @
2d7bce9c
...
...
@@ -75,6 +75,7 @@ Documentation
serving/deploying_with_docker
serving/distributed_serving
serving/metrics
serving/env_vars
serving/usage_stats
serving/integrations
...
...
docs/source/serving/env_vars.rst
0 → 100644
View file @
2d7bce9c
Environment Variables
========================
vLLM uses the following environment variables to configure the system:
.. literalinclude:: ../../../vllm/envs.py
:language: python
:start-after: begin-env-vars-definition
:end-before: end-env-vars-definition
vllm/envs.py
View file @
2d7bce9c
...
...
@@ -28,6 +28,11 @@ if TYPE_CHECKING:
VLLM_USE_RAY_COMPILED_DAG
:
bool
=
False
VLLM_WORKER_MULTIPROC_METHOD
:
str
=
"spawn"
# The begin-* and end* here are used by the documentation generator
# to extract the used env vars.
# begin-env-vars-definition
environment_variables
:
Dict
[
str
,
Callable
[[],
Any
]]
=
{
# used in distributed environment to determine the master address
'VLLM_HOST_IP'
:
...
...
@@ -148,6 +153,8 @@ environment_variables: Dict[str, Callable[[], Any]] = {
lambda
:
os
.
getenv
(
"VLLM_WORKER_MULTIPROC_METHOD"
,
"spawn"
),
}
# end-env-vars-definition
def
__getattr__
(
name
):
# lazy evaluation of environment variables
...
...
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