This commit is contained in:
嘉渊 2023-04-28 15:49:30 +08:00
parent 7fd63d75fb
commit 90260bed95

View File

@ -352,7 +352,10 @@ def inference_modelscope(
raise NotImplementedError("Word LM is not implemented")
if ngpu > 1:
raise NotImplementedError("only single GPU decoding is supported")
for handler in logging.root.handlers[:]:
logging.root.removeHandler(handler)
logging.basicConfig(
level=log_level,
format="%(asctime)s (%(module)s:%(lineno)d) %(levelname)s: %(message)s",