|
168 | 168 | Qwen3Model, |
169 | 169 | Qwen3RMSNorm, |
170 | 170 | ) |
| 171 | +from transformers.models.qwen3_vl.modeling_qwen3_vl import ( |
| 172 | + Qwen3VLForConditionalGeneration, |
| 173 | + Qwen3VLModel, |
| 174 | + Qwen3VLTextAttention, |
| 175 | + Qwen3VLTextDecoderLayer, |
| 176 | + Qwen3VLTextModel, |
| 177 | + Qwen3VLTextRMSNorm, |
| 178 | + Qwen3VLVisionAttention, |
| 179 | + Qwen3VLVisionModel, |
| 180 | +) |
171 | 181 | from transformers.models.qwen3_vl_moe.modeling_qwen3_vl_moe import ( |
172 | 182 | Qwen3VLMoeForConditionalGeneration, |
173 | 183 | Qwen3VLMoeModel, |
174 | 184 | Qwen3VLMoeTextAttention, |
175 | 185 | Qwen3VLMoeTextDecoderLayer, |
176 | 186 | Qwen3VLMoeTextModel, |
177 | 187 | Qwen3VLMoeTextRMSNorm, |
178 | | - Qwen3VLMoeTextSparseMoeBlock, |
179 | 188 | Qwen3VLMoeVisionAttention, |
180 | 189 | Qwen3VLMoeVisionModel, |
181 | 190 | ) |
|
387 | 396 | QEffQwen3ForCausalLM, |
388 | 397 | QEffQwen3Model, |
389 | 398 | ) |
| 399 | +from QEfficient.transformers.models.qwen3_vl.modeling_qwen3_vl import ( |
| 400 | + QEffQwen3VLForConditionalGeneration, |
| 401 | + QEffQwen3VLModel, |
| 402 | + QEffQwen3VLTextAttention, |
| 403 | + QEffQwen3VLTextDecoderLayer, |
| 404 | + QEffQwen3VLTextModel, |
| 405 | + QEffQwen3VLVisionAttention, |
| 406 | + QEffQwen3VLVisionModel, |
| 407 | +) |
390 | 408 | from QEfficient.transformers.models.qwen3_vl_moe.modeling_qwen3_vl_moe import ( |
391 | 409 | QEffQwen3VLMoeForConditionalGeneration, |
392 | 410 | QEffQwen3VLMoeModel, |
393 | 411 | QEffQwen3VLMoeTextAttention, |
394 | 412 | QEffQwen3VLMoeTextDecoderLayer, |
395 | 413 | QEffQwen3VLMoeTextModel, |
396 | | - QEffQwen3VLMoeTextSparseMoeBlock, |
| 414 | + # QEffQwen3VLMoeTextSparseMoeBlock, |
397 | 415 | QEffQwen3VLMoeVisionAttention, |
398 | 416 | QEffQwen3VLMoeVisionModel, |
399 | 417 | ) |
@@ -440,6 +458,7 @@ class CustomOpsTransform(ModuleMappingTransform): |
440 | 458 | GraniteRMSNorm: CustomRMSNormAIC, |
441 | 459 | GraniteMoeRMSNorm: CustomRMSNormAIC, |
442 | 460 | Qwen3VLMoeTextRMSNorm: CustomRMSNormAIC, |
| 461 | + Qwen3VLTextRMSNorm: CustomRMSNormAIC, |
443 | 462 | Gemma3RMSNorm: QEffGemma3CustomRMSNormAIC, |
444 | 463 | # Qwen3VLMoeTextRMSNorm: CustomRMSNormAIC, |
445 | 464 | } |
@@ -597,7 +616,17 @@ class KVCacheTransform(ModuleMappingTransform): |
597 | 616 | Qwen3VLMoeVisionAttention: QEffQwen3VLMoeVisionAttention, |
598 | 617 | Qwen3VLMoeVisionModel: QEffQwen3VLMoeVisionModel, |
599 | 618 | Qwen3VLMoeTextModel: QEffQwen3VLMoeTextModel, |
600 | | - Qwen3VLMoeTextSparseMoeBlock: QEffQwen3VLMoeTextSparseMoeBlock, |
| 619 | + |
| 620 | + #qwen3vl |
| 621 | + Qwen3VLForConditionalGeneration: QEffQwen3VLForConditionalGeneration, |
| 622 | + Qwen3VLModel: QEffQwen3VLModel, |
| 623 | + Qwen3VLTextAttention: QEffQwen3VLTextAttention, |
| 624 | + Qwen3VLTextDecoderLayer: QEffQwen3VLTextDecoderLayer, |
| 625 | + Qwen3VLVisionAttention: QEffQwen3VLVisionAttention, |
| 626 | + Qwen3VLVisionModel: QEffQwen3VLVisionModel, |
| 627 | + Qwen3VLTextModel: QEffQwen3VLTextModel, |
| 628 | + |
| 629 | + # Qwen3VLMoeTextSparseMoeBlock: QEffQwen3VLMoeTextSparseMoeBlock, |
601 | 630 | # Grok1 |
602 | 631 | # Qwen2_5_VLTextModel: QEffQwen2_5_VLTextModel, |
603 | 632 | # Starcoder2 |
|
0 commit comments