Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ class Qwen3OmniMoeConfig(PreTrainedConfig):
system_token_id: int = 8948
user_token_id: int = 872
assistant_token_id: int = 77091
initializer_range: float | None = None

def __post_init__(self, **kwargs):
if self.thinker_config is None:
Expand All @@ -624,6 +625,9 @@ def __post_init__(self, **kwargs):
elif isinstance(self.code2wav_config, dict):
self.code2wav_config = Qwen3OmniMoeCode2WavConfig(**self.code2wav_config)

if self.initializer_range is None:
self.initializer_range = self.thinker_config.initializer_range

super().__post_init__(**kwargs)

def get_text_config(self, decoder=False) -> "PreTrainedConfig":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ class Qwen3OmniMoeConfig(PreTrainedConfig):
system_token_id: int = 8948
user_token_id: int = 872
assistant_token_id: int = 77091
initializer_range: float | None = None

def __post_init__(self, **kwargs):
if self.thinker_config is None:
Expand All @@ -534,6 +535,9 @@ def __post_init__(self, **kwargs):
elif isinstance(self.code2wav_config, dict):
self.code2wav_config = Qwen3OmniMoeCode2WavConfig(**self.code2wav_config)

if self.initializer_range is None:
self.initializer_range = self.thinker_config.initializer_range

super().__post_init__(**kwargs)

def get_text_config(self, decoder=False) -> "PreTrainedConfig":
Expand Down
Loading