[Fix] Qwen3-ASR config: set thinker_config before super().__init__ (#24187)
This commit is contained in:
@@ -148,7 +148,6 @@ class Qwen3ASRConfig(PretrainedConfig):
|
||||
}
|
||||
|
||||
def __init__(self, thinker_config=None, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
if thinker_config is None:
|
||||
thinker_config = {}
|
||||
logger.info(
|
||||
@@ -159,6 +158,7 @@ class Qwen3ASRConfig(PretrainedConfig):
|
||||
self.thinker_config = Qwen3ASRThinkerConfig(**thinker_config)
|
||||
else:
|
||||
self.thinker_config = thinker_config
|
||||
super().__init__(**kwargs)
|
||||
|
||||
def get_text_config(self, decoder=False) -> PretrainedConfig:
|
||||
return self.thinker_config.text_config
|
||||
|
||||
Reference in New Issue
Block a user