LMSupply.Translator
0.121.0
dotnet add package LMSupply.Translator --version 0.121.0
NuGet\Install-Package LMSupply.Translator -Version 0.121.0
<PackageReference Include="LMSupply.Translator" Version="0.121.0" />
<PackageVersion Include="LMSupply.Translator" Version="0.121.0" />
<PackageReference Include="LMSupply.Translator" />
paket add LMSupply.Translator --version 0.121.0
#r "nuget: LMSupply.Translator, 0.121.0"
#:package LMSupply.Translator@0.121.0
#addin nuget:?package=LMSupply.Translator&version=0.121.0
#tool nuget:?package=LMSupply.Translator&version=0.121.0
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 |
ja-en |
Ja → En | OPUS-MT | 32.0 | Japanese to English |
zh-en |
Zh → En | OPUS-MT | 30.5 | Chinese to English |
GPU Acceleration
Do not add ONNX Runtime packages (Microsoft.ML.OnnxRuntime*): LMSupply provisions the runtime itself, and a
second copy conflicts with it. ExecutionProvider.Auto uses CUDA when the driver supports CUDA 13 and the CUDA 13
runtime and cuDNN 9 are installed on the machine (ONNX Runtime 1.30 is built for CUDA 13), CoreML on macOS, and the CPU otherwise. On Windows with an AMD or Intel GPU, ONNX
sessions run on the CPU (DirectML was removed in 0.67.0). See
GPU acceleration.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- LMSupply.Core (= 0.121.0)
- LMSupply.Text.Core (= 0.121.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.121.0 | 0 | 10/14/2026 |
| 0.120.0 | 58 | 10/12/2026 |
| 0.119.0 | 58 | 10/12/2026 |
| 0.118.0 | 69 | 10/11/2026 |
| 0.117.1 | 62 | 10/11/2026 |
| 0.117.0 | 61 | 10/11/2026 |
| 0.116.0 | 59 | 10/11/2026 |
| 0.115.1 | 76 | 10/8/2026 |
| 0.115.0 | 65 | 10/8/2026 |
| 0.114.0 | 70 | 10/8/2026 |
| 0.113.0 | 64 | 10/8/2026 |
| 0.112.1 | 68 | 10/7/2026 |
| 0.112.0 | 66 | 10/7/2026 |
| 0.111.0 | 63 | 10/7/2026 |
| 0.110.1 | 76 | 10/7/2026 |
| 0.110.0 | 72 | 10/7/2026 |
| 0.109.1 | 72 | 10/7/2026 |
| 0.109.0 | 85 | 10/7/2026 |
| 0.108.0 | 87 | 10/6/2026 |
| 0.107.0 | 95 | 10/6/2026 |