mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-09-27 04:46:16 +08:00
[BugFix] Fix default log level of paddleformers (#3378)
This commit is contained in:
@@ -24,6 +24,11 @@ os.environ["GLOG_minloglevel"] = "2"
|
||||
os.environ["AISTUDIO_LOG"] = "critical"
|
||||
from fastdeploy.engine.sampling_params import SamplingParams
|
||||
from fastdeploy.entrypoints.llm import LLM
|
||||
from fastdeploy.utils import envs
|
||||
from paddleformers.utils.log import logger as pf_logger
|
||||
if envs.FD_DEBUG != "1":
|
||||
import logging
|
||||
pf_logger.logger.setLevel(logging.INFO)
|
||||
|
||||
__all__ = ["LLM", "SamplingParams"]
|
||||
|
||||
|
Reference in New Issue
Block a user