# What does this PR do?

When investigating an issue reported [here](https://github.com/salesforce/LAVIS/issues/418), I've reran and improved BLIP-2's conversion script (based on InstructBLIP).

It's important to compare apples-to-apples, so I had to fork the LAVIS repo and make sure the original model is also run in float32.
[BLIP-2] Improve conversion script. # What does this PR do?

When investigating an issue reported [here](https://github.com/salesforce/LAVIS/issues/418), I've reran and improved BLIP-2's conversion script (based on InstructBLIP).

It's important to compare apples-to-apples, so I had to fork the LAVIS repo and make sure the original model is also run in float32.
# This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends


class TFBertTokenizer(metaclass=DummyObject):
    _backends = ["tensorflow_text"]

    def __init__(self, *args, **kwargs):
        requires_backends(self, ["tensorflow_text"])

# This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends


class TFBertTokenizer(metaclass=DummyObject):
    _backends = ["tensorflow_text"]

    def __init__(self, *args, **kwargs):
        requires_backends(self, ["tensorflow_text"])
