imporve log

Former-commit-id: 47e17dd689
This commit is contained in:
hiyouga
2025-01-08 09:56:10 +00:00
parent 984b202f83
commit da542fad18
16 changed files with 78 additions and 67 deletions

View File

@@ -63,7 +63,7 @@ class HuggingfaceEngine(BaseEngine):
try:
asyncio.get_event_loop()
except RuntimeError:
logger.warning_once("There is no current event loop, creating a new one.")
logger.warning_rank0_once("There is no current event loop, creating a new one.")
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)