mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
Each module should have its own plugins_loaded (#4164)
This commit is contained in:
@@ -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"
|
||||||
|
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user