Downloads · 30 days
8
15% of all-time downloads
mmahdi-sz/jina-embeddings-v3-ort
jina-embeddings-v3-ort is a feature extraction model from mmahdi-sz. Use it when you need embeddings to search or compare text. It is set up for onnx. The card lists the license as cc-by-nc-4.0.
This repository provides the official ONNX export files of jinaai/jina-embeddings-v3 (570M parameters, multilingual XLM-RoBERTa + 5 task-specific LoRA adapters) optimized and verified for standalone Rust inference via…
Downloads · 30 days
8
15% of all-time downloads
All-time downloads
55
Public
Repo size
2.3 GB
Likes
0
Public
Click a slice to open those files.
.onnx_data2.3 GB · 99%
From the Hugging Face model README
This repository provides the official ONNX export files of jinaai/jina-embeddings-v3 (570M parameters, multilingual XLM-RoBERTa + 5 task-specific LoRA adapters) optimized and verified for standalone Rust inference via the jina-embeddings-v3-ort crate.
Attribution & Licensing: This repository is a companion ONNX mirror of the official model developed and published by Jina AI. The underlying model weights remain strictly licensed under the original CC-BY-NC-4.0 license by Jina AI. Full credit belongs to the Jina AI team.
task_id input tensor during inference.| Task Name | task_id | Intended NLP Domain |
|---|---|---|
retrieval.query | 0 | Asymmetric search queries |
retrieval.passage | 1 | Asymmetric document / passage indexing |
separation | 2 | Clustering, re-ranking, and category separation |
classification | 3 | Downstream text classification |
text-matching | 4 | Semantic textual similarity (STS) |
This ONNX model has been comprehensively verified against the official PyTorch AutoModel and Python reference implementation:
min_cosine = 0.99999893, mean_cosine = 1.00000005, max_diff = 4.32e-6)Use the companion Rust crate jina-embeddings-v3-ort:
use std::path::Path;
use jina_embeddings_v3_ort::{JinaEmbedder, JinaTask};
fn main() -> anyhow::Result<()> {
let model_path = Path::new("onnx/model.onnx");
let tokenizer_path = Path::new("tokenizer.json");
let embedder = JinaEmbedder::new(model_path, tokenizer_path)?;
// Single text embedding (1024-dim, float32, normalized)
let text = "ربات تلگرام دانلود خودکار ویدیو";
let embedding = embedder.embed(text, JinaTask::TextMatching)?;
assert_eq!(embedding.len(), 1024);
// Batched embedding
let texts = &["Rust web microservice", "React frontend dashboard"];
let batch = embedder.embed_batch(texts, JinaTask::RetrievalPassage)?;
assert_eq!(batch.len(), 2);
Ok(())
}
onnx/model.onnx: ONNX computation graph definition.onnx/model.onnx_data: External ONNX weight tensor storage (~2.29 GB).tokenizer.json: XLM-RoBERTa tokenizer vocabulary and merge rules.tokenizer_config.json: Tokenizer configuration.special_tokens_map.json: Special token definitions.config.json: Original model configuration with lora_adaptations mapping.