AI Data Storage Engine
No Python, No Problem: Model Inference with ONNX in Java, or Any Other Language

No Python, No Problem: Model Inference with ONNX in Java, or Any Other Language

5/30/2025 · Stefan Webb

What this post added

This post introduces the use of ONNX for exporting neural network models (including embedding models) and their tokenizers from Python to formats usable in other languages like Java. It provides a workflow for converting HuggingFace models to ONNX, including handling pooling and normalization layers, and demonstrates how to perform inference using ONNX Runtime in Java. This enables the integration of Milvus with AI models deployed in non-Python environments, addressing production constraints.

Read the original post ↗