net10.0
A lightweight, zero-configuration neural machine translator for .NET. Supports OPUS-MT models for high-quality bilingual translation. Start small. Download what you need. Run locally.
Published
Aug 9, 2026
2mo ago
Total Downloads
18.8K
18,762
Install
dotnet add package LMSupply.Translator --version 0.39.0
| Product | Versions |
|---|---|
| .NET |
README
LMSupply.Translator
Local neural machine translation for .NET with automatic model downloading.
Features
- Zero-config: Models download automatically from HuggingFace
- GPU Acceleration: CUDA, DirectML (Windows), CoreML (macOS)
- Apache-2.0 Licensed: OPUS-MT models for commercial use
- Asian Languages: Korean, Japanese, Chinese to/from English
Quick Start
using LMSupply.Translator;
// Load a translation model (Korean to English)
await using var translator = await LocalTranslator.LoadAsync("ko-en");
// Translate text
var result = await translator.TranslateAsync("안녕하세요, 반갑습니다.");
Console.WriteLine(result.TranslatedText);
// Output: "Hello, nice to meet you."
Console.WriteLine($"{result.SourceLanguage} → {result.TargetLanguage}");
Available Models
| Alias | Direction | Model | BLEU | Description |
|---|---|---|---|---|
default |
Ko → En | OPUS-MT | 35.5 | Default |
ko-en |
Ko → En | OPUS-MT | 35.5 | Korean to English |
en-ko |
En → Ko | OPUS-MT | 28.0 | English to Korean |
ja-en |
Ja → En | OPUS-MT | 32.0 | Japanese to English |
zh-en |
Zh → En | OPUS-MT | 30.5 | Chinese to English |
GPU Acceleration
# NVIDIA GPU
dotnet add package Microsoft.ML.OnnxRuntime.Gpu
# Windows (AMD/Intel/NVIDIA)
dotnet add package Microsoft.ML.OnnxRuntime.DirectML
Changes from Previous Version
No structural changes between v0.38.1 and v0.39.0.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.