Skip to content

Commit 437f8bb

Browse files
committed
conversion script minor edits
1 parent 1c7e428 commit 437f8bb

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tools/checkpoint_conversion/convert_qwen3_omni_checkpoints.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
torch.set_default_device(device)
1515

1616
from keras import ops # noqa: E402
17+
from transformers import AutoModelForMultimodalLM # noqa: E402
1718
from transformers import AutoTokenizer # noqa: E402
1819

1920
import keras_hub # noqa: E402
@@ -123,15 +124,6 @@ def main(_):
123124
hf_preset = PRESET_MAP[preset]
124125

125126
# === Load the Huggingface model ===
126-
# Qwen3-Omni architecture:
127-
# Qwen3OmniMoeForConditionalGeneration (full model)
128-
# └── thinker: Qwen3OmniMoeThinkerForConditionalGeneration
129-
# ├── audio_tower: Audio encoder
130-
# ├── visual: Vision encoder
131-
# └── model: Qwen3OmniMoeThinkerTextModel
132-
133-
from transformers import AutoModelForMultimodalLM
134-
135127
hf_full_model = AutoModelForMultimodalLM.from_pretrained(
136128
hf_preset,
137129
device_map=device,

0 commit comments

Comments
 (0)