LMSupply.Translator
0.115.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package LMSupply.Translator --version 0.115.0
NuGet\Install-Package LMSupply.Translator -Version 0.115.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LMSupply.Translator" Version="0.115.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LMSupply.Translator" Version="0.115.0" />
<PackageReference Include="LMSupply.Translator" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LMSupply.Translator --version 0.115.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LMSupply.Translator, 0.115.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LMSupply.Translator@0.115.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LMSupply.Translator&version=0.115.0
#tool nuget:?package=LMSupply.Translator&version=0.115.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 CUDA 12 runtime and cuDNN 9 are
installed on the machine, 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- LMSupply.Core (>= 0.115.0)
- LMSupply.Text.Core (>= 0.115.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.115.1 | 0 | 10/8/2026 |
| 0.115.0 | 0 | 10/8/2026 |
| 0.114.0 | 44 | 10/8/2026 |
| 0.113.0 | 39 | 10/8/2026 |
| 0.112.1 | 46 | 10/7/2026 |
| 0.112.0 | 43 | 10/7/2026 |
| 0.111.0 | 38 | 10/7/2026 |
| 0.110.1 | 52 | 10/7/2026 |
| 0.110.0 | 50 | 10/7/2026 |
| 0.109.1 | 51 | 10/7/2026 |
| 0.109.0 | 62 | 10/7/2026 |
| 0.108.0 | 74 | 10/6/2026 |
| 0.107.0 | 83 | 10/6/2026 |
| 0.106.1 | 81 | 10/5/2026 |
| 0.106.0 | 87 | 10/5/2026 |
| 0.105.2 | 88 | 10/4/2026 |
| 0.105.1 | 86 | 10/4/2026 |
| 0.105.0 | 90 | 10/4/2026 |
| 0.104.0 | 99 | 10/3/2026 |
| 0.103.0 | 81 | 10/3/2026 |
Loading failed