[Bugfix][MiniCPM-o] Bound full-duplex Talker context with sliding recompute (#6626)
Signed-off-by: natureofnature <wzliu@connect.hku.hk>
This commit is contained in:
1 parent
3adee400a0
commit
87736a3cc5
14 files changed
+1389
-72
No files matched your search
@@ -59,6 +59,7 @@ class Ids(TypedDict, total=False):
|
||||
output: list[int]
|
||||
speech_token: list[int]
|
||||
prior_image: list[int]
|
||||
streaming_prompt_previous_codes: list[int]
|
||||
|
||||
|
||||
class OmniPayloadMeta(TypedDict, total=False):
|
||||
@@ -78,7 +79,10 @@ class OmniPayloadMeta(TypedDict, total=False):
|
||||
override_keys: list[tuple[str, str]]
|
||||
num_processed_tokens: int
|
||||
next_stage_prompt_len: int
|
||||
next_stage_generation_tokens: int
|
||||
replace_streaming_prompt: bool
|
||||
streaming_prompt_recompute: bool
|
||||
streaming_condition_seq: int
|
||||
replace_runtime_additional_information: bool
|
||||
ar_width: int
|
||||
eol_token_id: int
|
||||
@@ -167,6 +171,7 @@ class IdsStruct(_StructBase):
|
||||
output: list[int] | None = None
|
||||
speech_token: list[int] | None = None
|
||||
prior_image: list[int] | None = None
|
||||
streaming_prompt_previous_codes: list[int] | None = None
|
||||
|
||||
|
||||
class MetaStruct(_StructBase):
|
||||
@@ -183,7 +188,10 @@ class MetaStruct(_StructBase):
|
||||
override_keys: list[tuple[str, str]] | None = None
|
||||
num_processed_tokens: int | None = None
|
||||
next_stage_prompt_len: int | None = None
|
||||
next_stage_generation_tokens: int | None = None
|
||||
replace_streaming_prompt: bool | None = None
|
||||
streaming_prompt_recompute: bool | None = None
|
||||
streaming_condition_seq: int | None = None
|
||||
replace_runtime_additional_information: bool | None = None
|
||||
ar_width: int | None = None
|
||||
eol_token_id: int | None = None
|
||||
|
||||
Reference in new issue
Block a user