Download README.md from M31-Labs/eos-embed-suite: direct link, hf CLI and curl.
- Browser
- Download file 4.03 kB
-
https://huggingface.co/M31-Labs/eos-embed-suite/resolve/main/README.md
- Command line
-
hf download hf://M31-Labs/eos-embed-suite/README.md
-
curl -L -o README.md https://huggingface.co/M31-Labs/eos-embed-suite/resolve/main/README.md
license: apache-2.0
language:
- code
- en
tags:
- code-retrieval
- embeddings
- matryoshka
- turboquant
- quantized
- eos
- corkscrewdb
library_name: eos
m31labs/eos-embed-suite (v1.0.0)
Ultra-compact, deterministic, Apache-2.0 code-retrieval embedders sealed as standalone .mll packages (XPBT / XSTE) with Matryoshka truncation and TurboQuant 4-bit vector search support for Eos and CorkscrewDB.
Zero Python runtime, zero external vector server, and zero CGO required at inference time (eos Plan 9 AVX2+FMA CPU kernels included).
Released Artifacts
| Alias | File | Size | Format | Native Dim | Matryoshka | SHA-256 |
|---|---|---|---|---|---|---|
eos-embed-mini-3l-q8 |
eos-embed-mini-3l-q8.mll |
18.39 MiB |
Sealed XPBT (3L BERT Q8 + TQ4 QAT) |
384 |
64, 128, 256, 384 |
2db85a90e520036688be907331dccf1d0020c85f1fc01feac32e32e7a323c3c9 |
eos-embed-static-256-q8 |
eos-embed-static-256-q8.mll |
39.36 MiB |
Sealed XSTE (ByteLevel BPE SIF Q8) |
256 |
64, 128, 256 |
6538182718428c5aa34477de90b729827a4a05c7afcee4c8594224c5a15df2df |
Held-Out Multi-Language Code Retrieval Scorecard
Evaluated on 64 held-out code functions and 48 natural-language/code queries across Go, Python, TypeScript, and Rust running pure-CPU (CGO_ENABLED=0, AVX2+FMA on Intel Core Ultra 9 285):
| Model | Dim | Exact nDCG@10 | TQ4 nDCG@10 | TQ4 Retention | Hybrid BM25F nDCG@10 | Hybrid R@5 | Index Speed (CPU) | Query Encode (CPU) | TQ4 Search |
|---|---|---|---|---|---|---|---|---|---|
eos-embed-static-256-q8 |
256 |
0.8885 |
0.8491 |
95.6% |
0.9413 |
1.0000 |
2,462.5 docs/s |
0.017 ms |
48.9 µs |
eos-embed-mini-3l-q8 |
384 |
0.8134 |
0.8186 |
100.6% |
0.9318 |
0.9792 |
20.8 docs/s |
8.152 ms |
87.9 µs |
eos-embed-mini-3l-q8 |
128 |
0.7435 |
0.7348 |
98.8% |
0.9190 |
0.9583 |
20.3 docs/s |
8.506 ms |
28.9 µs |
eos-embed-mini-3l-q8 |
64 |
0.6890 |
0.6725 |
97.6% |
0.9027 |
0.9271 |
20.4 docs/s |
8.428 ms |
14.8 µs |
arctic-xs-q8 (6L baseline) |
384 |
0.9399 |
0.9483 |
100.9% |
0.9753 |
1.0000 |
10.4 docs/s |
20.481 ms |
67.7 µs |
Notice how 128d TQ4 (64 bytes/vec) and 64d TQ4 (32 bytes/vec) on eos-embed-mini-3l-q8 retain 98.8% / 97.6% of full-precision retrieval quality and hit 0.919 / 0.903 nDCG@10 when fused with CorkscrewDB's code-aware BM25F, while eos-embed-static-256-q8 indexes real repositories at > 2,400 docs/s on CPU (0.39s to cold-index 1,756 AST chunks across 163 files).
Quickstart
CLI (eos)
# Download sealed .mll models cleanly into ~/.eos/models
eos pull eos-embed-static-256-q8
eos pull eos-embed-mini-3l-q8
# Instant local semantic + BM25F code search over any repository (no server needed)
eos search-code --model eos-embed-static-256-q8 --tq 4 "fastscan 4-bit ADC inner product"
eos search-code --model eos-embed-mini-3l-q8 --dim 128 --tq 4 "block hadamard rotation"
# Raw embedding vector output (supports Matryoshka --dim truncation)
eos embed --model eos-embed-mini-3l-q8 --dim 128 --json "wrap non-nil errors with fmt.Errorf"
Embedded Go SDK (CorkscrewDB)
package main
import (
"fmt"
"m31labs.dev/corkscrewdb"
)
func main() {
// Uses eos-embed-mini-3l-q8 truncated to 128 dims (64 bytes/vec under TQ4)
prov, err := corkscrewdb.OpenEosMini3LProvider("", corkscrewdb.WithOutputDim(128))
if err != nil {
panic(err)
}
defer prov.Close()
db, err := corkscrewdb.Open("./repo-memory.db", corkscrewdb.WithProvider(prov))
if err != nil {
panic(err)
}
defer db.Close()
coll := db.Collection("code", corkscrewdb.WithBitWidth(4), corkscrewdb.WithAutoBM25())
_ = coll
fmt.Printf("Opened CorkscrewDB collection with %d-dim TurboQuant 4-bit vectors\n", prov.Dim())
}
License
Apache-2.0 (see LICENSE).