Image-Text-to-Text
Transformers
Safetensors
English
internvl
viewsuite
view-planning
active-perception
camera-control
embodied-ai
vision-language-model
reinforcement-learning
conversational
Instructions to use MLL-Lab/VGD-InternVL3-8B-ScanNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MLL-Lab/VGD-InternVL3-8B-ScanNet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="MLL-Lab/VGD-InternVL3-8B-ScanNet") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("MLL-Lab/VGD-InternVL3-8B-ScanNet") model = AutoModelForMultimodalLM.from_pretrained("MLL-Lab/VGD-InternVL3-8B-ScanNet", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MLL-Lab/VGD-InternVL3-8B-ScanNet with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MLL-Lab/VGD-InternVL3-8B-ScanNet" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MLL-Lab/VGD-InternVL3-8B-ScanNet", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/MLL-Lab/VGD-InternVL3-8B-ScanNet
- SGLang
How to use MLL-Lab/VGD-InternVL3-8B-ScanNet 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 "MLL-Lab/VGD-InternVL3-8B-ScanNet" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MLL-Lab/VGD-InternVL3-8B-ScanNet", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "MLL-Lab/VGD-InternVL3-8B-ScanNet" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MLL-Lab/VGD-InternVL3-8B-ScanNet", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use MLL-Lab/VGD-InternVL3-8B-ScanNet with Docker Model Runner:
docker model run hf.co/MLL-Lab/VGD-InternVL3-8B-ScanNet
Download SHA256SUMS from MLL-Lab/VGD-InternVL3-8B-ScanNet: direct link, hf CLI and curl.
- Browser
- Download file 904 Bytes
-
https://huggingface.co/MLL-Lab/VGD-InternVL3-8B-ScanNet/resolve/main/SHA256SUMS
- Command line
-
hf download hf://MLL-Lab/VGD-InternVL3-8B-ScanNet/SHA256SUMS
-
curl -L -o SHA256SUMS https://huggingface.co/MLL-Lab/VGD-InternVL3-8B-ScanNet/resolve/main/SHA256SUMS
904 Bytes
| 8aff84e2629edb092f195c1d91bc368d8bb40eeb5fcedce2df19e405ee2cc876 LICENSE | |
| 8f03d25fbcffafa2254d4d1414bf2a38423a966006b4a6964ee21f728d610bff LICENSE-InternVL-MIT | |
| 4c4cd166377d0e3e76b270a7e1ba5c0ea834c6304d3d23b298b1711bd49554f0 NOTICE | |
| 12da4fe9e450de07873d39bf7253c66c248efd854f0d3881e1252b9554f2d68c README.md | |
| b3e3fa7cdeceec1d3dfe0d17b77724baf3857714e688f3a700261567e96140eb chat_template.jinja | |
| 89ae63617a10055d900af2fe3a125e9a1f7cabe30bbeca0d61e07cb34f7bbd3b config.json | |
| 1d48a6bc0b88930087c763dfd7d22a7de1835fb027c499dfaaaf00e5815d2dcb generation_config.json | |
| e893ec24d3f74e67fd4e61641f68246664a47698a76de6e492281f4802493ec2 model.safetensors | |
| e6c43a0255b748883485531a22936ca3b770348ddd6afbae2cdc51ac505ae7c3 processor_config.json | |
| fd0c8be238c81a5f0450067d9565e16794aef2699df631fcf3dd0c2ac4842b06 tokenizer.json | |
| c8a6d7b051ec07a08050eb666974a7c4891909592724095645bddf8a5f41260c tokenizer_config.json | |