We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5390d66 commit 25f9c78Copy full SHA for 25f9c78
vllm/plugins/__init__.py
@@ -9,12 +9,19 @@
9
10
logger = logging.getLogger(__name__)
11
12
+# make sure one process only loads plugins once
13
+plugins_loaded = False
14
+
15
16
def load_general_plugins():
17
"""WARNING: plugins can be loaded for multiple times in different
18
processes. They should be designed in a way that they can be loaded
19
multiple times without causing issues.
20
"""
21
+ global plugins_loaded
22
+ if plugins_loaded:
23
+ return
24
+ plugins_loaded = True
25
import sys
26
if sys.version_info < (3, 10):
27
from importlib_metadata import entry_points
0 commit comments