huyhoangt2201/gte-multilingual-base-onnx
By huyhoangt2201 · ↓ 0 · ♥ 0 · Updated 2025-08-19
What's in this repo
This page lists the files in huyhoangt2201/gte-multilingual-base-onnx, including model.onnx.
- 1 ONNX models (.onnx files)
- 8 files, including 4 .json, 1 .md, 1 .py, 1 .onnx
- Last updated 2025-08-19
ONNX files
| File | Size | Download |
|---|---|---|
| model.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
gte-multilingual-base (ONNX)
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.
Model Details
- Base model: Alibaba-NLP/gte-multilingual-base
- Format: ONNX
- Opset: 17
- Quantization: (if you applied
--quantize, specify here, e.g.QInt8,Float16, otherwiseNone)
Usage
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)
Model info
Created: 2025-08-19
Updated: 2025-08-19
View on Hugging FaceFiles (8)
Related models
More from huyhoangt2201
More models
No task type declared.