Image-Text-to-Text
Transformers
PyTorch
multilingual
internvl_chat
feature-extraction
internvl
custom_code
Instructions to use OpenGVLab/InternVL-Chat-V1-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenGVLab/InternVL-Chat-V1-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="OpenGVLab/InternVL-Chat-V1-1", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OpenGVLab/InternVL-Chat-V1-1", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use OpenGVLab/InternVL-Chat-V1-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenGVLab/InternVL-Chat-V1-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenGVLab/InternVL-Chat-V1-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/OpenGVLab/InternVL-Chat-V1-1
- SGLang
How to use OpenGVLab/InternVL-Chat-V1-1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "OpenGVLab/InternVL-Chat-V1-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenGVLab/InternVL-Chat-V1-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "OpenGVLab/InternVL-Chat-V1-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenGVLab/InternVL-Chat-V1-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use OpenGVLab/InternVL-Chat-V1-1 with Docker Model Runner:
docker model run hf.co/OpenGVLab/InternVL-Chat-V1-1
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,14 +10,14 @@ datasets:
|
|
| 10 |
pipeline_tag: visual-question-answering
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# Model Card for InternVL-Chat-V1
|
| 14 |
<p align="center">
|
| 15 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/64119264f0f81eb569e0d569/4IG0h_KJ2cvpp9Kdm0Jf7.webp" alt="Image Description" width="300" height="300">
|
| 16 |
</p>
|
| 17 |
|
| 18 |
\[[InternVL 1.5 Technical Report](https://arxiv.org/abs/2404.16821)\] \[[Paper](https://arxiv.org/abs/2312.14238)\] \[[GitHub](https://github.com/OpenGVLab/InternVL)\] \[[Chat Demo](https://internvl.opengvlab.com/)\] \[[中文解读](https://zhuanlan.zhihu.com/p/675877376)]
|
| 19 |
|
| 20 |
-
We released InternVL-Chat-V1
|
| 21 |
|
| 22 |
## Model Details
|
| 23 |
- **Model Type:** multimodal large language model (MLLM)
|
|
@@ -40,26 +40,26 @@ We released InternVL-Chat-V1.1, featuring a structure similar to LLaVA, includin
|
|
| 40 |
### Vision Foundation model
|
| 41 |
| Model | Date | Download | Note |
|
| 42 |
| ----------------------- | ---------- | ---------------------------------------------------------------------- | -------------------------------- |
|
| 43 |
-
| InternViT-6B-448px-V1
|
| 44 |
-
| InternViT-6B-448px-V1
|
| 45 |
-
| InternViT-6B-448px-V1
|
| 46 |
| InternViT-6B-224px | 2023.12.22 | 🤗 [HF link](https://huggingface.co/OpenGVLab/InternViT-6B-224px) | vision foundation model |
|
| 47 |
| InternVL-14B-224px | 2023.12.22 | 🤗 [HF link](https://huggingface.co/OpenGVLab/InternVL-14B-224px) | vision-language foundation model |
|
| 48 |
|
| 49 |
### Multimodal Large Language Model (MLLM)
|
| 50 |
| Model | Date | Download | Note |
|
| 51 |
| ----------------------- | ---------- | --------------------------------------------------------------------------- | ---------------------------------- |
|
| 52 |
-
| InternVL-Chat-V1
|
| 53 |
-
| InternVL-Chat-V1
|
| 54 |
-
| InternVL-Chat-V1
|
| 55 |
-
| InternVL-Chat-V1
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
## Model Usage
|
| 61 |
|
| 62 |
-
We provide an example code to run InternVL-Chat-V1
|
| 63 |
|
| 64 |
You also can use our [online demo](https://internvl.opengvlab.com/) for a quick experience of this model.
|
| 65 |
|
|
|
|
| 10 |
pipeline_tag: visual-question-answering
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Model Card for InternVL-Chat-V1-1
|
| 14 |
<p align="center">
|
| 15 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/64119264f0f81eb569e0d569/4IG0h_KJ2cvpp9Kdm0Jf7.webp" alt="Image Description" width="300" height="300">
|
| 16 |
</p>
|
| 17 |
|
| 18 |
\[[InternVL 1.5 Technical Report](https://arxiv.org/abs/2404.16821)\] \[[Paper](https://arxiv.org/abs/2312.14238)\] \[[GitHub](https://github.com/OpenGVLab/InternVL)\] \[[Chat Demo](https://internvl.opengvlab.com/)\] \[[中文解读](https://zhuanlan.zhihu.com/p/675877376)]
|
| 19 |
|
| 20 |
+
We released InternVL-Chat-V1-1, featuring a structure similar to LLaVA, including a ViT, an MLP projector, and an LLM. In this version, we explored increasing the resolution to 448x448, enhancing OCR capabilities, and improving support for Chinese conversations.
|
| 21 |
|
| 22 |
## Model Details
|
| 23 |
- **Model Type:** multimodal large language model (MLLM)
|
|
|
|
| 40 |
### Vision Foundation model
|
| 41 |
| Model | Date | Download | Note |
|
| 42 |
| ----------------------- | ---------- | ---------------------------------------------------------------------- | -------------------------------- |
|
| 43 |
+
| InternViT-6B-448px-V1-5 | 2024.04.20 | 🤗 [HF link](https://huggingface.co/OpenGVLab/InternViT-6B-448px-V1-5) | support dynamic resolution, super strong OCR (🔥new) |
|
| 44 |
+
| InternViT-6B-448px-V1-2 | 2024.02.11 | 🤗 [HF link](https://huggingface.co/OpenGVLab/InternViT-6B-448px-V1-2) | 448 resolution |
|
| 45 |
+
| InternViT-6B-448px-V1-0 | 2024.01.30 | 🤗 [HF link](https://huggingface.co/OpenGVLab/InternViT-6B-448px-V1-0) | 448 resolution |
|
| 46 |
| InternViT-6B-224px | 2023.12.22 | 🤗 [HF link](https://huggingface.co/OpenGVLab/InternViT-6B-224px) | vision foundation model |
|
| 47 |
| InternVL-14B-224px | 2023.12.22 | 🤗 [HF link](https://huggingface.co/OpenGVLab/InternVL-14B-224px) | vision-language foundation model |
|
| 48 |
|
| 49 |
### Multimodal Large Language Model (MLLM)
|
| 50 |
| Model | Date | Download | Note |
|
| 51 |
| ----------------------- | ---------- | --------------------------------------------------------------------------- | ---------------------------------- |
|
| 52 |
+
| InternVL-Chat-V1-5 | 2024.04.18 | 🤗 [HF link](https://huggingface.co/OpenGVLab/InternVL-Chat-V1-5) | support 4K image; super strong OCR; Approaching the performance of GPT-4V and Gemini Pro on various benchmarks like MMMU, DocVQA, ChartQA, MathVista, etc. (🔥new)|
|
| 53 |
+
| InternVL-Chat-V1-2-Plus | 2024.02.21 | 🤗 [HF link](https://huggingface.co/OpenGVLab/InternVL-Chat-V1-2-Plus) | more SFT data and stronger |
|
| 54 |
+
| InternVL-Chat-V1-2 | 2024.02.11 | 🤗 [HF link](https://huggingface.co/OpenGVLab/InternVL-Chat-V1-2) | scaling up LLM to 34B |
|
| 55 |
+
| InternVL-Chat-V1-1 | 2024.01.24 | 🤗 [HF link](https://huggingface.co/OpenGVLab/InternVL-Chat-V1-1) | support Chinese and stronger OCR |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
## Model Usage
|
| 61 |
|
| 62 |
+
We provide an example code to run InternVL-Chat-V1-1 using `transformers`.
|
| 63 |
|
| 64 |
You also can use our [online demo](https://internvl.opengvlab.com/) for a quick experience of this model.
|
| 65 |
|