|
65 | 65 | ("glm", "GlmModel"), |
66 | 66 | ("glpn", "GLPNModel"), |
67 | 67 | ("gpt2", "GPT2Model"), |
| 68 | + ("opt", "OPTModel"), |
68 | 69 | ("granite", "GraniteModel"), |
69 | 70 | ("granitemoe", "GraniteMoeModel"), |
70 | 71 | ("granitemoeshared", "GraniteMoeSharedModel"), |
|
204 | 205 | ("granitemoe", "GraniteMoeForCausalLM"), |
205 | 206 | ("granitemoeshared", "GraniteMoeSharedForCausalLM"), |
206 | 207 | ("llama", "LlamaForCausalLM"), |
| 208 | + ("opt", "OPTForCausalLM"), |
207 | 209 | ("megatron-bert", "MegatronBertForCausalLM"), |
208 | 210 | ("mistral", "MistralForCausalLM"), |
209 | 211 | ("mpt", "MptForCausalLM"), |
|
454 | 456 | ("starcoder2", "Starcoder2ForSequenceClassification"), |
455 | 457 | ("canine", "CanineForSequenceClassification"), |
456 | 458 | ("llama", "LlamaForSequenceClassification"), |
| 459 | + ("opt", "OPTForSequenceClassification"), |
457 | 460 | ("persimmon", "PersimmonForSequenceClassification"), |
458 | 461 | ("mobilebert", "MobileBertForSequenceClassification"), |
459 | 462 | ("convbert", "ConvBertForSequenceClassification"), |
|
491 | 494 | ("mobilebert", "MobileBertForQuestionAnswering"), |
492 | 495 | ("megatron-bert", "MegatronBertForQuestionAnswering"), |
493 | 496 | ("mistral", "MistralForQuestionAnswering"), |
| 497 | + ("opt", "OPTForQuestionAnswering"), |
494 | 498 | ("qwen2", "Qwen2ForQuestionAnswering"), |
495 | 499 | ("rembert", "RemBertForQuestionAnswering"), |
496 | 500 | ("t5", "T5ForQuestionAnswering"), |
|
503 | 507 | ] |
504 | 508 | ) |
505 | 509 |
|
506 | | -MODEL_FOR_TABLE_QUESTION_ANSWERING_MAPPING_NAMES = OrderedDict() |
| 510 | +MODEL_FOR_TABLE_QUESTION_ANSWERING_MAPPING_NAMES = OrderedDict( |
| 511 | + [ |
| 512 | + ("blip-2", "Blip2ForConditionalGeneration"), |
| 513 | + ] |
| 514 | +) |
507 | 515 |
|
508 | 516 | MODEL_FOR_VISUAL_QUESTION_ANSWERING_MAPPING_NAMES = OrderedDict( |
509 | 517 | [ |
|
611 | 619 | # Model for Zero Shot Image Classification mapping |
612 | 620 | ("blip", "BlipModel"), |
613 | 621 | ("siglip", "SiglipModel"), |
| 622 | + ("blip-2", "Blip2ForImageTextRetrieval"), |
614 | 623 | ] |
615 | 624 | ) |
616 | 625 |
|
|
0 commit comments