Unverified Commit 2d7bce9c authored by youkaichao's avatar youkaichao Committed by GitHub
Browse files

[Doc] add env vars to the doc (#4572)

parent ce3f1eed
...@@ -75,6 +75,7 @@ Documentation ...@@ -75,6 +75,7 @@ Documentation
serving/deploying_with_docker serving/deploying_with_docker
serving/distributed_serving serving/distributed_serving
serving/metrics serving/metrics
serving/env_vars
serving/usage_stats serving/usage_stats
serving/integrations serving/integrations
......
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
...@@ -28,6 +28,11 @@ if TYPE_CHECKING: ...@@ -28,6 +28,11 @@ if TYPE_CHECKING:
VLLM_USE_RAY_COMPILED_DAG: bool = False VLLM_USE_RAY_COMPILED_DAG: bool = False
VLLM_WORKER_MULTIPROC_METHOD: str = "spawn" 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]] = { environment_variables: Dict[str, Callable[[], Any]] = {
# used in distributed environment to determine the master address # used in distributed environment to determine the master address
'VLLM_HOST_IP': 'VLLM_HOST_IP':
...@@ -148,6 +153,8 @@ environment_variables: Dict[str, Callable[[], Any]] = { ...@@ -148,6 +153,8 @@ environment_variables: Dict[str, Callable[[], Any]] = {
lambda: os.getenv("VLLM_WORKER_MULTIPROC_METHOD", "spawn"), lambda: os.getenv("VLLM_WORKER_MULTIPROC_METHOD", "spawn"),
} }
# end-env-vars-definition
def __getattr__(name): def __getattr__(name):
# lazy evaluation of environment variables # lazy evaluation of environment variables
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment