You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A factory class for creating QEFFAutoModelForImageTextToText instances with for single and Dual QPC approach
1150
+
The QEFFAutoModelForImageTextToText class is used to work with multimodal language models from the HuggingFace hub.
1151
+
While you can initialize the class directly, it's best to use the ``from_pretrained`` method for this purpose. This class supports both single and dual QPC approaches.
1151
1152
Attributes:
1152
1153
_hf_auto_class (class): The Hugging Face AutoModel class for ImageTextToText models.
1154
+
1155
+
``Mandatory`` Args:
1156
+
:pretrained_model_name_or_path (str): Model card name from HuggingFace or local path to model directory.
1157
+
1158
+
``Optional`` Args:
1159
+
:kv_offload (bool): Flag to toggle between single and dual QPC approaches. If set to False, the Single QPC approach will be used; otherwise, the dual QPC approach will be applied. Defaults to True.
1160
+
1161
+
.. code-block:: python
1162
+
import requests
1163
+
from PIL import Image
1164
+
from transformers import AutoProcessor, TextStreamer
1165
+
1166
+
from QEfficient import QEFFAutoModelForImageTextToText
|**RobertaModel**| RoBERTa |[ibm-granite/granite-embedding-30m-english](https://huggingface.co/ibm-granite/granite-embedding-30m-english)<br> [ibm-granite/granite-embedding-125m-english](https://huggingface.co/ibm-granite/granite-embedding-125m-english)|
0 commit comments