Downloads · 30 days
5
11% of all-time downloads
huyhoangt2201/gte-multilingual-base-onnx
gte-multilingual-base-onnx is a machine learning model from huyhoangt2201. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains the ONNX export of Alibaba-NLP/gte-multilingual-base, a multilingual embedding model.
Downloads · 30 days
5
11% of all-time downloads
All-time downloads
46
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.onnx1.3 GB · 99%
From the Hugging Face model README
This repository contains the ONNX export of Alibaba-NLP/gte-multilingual-base, a multilingual embedding model.
The model was converted from Hugging Face Transformers to ONNX format for faster and lighter inference using ONNX Runtime.
--quantize, specify here, e.g. QInt8, Float16, otherwise None)You can run inference with onnxruntime:
import onnxruntime as ort
from transformers import AutoTokenizer
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("your-username/gte-multilingual-base-onnx")
# Load ONNX model
session = ort.InferenceSession("model.onnx", providers=["CPUExecutionProvider"])
# Encode inputs
text = "Hello, ONNX world!"
inputs = tokenizer(text, return_tensors="np")
# Run inference
outputs = session.run(None, dict(inputs))
print("Model output:", outputs)