Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

jinaai
/
jina-vlm

Image-Text-to-Text
Transformers
Safetensors
jvlm
text-generation
multimodal
vlm
vision-language
qwen3
siglip2
conversational
custom_code
🇪🇺 Region: EU
Model card Files Files and versions
xet
Community
6

Instructions to use jinaai/jina-vlm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use jinaai/jina-vlm with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="jinaai/jina-vlm", 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)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("jinaai/jina-vlm", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use jinaai/jina-vlm with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "jinaai/jina-vlm"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "jinaai/jina-vlm",
    		"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/jinaai/jina-vlm
  • SGLang

    How to use jinaai/jina-vlm 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 "jinaai/jina-vlm" \
        --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": "jinaai/jina-vlm",
    		"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 "jinaai/jina-vlm" \
            --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": "jinaai/jina-vlm",
    		"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 jinaai/jina-vlm with Docker Model Runner:

    docker model run hf.co/jinaai/jina-vlm
jina-vlm
Ctrl+K
Ctrl+K
  • 4 contributors
History: 9 commits
gmastrapas's picture
gmastrapas
Model update
4586ed4 verified 6 months ago
  • assets
    Model update 6 months ago
  • .gitattributes
    1.71 kB
    Model update 6 months ago
  • README.md
    28.1 kB
    Model update 6 months ago
  • added_tokens.json
    9.81 kB
    Model update 6 months ago
  • blocks_jvlm.py
    49.9 kB
    Model update 6 months ago
  • chat_template.jinja
    866 Bytes
    Model update 6 months ago
  • config.json
    5.44 kB
    Model update 6 months ago
  • configuration_jvlm.py
    24.8 kB
    Model update 6 months ago
  • generation_config.json
    147 Bytes
    Model update 6 months ago
  • image_processing_jvlm.py
    43.6 kB
    Model update 6 months ago
  • merges.txt
    1.67 MB
    Model update 6 months ago
  • model-00001-of-00003.safetensors
    4.9 GB
    xet
    Model update 6 months ago
  • model-00002-of-00003.safetensors
    3.78 GB
    xet
    Model update 6 months ago
  • model-00003-of-00003.safetensors
    1.24 GB
    xet
    Model update 6 months ago
  • model.safetensors.index.json
    61.5 kB
    Model update 6 months ago
  • modeling_jvlm.py
    23.7 kB
    Model update 6 months ago
  • preprocessor_config.json
    1.36 kB
    Model update 6 months ago
  • processing_jvlm.py
    20.9 kB
    Model update 6 months ago
  • processor_config.json
    156 Bytes
    Model update 6 months ago
  • special_tokens_map.json
    7.8 kB
    Model update 6 months ago
  • test_jvlm.py
    18.1 kB
    Model update 6 months ago
  • tokenizer.json
    11.5 MB
    xet
    Model update 6 months ago
  • tokenizer_config.json
    63.6 kB
    Model update 6 months ago
  • vocab.json
    2.78 MB
    Model update 6 months ago