Skip to main content Switch to mobile version Pre-release This release is a pre-release and may not be stable for production use.
CPU-first language technology models on ONNX Runtime: language identification and machine translation, with no torch at runtime
pip install linguonnx==0.27.0a1 Copy PIP instructions
Language identification and machine translation on CPU, with ONNX Runtime and no torch.
linguonnx.detect identifies the language of a text with ONNX exports of four fastText classifiers: GlotLID, lid.176, OpenLID and OpenLID-v2.
linguonnx.translate translates with Marian (opus-mt), M2M100, NLLB-200 and MADLAD exports. A routing graph selects the model, or the chain of models, for a language pair.
pip install linguonnx Quickstart
from linguonnx import load_detector, load_translator det = load_detector() # glotlid-int8, 425 MB on first use print(det.detect("Egun on, zer moduz?")) # 'eu' print(det.detect("وش لونك يا خوي", collapse_varieties=True)) # 'ar' tx = load_translator() print(tx.translate("bom dia, como estás?", src="pt", tgt="en")) # 'Good morning, how are you?' route = tx.route("pt", "eu", prefer="dedicated") print(route.model_ids) # ('aina-translator-pt-ca-int8', 'mt-hitz-ca-eu-int8') print(route.pivots) # ('ca',) A pair that no single model covers goes through a third language. The Route shows each model and each pivot language.
linguonnx is Apache-2.0. Some models have other licences: OpenLID is GPL-3.0, and NLLB-200 is CC-BY-NC-4.0. The default translation graph has no non-commercial model. See docs/licences.md.
Released: Dec 4, 2026
Apache Software License (Apache-2.0)
distance indic opennmt fast-tokenizers rules cpu gpu test
License OSI Approved :: Apache Software License
Operating System OS Independent
Programming Language Python :: 3
Topic Text Processing :: Linguistic
Release files for linguonnx 0.27.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 528.3 kB
Release files / linguonnx-0.27.0a1.tar.gz
Release files / linguonnx-0.27.0a1-py3-none-any.whl
Security for linguonnx 0.27.0a1
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 5, 2026 2 release files No provenance
0.27.0a1 This release
Dec 4, 2026 2 release files No provenance
Dec 3, 2026 2 release files No provenance
Dec 2, 2026 2 release files No provenance
Nov 29, 2026 2 release files No provenance
Nov 28, 2026 2 release files No provenance
Nov 27, 2026 2 release files No provenance
Nov 26, 2026 2 release files No provenance
Nov 15, 2026 2 release files No provenance
Nov 6, 2026 2 release files No provenance
Nov 5, 2026 2 release files No provenance
Nov 4, 2026 2 release files No provenance
Nov 3, 2026 2 release files No provenance
Nov 2, 2026 2 release files No provenance
Sep 23, 2026 2 release files No provenance
Sep 18, 2026 2 release files No provenance
Sep 17, 2026 2 release files No provenance
Sep 1, 2026 2 release files No provenance
Aug 10, 2026 2 release files No provenance
Aug 4, 2026 2 release files No provenance
Aug 3, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 4d99e05











