"tests/models/starcoder2/test_modeling_starcoder2.py" did not exist on "bd90cda9a6bb4723515c17df1192e53abc8e36e3"
Unverified Commit 960807f6 authored by Stas Bekman's avatar Stas Bekman Committed by GitHub
Browse files

[idefics] small fixes (#25764)

parent 015f8e11
......@@ -35,7 +35,6 @@ else:
_import_structure["modeling_idefics"] = [
"IDEFICS_PRETRAINED_MODEL_ARCHIVE_LIST",
"IdeficsForVisionText2Text",
"IdeficsGatedCrossAttentionLayer",
"IdeficsModel",
"IdeficsPreTrainedModel",
]
......@@ -62,7 +61,6 @@ if TYPE_CHECKING:
from .modeling_idefics import (
IDEFICS_PRETRAINED_MODEL_ARCHIVE_LIST,
IdeficsForVisionText2Text,
IdeficsGatedCrossAttentionLayer,
IdeficsModel,
IdeficsPreTrainedModel,
)
......
......@@ -1482,9 +1482,9 @@ class IdeficsForVisionText2Text(IdeficsPreTrainedModel):
Example:
```python
>>> from transformers import AutoTokenizer, LlamaForCausalLM
>>> from transformers import AutoTokenizer, IdeficsForVisionText2Text
>>> model = LlamaForCausalLM.from_pretrained(PATH_TO_CONVERTED_WEIGHTS)
>>> model = IdeficsForVisionText2Text.from_pretrained(PATH_TO_CONVERTED_WEIGHTS)
>>> tokenizer = AutoTokenizer.from_pretrained(PATH_TO_CONVERTED_TOKENIZER)
>>> prompt = "Hey, are you consciours? Can you talk to me?"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment