Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 7681e1f

Browse files
dbarbuzziderekk-nm
authored andcommitted
Force-disable upstream tracking (#321)
This PR force-disables upstream tracking by forcing `VLLM_DO_NOT_TRACK` and `VLLM_NO_USAGE_STATS` to be `True` (disable data collection) rather than inspecting the environment variable. An alternative approach could be to update the definition of `is_usage_stats_enabled` (in [`vllm/usage/usage_lib.py:29`](https://github.com/neuralmagic/nm-vllm/blob/main/vllm/usage/usage_lib.py#L29)) to always return `False` and set the `global _USAGE_STATS_ENABLED` to be `False`.
1 parent 310191b commit 7681e1f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vllm/envs.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
S3_ENDPOINT_URL: Optional[str] = None
1919
VLLM_CONFIG_ROOT: str = ""
2020
VLLM_USAGE_STATS_SERVER: str = "https://stats.vllm.ai"
21-
VLLM_NO_USAGE_STATS: bool = False
22-
VLLM_DO_NOT_TRACK: bool = False
21+
VLLM_NO_USAGE_STATS: bool = True
22+
VLLM_DO_NOT_TRACK: bool = True
2323
VLLM_USAGE_SOURCE: str = ""
2424
VLLM_CONFIGURE_LOGGING: int = 1
2525
VLLM_LOGGING_LEVEL: str = "INFO"
@@ -162,11 +162,11 @@
162162
# Usage stats collection
163163
"VLLM_USAGE_STATS_SERVER":
164164
lambda: os.environ.get("VLLM_USAGE_STATS_SERVER", "https://stats.vllm.ai"),
165+
# UPSTREAM SYNC: following changes force tracking to be disabled
165166
"VLLM_NO_USAGE_STATS":
166-
lambda: os.environ.get("VLLM_NO_USAGE_STATS", "0") == "1",
167+
lambda: True,
167168
"VLLM_DO_NOT_TRACK":
168-
lambda: (os.environ.get("VLLM_DO_NOT_TRACK", None) or os.environ.get(
169-
"DO_NOT_TRACK", None) or "0") == "1",
169+
lambda: True,
170170
"VLLM_USAGE_SOURCE":
171171
lambda: os.environ.get("VLLM_USAGE_SOURCE", "production"),
172172

0 commit comments

Comments
 (0)