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)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OpenGVLab/InternVL-Chat-V1-1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.f68b1fd
-
Add supports_gradient_checkpointing
Verified signature98d5c28
-
Fix device_map
Verified signatured4e2235
-
Update README.md
Verified signature28e027d
-
Update README.md
Verified signatured51a07f
-
Apply Github PR #127 to all HF models
Verified signature53ca0a8 -
Update README.md
Verified signature3a8e91d
-
Update README.md
Verified signature7c93434
-
Upload folder using huggingface_hub
Verified signature2e811e4 -
Upload folder using huggingface_hub
Verified signatureb38ebd9 -
Upload folder using huggingface_hub
Verified signaturea87298e
-
Upload folder using huggingface_hub
Verified signature1f6fd0b
-
Upload folder using huggingface_hub
Verified signaturedb1d413 -
Upload folder using huggingface_hub
Verified signatureffcc6f0 -
Upload folder using huggingface_hub
Verified signatureb67fbed -
Update README.md
Verified signature4a0c918
-
Upload folder using huggingface_hub
Verified signaturece6dde4 -
Upload folder using huggingface_hub
Verified signature39f98c9
-
Upload folder using huggingface_hub
Verified signature8318f70
-
Upload folder using huggingface_hub
Verified signature710b0b5
-
Upload folder using huggingface_hub
Verified signature2575015 -
Upload folder using huggingface_hub
Verified signatureba9fdff
-
Upload folder using huggingface_hub
Verified signature80276c8 -
Upload folder using huggingface_hub
Verified signature4b2e82d
-
Upload folder using huggingface_hub
Verified signature05b2052 -
Upload folder using huggingface_hub
Verified signatureaf349a9 -
Upload folder using huggingface_hub
Verified signature75bf5ed -
Upload folder using huggingface_hub
Verified signature712b352 -
Upload folder using huggingface_hub
Verified signature9591942 -
Upload folder using huggingface_hub
Verified signature472fa3c
-
Update README.md
Verified signaturef53243d -
Update README.md
Verified signature550a865 -
Update README.md
Verified signatureccc6078 -
Update README.md
Verified signature072535f
-
Update README.md
Verified signaturea735595 -
Update README.md
Verified signature0fdcbd7 -
Update README.md
Verified signaturec57febc
-
Update README.md
Verified signaturea449055
-
Update README.md
Verified signatureccc339e
-
Update README.md
Verified signature3e44cc5 -
Update README.md
Verified signature1bbed45 -
Update README.md
Verified signature9108284 -
Update README.md
Verified signature122a1ef -
Update README.md
Verified signature1165597 -
Update README.md
Verified signaturef92cfa6 -
Update README.md
Verified signaturec1d4ea1 -
Update README.md
Verified signature0f3cf67
-
Update modeling_internvl_chat.py
Verified signature784af06
-
Update README.md
Verified signaturefed2e7c -
Upload folder using huggingface_hub
Verified signature9d88fd9