Add expert distribution APIs for engine (#6290)

This commit is contained in:
fzyzcjy
2025-05-18 09:31:51 +08:00
committed by GitHub
parent 73187152a4
commit f87283573e

View File

@@ -324,6 +324,24 @@ class Engine(EngineBase):
loop = asyncio.get_event_loop()
loop.run_until_complete(self.tokenizer_manager.stop_profile())
def start_expert_distribution_record(self):
loop = asyncio.get_event_loop()
loop.run_until_complete(
self.tokenizer_manager.start_expert_distribution_record()
)
def stop_expert_distribution_record(self):
loop = asyncio.get_event_loop()
loop.run_until_complete(
self.tokenizer_manager.stop_expert_distribution_record()
)
def dump_expert_distribution_record(self):
loop = asyncio.get_event_loop()
loop.run_until_complete(
self.tokenizer_manager.dump_expert_distribution_record()
)
def get_server_info(self):
loop = asyncio.get_event_loop()
internal_states = loop.run_until_complete(