[Feature][MiniCPM-o] Support configurable concurrent duplex sessions (#6021)
Signed-off-by: natureofnature <wzliu@connect.hku.hk>
This commit is contained in:
1 parent
710024fa6f
commit
702a409664
15 files changed
+1647
-129
No files matched your search
@@ -1,3 +1,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
|
||||
|
||||
"""Strict MiniCPM-o 4.5 Realtime duplex E2E scenario harness.
|
||||
|
||||
This script is intentionally scenario-based instead of a generic chat client.
|
||||
@@ -1351,6 +1354,9 @@ async def run_demo(args: argparse.Namespace) -> dict[str, object]:
|
||||
try:
|
||||
await ws.send(json.dumps(_session_update_event(args)))
|
||||
await _wait_for(state, lambda: state.count("session.created") > 0, timeout_s=20, label="session.created")
|
||||
start_barrier = getattr(args, "start_barrier", None)
|
||||
if start_barrier is not None:
|
||||
await start_barrier.wait()
|
||||
|
||||
turn_transcripts = _turn_transcripts(args.first_turn_transcript, turns=args.turns)
|
||||
turn_specs = list(zip(turn_transcripts, turn_durations, strict=True))
|
||||
|
||||
Reference in new issue
Block a user