Each module should have its own plugins_loaded (#4149)
Some checks failed
CE Compile Job / ce_job_pre_check (push) Has been cancelled
CE Compile Job / print_ce_job_pre_check_outputs (push) Has been cancelled
CE Compile Job / FD-Clone-Linux (push) Has been cancelled
CE Compile Job / Show Code Archive Output (push) Has been cancelled
CE Compile Job / BUILD_SM8090 (push) Has been cancelled
CE Compile Job / BUILD_SM8689 (push) Has been cancelled
CE Compile Job / CE_UPLOAD (push) Has been cancelled

This commit is contained in:
Yuanle Liu
2025-09-23 15:44:46 +08:00
committed by GitHub
parent 361104508e
commit 389c5dd3a2
3 changed files with 4 additions and 4 deletions

View File

@@ -14,9 +14,10 @@
# 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
plugins_loaded = False
PLUGINS_GROUP = "fastdeploy.model_register_plugins"

View File

@@ -14,9 +14,10 @@
# 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
plugins_loaded = False
PLUGINS_GROUP = "fastdeploy.reasoning_parser_plugins"

View File

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