Skip to content

Commit

Permalink
Disable Ray usage stats collection (vllm-project#2206)
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosukKwon authored Dec 21, 2023
1 parent c17daa9 commit 3a4fd5c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vllm/engine/llm_engine.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import copy
import os
import time
from functools import partial
from typing import TYPE_CHECKING, Any, Iterable, List, Optional, Tuple, Union
Expand Down Expand Up @@ -105,6 +106,10 @@ def __init__(

# Create the parallel GPU workers.
if self.parallel_config.worker_use_ray:
# Disable Ray usage stats collection.
ray_usage = os.environ.get("RAY_USAGE_STATS_ENABLED", "0")
if ray_usage != "1":
os.environ["RAY_USAGE_STATS_ENABLED"] = "0"
self._init_workers_ray(placement_group)
else:
self._init_workers(distributed_init_method)
Expand Down

0 comments on commit 3a4fd5c

Please sign in to comment.