Instructions to use funkandlove/scooby-embed-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use funkandlove/scooby-embed-v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("funkandlove/scooby-embed-v1") sentences = [ "那是 個快樂的人", "那是 條快樂的狗", "那是 個非常幸福的人", "今天是晴天" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Scooby Embed v1
A compact Chinese text embedding model. 27M parameters, 512 dimensions, fast on CPU.
On MTEB(cmn, v1) it averages 64.28. As of 2026-11-26, no model under 50M parameters on the public leaderboard scores higher (among models that report their size).
Why we built it. LockAI helps our crew find things: rehearsal notes, choreography descriptions, event records and past conversations. Its server has no GPU, so we needed an embedding model small enough to run on CPU while staying strong on Chinese. Scooby Embed v1 is that model, and we are sharing it in case it is useful to others with similar constraints.
Built by Funk&Love, a locking dance crew, for LockAI.
Results
MTEB(cmn, v1), 31 tasks, evaluated with mteb 2.27.22. The average is the mean of the 31 main scores. Other models' scores are from the public results repository (snapshot of 2026-11-26).
| Model | Params | Avg | Retrieval | Reranking | PairCls | Clustering | STS | Classification |
|---|---|---|---|---|---|---|---|---|
| scooby-embed-v1 | 27M | 64.28 | 64.58 | 66.56 | 79.27 | 54.64 | 55.29 | 74.29 |
| dynasty-ai/tiny-embed-27m | 28M | 59.62 | 62.36 | 65.04 | 68.64 | 48.61 | 47.24 | 71.15 |
| thenlper/gte-small-zh | 30M | 60.05 | 65.51 | 66.21 | 64.87 | 48.95 | 47.29 | 69.32 |
| sensenova/piccolo-base-zh | 51M | 63.43 | 71.20 | 66.68 | 70.17 | 47.12 | 54.39 | 70.05 |
| DMetaSoul/Dmeta-embedding-zh-small | 74M | 66.02 | 67.70 | 66.92 | 81.93 | 50.80 | 61.47 | 73.36 |
We re-ran gte-small-zh with our own pipeline and obtained the same 60.05 average.
Not zero-shot. The training data include the train splits of several benchmark tasks (listed below). No evaluation split was used; see Decontamination.
Per-task scores
gte-small-zh scores in this table are from our own re-run.
| Task | scooby-embed-v1 | gte-small-zh |
|---|---|---|
| T2Retrieval | 77.94 | 78.12 |
| MMarcoRetrieval | 75.57 | 75.01 |
| DuRetrieval | 84.49 | 78.58 |
| CovidRetrieval | 70.24 | 61.62 |
| CmedqaRetrieval | 40.33 | 42.45 |
| EcomRetrieval | 52.29 | 57.89 |
| MedicalRetrieval | 59.20 | 62.65 |
| VideoRetrieval | 56.61 | 67.67 |
| T2Reranking | 66.98 | 65.39 |
| MMarcoReranking | 28.83 | 26.11 |
| CMedQAv1-reranking | 84.76 | 86.08 |
| CMedQAv2-reranking | 85.68 | 87.25 |
| Ocnli | 77.48 | 60.53 |
| Cmnli | 81.07 | 69.20 |
| CLSClusteringS2S | 41.70 | 37.12 |
| CLSClusteringP2P | 46.40 | 39.76 |
| ThuNewsClusteringS2S | 61.27 | 55.71 |
| ThuNewsClusteringP2P | 69.18 | 63.33 |
| LCQMC | 77.15 | 72.72 |
| PAWSX | 32.96 | 12.77 |
| AFQMC | 49.31 | 36.69 |
| QBQTC | 34.50 | 36.97 |
| ATEC | 52.36 | 45.77 |
| BQ | 65.24 | 49.64 |
| STSB | 75.53 | 76.52 |
| TNews | 52.16 | 49.66 |
| IFlyTek | 48.03 | 41.09 |
| Waimai | 87.51 | 84.96 |
| OnlineShopping | 94.28 | 89.15 |
| JDReview | 86.74 | 82.85 |
| MultilingualSentiment | 77.04 | 68.44 |
Usage
No instruction or prefix is needed for queries or documents.
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("funkandlove/scooby-embed-v1")
queries = ["锁舞的基本动作有哪些?"]
docs = ["Locking 的基本动作包括 Lock、Point、Wrist Roll 等。", "今天的排练改到晚上七点。"]
q = model.encode(queries)
d = model.encode(docs)
print(model.similarity(q, d))
Embeddings are L2-normalized, so cosine similarity and dot product are equivalent.
Model details
| Architecture | BERT, 6 layers, hidden size 512, 8 heads |
| Parameters | 26,998,272 |
| Embedding | 512 dimensions, CLS pooling, L2 normalized |
| Max length | 512 tokens |
| Tokenizer | Unchanged from gte-small-zh (14,760 tokens) |
| Language | Chinese |
Training
Scooby Embed v1 starts from thenlper/gte-small-zh and is trained by distillation from richinfoai/ritrieve_zh_v1 (326M parameters, 72.72 on MTEB(cmn, v1)).
Starting point. gte-small-zh's tokenizer has 14,760 tokens, but its embedding matrix has 21,128 rows. The extra 6,368 rows can never be reached by any input. We removed them, which reduces the parameters from 30.3M to 27.0M while keeping the outputs identical (maximum absolute difference 0 on our checks). All 6 layers are kept.
Stage 1: embedding distillation. On 4.55M texts, the student learns the teacher's embeddings. A linear layer maps the student's 512-d output to the teacher's 1,792-d space during training only (cosine loss), and the in-batch similarity distribution of the student is matched to the teacher's (KL, temperature 0.05), which trains the 512-d space directly. The linear layer is not part of the released model. One epoch, batch 256, learning rate 1e-4, 17,777 steps.
Stage 2: retrieval distillation. For each of 639,501 training queries, the teacher selected its top 32 passages from a pool of 3.02M passages. Each step uses 64 queries with 8 candidates each (the teacher's top 1 plus 7 random others), and the student's query-passage score distribution over all candidates in the batch is matched to the teacher's (KL). The stage 1 loss is kept with weight 0.5. Learning rate 5e-5, 9,992 steps.
Both stages ran on a single A100 80GB: teacher encoding took 1h22m, training took 1h49m.
Training data
| Source | Used | Kept | License |
|---|---|---|---|
| T2Ranking | train queries; sampled passages | 257,976 + 746,615 | Apache-2.0 |
| DuReader-retrieval | train queries; sampled passages | 85,693 + 775,412 | Apache-2.0 |
| mMARCO, Chinese | sampled train queries; sampled passages | 295,832 + 586,097 | MS MARCO terms (non-commercial) |
| Wikipedia 20231101.zh | paragraphs, converted to Simplified Chinese | 913,170 | CC BY-SA 3.0 / GFDL |
| C-MTEB train splits of 12 tasks | sentences (no labels used) | 591,720 | per original dataset |
| CLUE CMNLI and OCNLI | train sentences (no labels used) | 298,500 | per original dataset |
| Total | 4,551,015 |
The 12 C-MTEB tasks are TNews, IFlyTek, Waimai, OnlineShopping, JDReview, MultilingualSentiment, LCQMC, AFQMC, BQ, ATEC, PAWSX and STSB. Only texts were used; all training signals come from the teacher.
Decontamination. We collected every text in all non-train splits of the 31 MTEB(cmn, v1) tasks, including queries, retrieval corpora and evaluation sentences (1,588,883 unique texts). Any training text identical to one of them after whitespace normalization was removed (168,043 texts).
Limitations
- Chinese only. English and other languages are not a target.
- The training corpus has no e-commerce, video or medical search data, and retrieval in those domains is below the base model (EcomRetrieval 52.29 vs 57.89, VideoRetrieval 56.61 vs 67.67, MedicalRetrieval 59.20 vs 62.65).
- Inputs longer than 512 tokens are truncated.
- The model inherits the biases of its teacher, base model and training data.
License
CC BY-NC 4.0, because part of the training data is licensed for non-commercial use only. The base model and the teacher are MIT-licensed; their notices are in THIRD_PARTY_NOTICES.md.
Authors
Hofmann88 and kicious, Funk&Love.
@misc{scooby-embed-v1,
title = {Scooby Embed v1: A Compact Chinese Text Embedding Model},
author = {Hofmann88 and kicious},
year = {2026},
howpublished = {\url{https://huggingface.co/funkandlove/scooby-embed-v1}}
}
Please also cite the base model and the teacher:
@article{li2023towards,
title = {Towards General Text Embeddings with Multi-stage Contrastive Learning},
author = {Li, Zehan and Zhang, Xin and Zhang, Yanzhao and Long, Dingkun and Xie, Pengjun and Zhang, Meishan},
journal = {arXiv preprint arXiv:2308.03281},
year = {2023}
}
ritrieve_zh_v1: https://huggingface.co/richinfoai/ritrieve_zh_v1
- Downloads last month
- -
Model tree for funkandlove/scooby-embed-v1
Base model
thenlper/gte-small-zh