Open-source Luxical embeddings classify 5k docs/sec on a laptop CPU at ~1/100th LLM cost

josh_wills · x · 2026-10-29

DatologyAI open-sourced Luxical (Apache-2.0), fast lexical embeddings built on token counts, TF-IDF and compact sparse-to-dense MLPs.

The accompanying discussion pitches a cheap alternative to LLM-based document classification: an open-source embedding model plus a sklearn-style classifier on top is almost always cheaper and more accurate. Benchmarks in the image show Luxical embed + MLP hitting 6,787 docs/s (23.1 MiB/s) on an M4 Max CPU — about 14x the throughput of the FineWebEdu scorer on an A10G GPU (478 docs/s). Luke Merrick adds that a two-layer ReLU net on Luxical embeddings classifies 5k docs/sec on laptop CPUs using OSS only, at 100x lower cost.

Note: the repo is no longer actively maintained and is provided for reproducibility and research.

Original post →

More from coding & agent

coding & agent channel →