[Model] Add native full-duplex Nemotron VoiceChat serving (#6089)

Signed-off-by: Sysy <1370724210@qq.com>
Signed-off-by: sy03 <137072421@qq.com>
Co-authored-by: sy03 <137072421@qq.com>
This commit is contained in:
Sy03andsy03 authored and GitHub committed 2026-08-26 13:19:20 -07:00
1 parent c2723979c0
commit 432b2c6ca3
40 files changed
+3560 -154

No files matched your search

+5 -2
View File
@@ -561,8 +561,10 @@ class OmniARScheduler(OmniSchedulerMixin, VLLMScheduler):
if self.chunk_transfer_adapter:
if self.vllm_config.model_config.stage_id != 0:
# Downstream async-chunk stages receive real payloads from the
# connector. This update only resumes polling for the next segment.
self.chunk_transfer_adapter.segment_finished_requests.discard(request.request_id)
# connector, not an external StreamingUpdate. Move the
# resumable request back to the ordinary waiting queue so
# connector polling starts again immediately.
self._resume_downstream_chunk_receiver(request)
outstanding_async_tokens = request.num_output_placeholders
# Always record the discard signal (0 when nothing is in
# flight). Upstream a0c092ee72 removed the
@@ -641,6 +643,7 @@ class OmniARScheduler(OmniSchedulerMixin, VLLMScheduler):
inter_stage_output,
request,
is_segment_finished,
new_token_ids=new_token_ids,
confirmed_num_computed_tokens=confirmed_num_computed_tokens,
)
+31 -2
View File
@@ -564,8 +564,37 @@ class OmniSchedulerMixin:
if stopped_running_reqs:
self.running = remove_all(self.running, stopped_running_reqs)
if stopped_preempted_reqs:
self.waiting.remove_requests(stopped_preempted_reqs)
self.skipped_waiting.remove_requests(stopped_preempted_reqs)
# ``_handle_stopped_request`` re-enqueues a resumable segment as
# WAITING_FOR_STREAMING_REQ before this cleanup runs. A
# downstream async-chunk request can have entered the update with
# the older WAITING_FOR_CHUNK status, which puts it in
# ``stopped_preempted_reqs``; deleting it here would immediately
# undo the requeue and the receiver would never poll chunk 1.
removable = {
request
for request in stopped_preempted_reqs
if not (
request.resumable
and request.status
in (
RequestStatus.WAITING,
RequestStatus.WAITING_FOR_STREAMING_REQ,
)
)
}
self.waiting.remove_requests(removable)
self.skipped_waiting.remove_requests(removable)
def _resume_downstream_chunk_receiver(self, request: Request) -> None:
"""Resume connector polling without waiting for an external update."""
adapter = self.chunk_transfer_adapter
adapter.segment_finished_requests.discard(request.request_id)
if request.status != RequestStatus.WAITING_FOR_STREAMING_REQ:
return
self.num_waiting_for_streaming_input -= 1
request.status = RequestStatus.WAITING
self.skipped_waiting.remove_requests((request,))
self._enqueue_waiting_request(request)
def _aggregate_kv_connector_stats(
self,