Skip to content

Commit 1c768fe

Browse files
[Doc] Explicitly state that InternVL 2.5 is supported (#10978)
Signed-off-by: DarkLight1337 <[email protected]>
1 parent bf0e382 commit 1c768fe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/source/models/supported_models.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,9 @@ Text Generation
547547
- ✅︎
548548
-
549549
* - :code:`InternVLChatModel`
550-
- InternVL2
550+
- InternVL 2.5, Mono-InternVL, InternVL 2.0
551551
- T + I\ :sup:`E+`
552-
- :code:`OpenGVLab/Mono-InternVL-2B`, :code:`OpenGVLab/InternVL2-4B`, :code:`OpenGVLab/InternVL2-8B`, etc.
552+
- :code:`OpenGVLab/InternVL2_5-4B`, :code:`OpenGVLab/Mono-InternVL-2B`, :code:`OpenGVLab/InternVL2-4B`, etc.
553553
-
554554
- ✅︎
555555
* - :code:`LlavaForConditionalGeneration`

examples/offline_inference_vision_language.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def run_internvl(question: str, modality: str):
223223
# Stop tokens for InternVL
224224
# models variants may have different stop tokens
225225
# please refer to the model card for the correct "stop words":
226-
# https://huggingface.co/OpenGVLab/InternVL2-2B#service
226+
# https://huggingface.co/OpenGVLab/InternVL2-2B/blob/main/conversation.py
227227
stop_tokens = ["<|endoftext|>", "<|im_start|>", "<|im_end|>", "<|end|>"]
228228
stop_token_ids = [tokenizer.convert_tokens_to_ids(i) for i in stop_tokens]
229229
return llm, prompt, stop_token_ids

examples/offline_inference_vision_language_multi_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def load_internvl(question: str, image_urls: List[str]) -> ModelRequestData:
165165
# Stop tokens for InternVL
166166
# models variants may have different stop tokens
167167
# please refer to the model card for the correct "stop words":
168-
# https://huggingface.co/OpenGVLab/InternVL2-2B#service
168+
# https://huggingface.co/OpenGVLab/InternVL2-2B/blob/main/conversation.py
169169
stop_tokens = ["<|endoftext|>", "<|im_start|>", "<|im_end|>", "<|end|>"]
170170
stop_token_ids = [tokenizer.convert_tokens_to_ids(i) for i in stop_tokens]
171171

0 commit comments

Comments
 (0)