[Rust Frontend] Integrate MM audio support (#48554)
Co-authored-by: Isotr0py <Isotr0py@outlook.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Signed-off-by: Bugen Zhao <i@bugenzhao.com> Signed-off-by: Isotr0py <Isotr0py@outlook.com>
This commit is contained in:
co-authored by
Isotr0py
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent
adce068118
commit
e281ac663a
@@ -407,16 +407,29 @@ class Qwen3ASRConfig(PretrainedConfig):
|
||||
def __init__(
|
||||
self,
|
||||
thinker_config=None,
|
||||
audio_config=None,
|
||||
text_config=None,
|
||||
audio_token_id=None,
|
||||
support_languages=None,
|
||||
timestamp_token_id=None,
|
||||
timestamp_segment_time=None,
|
||||
**kwargs,
|
||||
):
|
||||
if thinker_config is None:
|
||||
thinker_config = {}
|
||||
logger.info(
|
||||
"thinker_config is None. Initializing thinker model with default values"
|
||||
)
|
||||
thinker_config = {
|
||||
key: value
|
||||
for key, value in (
|
||||
("audio_config", audio_config),
|
||||
("text_config", text_config),
|
||||
("audio_token_id", audio_token_id),
|
||||
)
|
||||
if value is not None
|
||||
}
|
||||
if not thinker_config:
|
||||
logger.info(
|
||||
"thinker_config is None. Initializing thinker model with "
|
||||
"default values"
|
||||
)
|
||||
|
||||
self.thinker_config = Qwen3ASRThinkerConfig(**thinker_config)
|
||||
self.support_languages = support_languages
|
||||
|
||||
Reference in New Issue
Block a user