net10.0
A simple .NET library for local text embeddings with automatic model downloading from HuggingFace. Supports CUDA, DirectML, and CoreML GPU acceleration.
Published
Aug 9, 2026
2mo ago
Total Downloads
27.8K
27,813
Install
dotnet add package LMSupply.Embedder --version 0.39.0
| Product | Versions |
|---|---|
| .NET |
README
LMSupply.Embedder
Local text embedding for .NET with automatic model downloading.
Features
- Zero-config: Models download automatically from HuggingFace
- GPU Acceleration: CUDA, DirectML (Windows), CoreML (macOS)
- Cross-platform: Windows, Linux, macOS
- Simple API: Just 2 lines of code to get started
Quick Start
using LMSupply.Embedder;
// Load the default model
await using var model = await LocalEmbedder.LoadAsync("default");
// Generate embeddings
float[] embedding = await model.EmbedAsync("Hello, world!");
Console.WriteLine($"Dimensions: {embedding.Length}");
Available Models
| Alias | Model | Dimensions | Description |
|---|---|---|---|
default |
BGE-Small-EN-v1.5 | 384 | Best balance of speed and quality |
fast |
all-MiniLM-L6-v2 | 384 | Ultra-lightweight, fastest |
quality |
BGE-Base-EN-v1.5 | 768 | Higher accuracy |
large |
Nomic-Embed-v1.5 | 768 | 8K context, top performer |
multilingual |
E5-Base | 768 | 100+ languages |
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.