ONNX Model Zoo

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


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

onnx new custom_code region:us
↓ 0 ♥ 0

Created: 2025-08-19

Updated: 2025-08-19

View on Hugging Face

Files (8)

.gitattributes
README.md
config.json
configuration.py
model.onnx ONNX
special_tokens_map.json
tokenizer.json
tokenizer_config.json

Related models