jkrukowski/swift-embeddings
Run embedding models locally in Swift using MLTensor.
Supports multiple transformer architectures (BERT, RoBERTa, XLM-RoBERTa, ModernBERT, CLIP) and lightweight embedding models (Word2Vec, Model2Vec) with configurable weight loading and batch processing via the MLTensor framework. Models load directly from Hugging Face with optional key transformations to handle architecture-specific weight naming conventions. Includes a command-line interface and integrates with MLTensorUtils for operations like cosine distance computation on encoded tensors.
139 stars.
Stars
139
Forks
19
Language
Swift
License
MIT
Category
Last pushed
Feb 07, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/embeddings/jkrukowski/swift-embeddings"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
FlagOpen/FlagEmbedding
Retrieval and Retrieval-augmented LLMs
Blaizzy/mlx-embeddings
MLX-Embeddings is the best package for running Vision and Language Embedding models locally on...
qdrant/fastembed
Fast, Accurate, Lightweight Python library to make State of the Art Embedding
Merck/Sapiens
Sapiens is a human antibody language model based on BERT.
amansrivastava17/embedding-as-service
One-Stop Solution to encode sentence to fixed length vectors from various embedding techniques