Skip to content

Commit

Permalink
add multilingual blip
Browse files Browse the repository at this point in the history
  • Loading branch information
dnth committed Nov 13, 2024
1 parent 76442d7 commit c3702cf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions xinfer/transformers/blip2.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@
"transformers",
ModelInputOutput.IMAGE_TEXT_TO_TEXT,
)
@register_model(
"Gregor/mblip-mt0-xl",
"transformers",
ModelInputOutput.IMAGE_TEXT_TO_TEXT,
)
@register_model(
"Gregor/mblip-bloomz-7b",
"transformers",
ModelInputOutput.IMAGE_TEXT_TO_TEXT,
)
class BLIP2(Vision2SeqModel):
def __init__(self, model_id: str, **kwargs):
super().__init__(model_id, **kwargs)

0 comments on commit c3702cf

Please sign in to comment.