Image-Text-to-Text
Transformers
Safetensors
Vietnamese
English
Chinese
internvl_chat
feature-extraction
conversational
custom_code
Instructions to use 5CD-AI/Vintern-3B-beta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 5CD-AI/Vintern-3B-beta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="5CD-AI/Vintern-3B-beta", trust_remote_code=True) 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 AutoModel model = AutoModel.from_pretrained("5CD-AI/Vintern-3B-beta", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use 5CD-AI/Vintern-3B-beta with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "5CD-AI/Vintern-3B-beta" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "5CD-AI/Vintern-3B-beta", "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/5CD-AI/Vintern-3B-beta
- SGLang
How to use 5CD-AI/Vintern-3B-beta 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 "5CD-AI/Vintern-3B-beta" \ --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": "5CD-AI/Vintern-3B-beta", "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 "5CD-AI/Vintern-3B-beta" \ --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": "5CD-AI/Vintern-3B-beta", "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 5CD-AI/Vintern-3B-beta with Docker Model Runner:
docker model run hf.co/5CD-AI/Vintern-3B-beta
Commit History
-
Fix task tag
Verified signatured1fdb06
-
Update README.md
Verified signature0105177 -
Update README.md
Verified signature07ae416 -
Upload seed_bench_2_plus.png
Verified signature9ef43b4 -
Update README.md
Verified signature8419c41
-
Update README.md
Verified signatureb59098c
-
Upload vmlu_score.png
Verified signature8f04daa
-
Update README.md
Verified signature38ec2e8 -
Update README.md
Verified signature1912243 -
Upload Vintern3B-logo.jpg
Verified signature3356c29 -
Update README.md
Verified signature5e0006c -
Update README.md
Verified signature6e0f101 -
Update README.md
Verified signature954cfcc -
Update README.md
Verified signaturea27bc6b -
Upload ex_6.jpg
Verified signature396decb -
Update README.md
Verified signature1741743 -
Upload ex_4.jpg
Verified signaturee5094b4 -
Update README.md
Verified signatured746118 -
Update README.md
Verified signaturec3361a4 -
Upload ex_3.png
Verified signature49b3e28 -
Upload ex_2.jpg
Verified signatureb494a97 -
Update README.md
Verified signature25243e4 -
Upload ex_1.jpg
Verified signature6258c1e -
Update README.md
Verified signaturefd10dd9
-
Update README.md
Verified signature23dcbc9
-
Update README.md
Verified signature6c7eddd -
Update config.json
Verified signature4b3c5af -
Update README.md
Verified signatured776742 -
Upload radar_chart.png
Verified signature43e7535 -
Update README.md
Verified signaturec60e94f -
Upload vmlu_score.png
Verified signatured366293 -
Update README.md
Verified signature371193b -
Update README.md
Verified signature0647b6b -
Update README.md
Verified signaturefb80d33 -
Upload Vintern3B-logo.jpg
Verified signature269e8a2 -
Update README.md
Verified signature4972cef -
Upload Vintern3B-logo.jpg
Verified signature5391038 -
Update README.md
Verified signaturef764926 -
Update README.md
Verified signature4ee9607 -
Upload vmlu_score.png
Verified signaturefb3746a -
Update README.md
Verified signature79dc579 -
Update README.md
Verified signature0f278fd -
Update README.md
Verified signature9c1902b -
Upload vmlu_score.png
Verified signature4757622 -
Upload model
Verified signature04b52ff -
Upload tokenizer
Verified signatureebe30e5 -
initial commit
Verified signaturea9040a4