From 32af3af26293c4853ac812194f0deb819b26f364 Mon Sep 17 00:00:00 2001 From: Lancer Date: Mon, 30 Mar 2026 09:50:16 +0800 Subject: [PATCH] [Bugfix] Fix Qwen3TTSConfig init order to be compatible with newer Tansformers(5.x) (#2306) Signed-off-by: Lancer --- .../models/qwen3_tts/configuration_qwen3_tts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vllm_omni/model_executor/models/qwen3_tts/configuration_qwen3_tts.py b/vllm_omni/model_executor/models/qwen3_tts/configuration_qwen3_tts.py index 8e7514137..8bb921a1e 100644 --- a/vllm_omni/model_executor/models/qwen3_tts/configuration_qwen3_tts.py +++ b/vllm_omni/model_executor/models/qwen3_tts/configuration_qwen3_tts.py @@ -482,8 +482,6 @@ class Qwen3TTSConfig(PretrainedConfig): tts_eos_token_id=151673, **kwargs, ): - super().__init__(**kwargs) - if talker_config is None: talker_config = {} logger.info("talker_config is None. Initializing talker model with default values") @@ -494,6 +492,8 @@ class Qwen3TTSConfig(PretrainedConfig): self.talker_config = Qwen3TTSTalkerConfig(**talker_config) self.speaker_encoder_config = Qwen3TTSSpeakerEncoderConfig(**speaker_encoder_config) + super().__init__(**kwargs) + self.tokenizer_type = tokenizer_type self.tts_model_size = tts_model_size self.tts_model_type = tts_model_type