Each module should have its own plugins_loaded (#4164)

This commit is contained in:
Yuanle Liu
2025-09-19 14:06:10 +08:00
committed by GitHub
parent ddf5606263
commit a685e5ad35
3 changed files with 4 additions and 4 deletions

View File

@@ -14,9 +14,10 @@
# limitations under the License. # limitations under the License.
""" """
from fastdeploy.plugins.utils import load_plugins_by_group, plugins_loaded from fastdeploy.plugins.utils import load_plugins_by_group
# make sure one process only loads plugins once # make sure one process only loads plugins once
plugins_loaded = False
PLUGINS_GROUP = "fastdeploy.model_register_plugins" PLUGINS_GROUP = "fastdeploy.model_register_plugins"

View File

@@ -14,9 +14,10 @@
# limitations under the License. # limitations under the License.
""" """
from fastdeploy.plugins.utils import load_plugins_by_group, plugins_loaded from fastdeploy.plugins.utils import load_plugins_by_group
# make sure one process only loads plugins once # make sure one process only loads plugins once
plugins_loaded = False
PLUGINS_GROUP = "fastdeploy.reasoning_parser_plugins" PLUGINS_GROUP = "fastdeploy.reasoning_parser_plugins"

View File

@@ -19,8 +19,6 @@ from typing import Any, Callable
from fastdeploy import envs from fastdeploy import envs
from fastdeploy.utils import llm_logger as logger from fastdeploy.utils import llm_logger as logger
plugins_loaded = False
def load_plugins_by_group(group: str) -> dict[str, Callable[[], Any]]: def load_plugins_by_group(group: str) -> dict[str, Callable[[], Any]]:
import sys import sys