File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
tools/checkpoint_conversion Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 1414torch .set_default_device (device )
1515
1616from keras import ops # noqa: E402
17+ from transformers import AutoModelForMultimodalLM # noqa: E402
1718from transformers import AutoTokenizer # noqa: E402
1819
1920import 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 ,
You can’t perform that action at this time.
0 commit comments