jinaai / jina-embeddings-v4-vllm-code

huggingface.co
Total runs: 54
24-hour runs: 0
7-day runs: 6
30-day runs: 29
Model's Last Updated: August 19 2025
visual-document-retrieval

Introduction of jina-embeddings-v4-vllm-code

Model Details of jina-embeddings-v4-vllm-code



Jina AI: Your Search Foundation, Supercharged!

The embedding model trained by Jina AI .

Jina Embeddings v4: Universal Embeddings for Multimodal Multilingual Retrieval

Original Model | Blog | Technical Report | API

Model Overview

This repository hosts a vLLM-compatible version of jina-embeddings-v4 with the code adapter merged into the base Qwen2.5-VL weights. This architecture modification enables native compatibility with vLLM without requiring custom adapter-handling code.

Usage
import torch
from PIL import Image

from vllm import LLM
from vllm.config import PoolerConfig
from vllm.inputs.data import TextPrompt

# Initialize model
model = LLM(
    model="jinaai/jina-embeddings-v4-vllm-code",
    task="embed",
    override_pooler_config=PoolerConfig(pooling_type="ALL", normalize=False),
    dtype="float16",
)

# Create text prompts
query =query = "Find a function that prints a greeting message to the console"
query_prompt = TextPrompt(
    prompt=f"Query: {query}"
)

passage = "def hello_world():\n    print('Hello, World!')"
passage_prompt = TextPrompt(
    prompt=f"Passage: {passage}"
)

# Create image prompt
image = Image.open("<path_to_image>")
image_prompt = TextPrompt(
    prompt="<|im_start|>user\n<|vision_start|><|image_pad|><|vision_end|>Describe the image.<|im_end|>\n",
    multi_modal_data={"image": image},
)

# Encode all prompts
prompts = [query_prompt, passage_prompt, image_prompt]
outputs = model.encode(prompts)


def get_embeddings(outputs):
    VISION_START_TOKEN_ID, VISION_END_TOKEN_ID = 151652, 151653

    embeddings = []
    for output in outputs:
        if VISION_START_TOKEN_ID in output.prompt_token_ids:
            # Gather only vision tokens
            img_start_pos = torch.where(
                torch.tensor(output.prompt_token_ids) == VISION_START_TOKEN_ID
            )[0][0]
            img_end_pos = torch.where(
                torch.tensor(output.prompt_token_ids) == VISION_END_TOKEN_ID
            )[0][0]
            embeddings_tensor = output.outputs.data.detach().clone()[
                img_start_pos : img_end_pos + 1
            ]
        else:
            # Use all tokens for text-only prompts
            embeddings_tensor = output.outputs.data.detach().clone()
        
        # Pool and normalize embeddings
        pooled_output = (
            embeddings_tensor.sum(dim=0, dtype=torch.float32)
            / embeddings_tensor.shape[0]
        )
        embeddings.append(torch.nn.functional.normalize(pooled_output, dim=-1))
    return embeddings

embeddings = get_embeddings(outputs)

Runs of jinaai jina-embeddings-v4-vllm-code on huggingface.co

54
Total runs
0
24-hour runs
5
3-day runs
6
7-day runs
29
30-day runs

More Information About jina-embeddings-v4-vllm-code huggingface.co Model

More jina-embeddings-v4-vllm-code license Visit here:

https://choosealicense.com/licenses/cc-by-nc-4.0

jina-embeddings-v4-vllm-code huggingface.co

jina-embeddings-v4-vllm-code huggingface.co is an AI model on huggingface.co that provides jina-embeddings-v4-vllm-code's model effect (), which can be used instantly with this jinaai jina-embeddings-v4-vllm-code model. huggingface.co supports a free trial of the jina-embeddings-v4-vllm-code model, and also provides paid use of the jina-embeddings-v4-vllm-code. Support call jina-embeddings-v4-vllm-code model through api, including Node.js, Python, http.

jina-embeddings-v4-vllm-code huggingface.co Url

https://huggingface.co/jinaai/jina-embeddings-v4-vllm-code

jinaai jina-embeddings-v4-vllm-code online free

jina-embeddings-v4-vllm-code huggingface.co is an online trial and call api platform, which integrates jina-embeddings-v4-vllm-code's modeling effects, including api services, and provides a free online trial of jina-embeddings-v4-vllm-code, you can try jina-embeddings-v4-vllm-code online for free by clicking the link below.

jinaai jina-embeddings-v4-vllm-code online free url in huggingface.co:

https://huggingface.co/jinaai/jina-embeddings-v4-vllm-code

jina-embeddings-v4-vllm-code install

jina-embeddings-v4-vllm-code is an open source model from GitHub that offers a free installation service, and any user can find jina-embeddings-v4-vllm-code on GitHub to install. At the same time, huggingface.co provides the effect of jina-embeddings-v4-vllm-code install, users can directly use jina-embeddings-v4-vllm-code installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

jina-embeddings-v4-vllm-code install url in huggingface.co:

https://huggingface.co/jinaai/jina-embeddings-v4-vllm-code

Url of jina-embeddings-v4-vllm-code

jina-embeddings-v4-vllm-code huggingface.co Url

Provider of jina-embeddings-v4-vllm-code huggingface.co

jinaai
ORGANIZATIONS

Other API from jinaai

huggingface.co

Total runs: 80.9K
Run Growth: -29.0K
Growth Rate: -35.91%
Updated:April 08 2026
huggingface.co

Total runs: 72.8K
Run Growth: -151.6K
Growth Rate: -208.22%
Updated:August 20 2026
huggingface.co

Total runs: 68.2K
Run Growth: -45.2K
Growth Rate: -66.25%
Updated:April 08 2026
huggingface.co

Total runs: 3.1K
Run Growth: 1.7K
Growth Rate: 54.06%
Updated:September 18 2026
huggingface.co

Total runs: 1.5K
Run Growth: 378
Growth Rate: 25.82%
Updated:March 04 2025
huggingface.co

Total runs: 1.3K
Run Growth: 785
Growth Rate: 61.81%
Updated:April 03 2026
huggingface.co

Total runs: 271
Run Growth: 16
Growth Rate: 5.90%
Updated:December 17 2025