jinaai / jina-embeddings-v4-mlx-8bit

huggingface.co
Total runs: 778
24-hour runs: 0
7-day runs: 216
30-day runs: 700
Model's Last Updated: March 25 2026

Introduction of jina-embeddings-v4-mlx-8bit

Model Details of jina-embeddings-v4-mlx-8bit

jina-embeddings-v4-mlx-8bit

8-bit quantized MLX port of jina-embeddings-v4 for Apple Silicon.

2.57x faster inference, 48% less memory vs the original PyTorch model.

PyTorch (bf16) MLX (8-bit)
Text throughput 11.4 samples/sec 30.3 samples/sec
Image throughput 9.1 samples/sec 22.3 samples/sec
VRAM 8.1 GB 4.2 GB
Precision (cosine vs original) - 0.998

Benchmarked on M3 Ultra, single sample, sequence length 128.

Installation
pip install mlx mlx-lm numpy
Usage
import mlx.core as mx
from huggingface_hub import snapshot_download
from transformers import AutoProcessor

# Download and load
model_dir = snapshot_download("jinaai/jina-embeddings-v4-mlx-8bit")

import sys; sys.path.insert(0, model_dir)
from load_model import load_mlx_model
model = load_mlx_model(model_dir)

# Tokenizer (uses the original v4 processor)
processor = AutoProcessor.from_pretrained("jinaai/jina-embeddings-v4")

# --- Text embedding ---
texts = ["What is machine learning?", "Machine learning is a branch of AI."]
inputs = processor(
    text=["<|im_start|>user\n" + t + "<|im_end|>" for t in texts],
    return_tensors="np",
    padding=True,
    truncation=True,
    max_length=512,
)
text_emb = model.encode_text(
    input_ids=mx.array(inputs["input_ids"]),
    attention_mask=mx.array(inputs["attention_mask"]),
    task="retrieval",
)
mx.eval(text_emb)
print(f"Text embeddings: {text_emb.shape}")  # (2, 2048)

# --- Image embedding ---
from PIL import Image
import requests

url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"
image = Image.open(requests.get(url, stream=True).raw).convert("RGB")

img_inputs = processor(
    text=["<|im_start|>user\n<|vision_start|><|image_pad|><|vision_end|>Describe the image.<|im_end|>"],
    images=[image],
    return_tensors="np",
    padding=True,
)
image_emb = model.encode_image(
    input_ids=mx.array(img_inputs["input_ids"]),
    pixel_values=mx.array(img_inputs["pixel_values"].reshape(-1, img_inputs["pixel_values"].shape[-1])),
    image_grid_thw=[tuple(r) for r in img_inputs["image_grid_thw"]],
    attention_mask=mx.array(img_inputs["attention_mask"]),
    task="retrieval",
)
mx.eval(image_emb)
print(f"Image embedding: {image_emb.shape}")  # (1, 2048)
What's included
  • model.py - Pure MLX model (vision encoder, text encoder, M-RoPE, compiled forward passes)
  • load_model.py - Weight loading with automatic LoRA fusion, 8-bit quantization, QKV/MLP fusion, and mx.compile
  • config.json - Model configuration
  • model-*.safetensors - Pre-quantized weights (3.88 GB)
Optimizations

Applied automatically during loading:

  1. LoRA adapter fusion (retrieval task baked in)
  2. 8-bit quantization (group_size=128)
  3. QKV projection fusion (3 matmuls to 1 per layer)
  4. Gate/up MLP fusion (2 matmuls to 1 per layer)
  5. mx.compile on text and vision forward passes
  6. mx.fast.scaled_dot_product_attention and mx.fast.rope
  7. GPU stream prefetching for pipelined text/image encoding
Precision

Cosine similarity vs PyTorch original outputs:

  • Text: 0.998
  • Image: 0.998

Threshold: 0.990. All optimizations validated against frozen reference embeddings.

Limitations
  • LoRA task is fused at load time (currently retrieval only). Other tasks (text-matching, code) require re-loading with a different task parameter.
  • Requires Apple Silicon Mac with MLX support.
Citation
@misc{günther2025jinaembeddingsv4,
    title={jina-embeddings-v4: Universal Embeddings for Multimodal Multilingual Retrieval}, 
    author={Michael Günther and Saba Sturua and Mohammad Kalim Akram and Isabelle Mohr and Andrei Ungureanu and Sedigheh Eslami and Scott Martens and Bo Wang and Nan Wang and Han Xiao},
    year={2025},
    eprint={2506.18902},
    archivePrefix={arXiv},
    primaryClass={cs.AI},
    url={https://arxiv.org/abs/2506.18902}, 
}

Runs of jinaai jina-embeddings-v4-mlx-8bit on huggingface.co

778
Total runs
0
24-hour runs
42
3-day runs
216
7-day runs
700
30-day runs

More Information About jina-embeddings-v4-mlx-8bit huggingface.co Model

More jina-embeddings-v4-mlx-8bit license Visit here:

https://choosealicense.com/licenses/apache-2.0

jina-embeddings-v4-mlx-8bit huggingface.co

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

jina-embeddings-v4-mlx-8bit huggingface.co Url

https://huggingface.co/jinaai/jina-embeddings-v4-mlx-8bit

jinaai jina-embeddings-v4-mlx-8bit online free

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

jinaai jina-embeddings-v4-mlx-8bit online free url in huggingface.co:

https://huggingface.co/jinaai/jina-embeddings-v4-mlx-8bit

jina-embeddings-v4-mlx-8bit install

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

jina-embeddings-v4-mlx-8bit install url in huggingface.co:

https://huggingface.co/jinaai/jina-embeddings-v4-mlx-8bit

Url of jina-embeddings-v4-mlx-8bit

jina-embeddings-v4-mlx-8bit huggingface.co Url

Provider of jina-embeddings-v4-mlx-8bit 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: 65.8K
Run Growth: -47.6K
Growth Rate: -72.31%
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