Add expert distribution APIs for engine (#6290)
This commit is contained in:
1 parent
73187152a4
commit
f87283573e
1 file changed
+18
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user