Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
MNN-format conversion of
BAAI/bge-small-en-v1.5
for use in on-device inference via the MNN runtime (Android / Linux / iOS). Produced for TokForge to consolidate embedding + LLM inference on a single runtime and remove a GGUF/llama.cpp dependency for RAG and memory/reflection embeddings.
Model details
Base model:
BAAI/bge-small-en-v1.5
(BERT encoder, 33M params)
Synthetic retrieval benchmark over 300 chunks + 20 gold queries drawn from an internal infra documentation corpus. GGUF baseline ran via
llama.cpp llama-embedding
against the standard BAAI
bge-small-en-v1.5.Q*_K_M.gguf
. Both models use CLS pooling + L2 normalization and the BGE query prefix
"Represent this sentence for searching relevant passages: "
.
Metric
GGUF (baseline)
MNN fp16
Ratio
Recall@1
70.0%
70.0%
100%
Recall@3
75.0%
75.0%
100%
Recall@5
85.0%
85.0%
100%
Recall@10
95.0%
95.0%
100%
MRR
0.7659
0.7653
99.9%
Mean gold-chunk cos sim
0.7646
0.7654
—
Cross-model per-chunk cosine similarity:
mean 0.9962, 5th-percentile 0.9948. The MNN fp16 conversion produces essentially the same embedding subspace as the PyTorch/ONNX reference (cosine 1.0000 vs
sentence-transformers
on sanity checks). There is no measurable retrieval regression.
Inputs / outputs
Input tensors (int32):
input_ids
: shape
(batch, seq)
attention_mask
: shape
(batch, seq)
token_type_ids
: shape
(batch, seq)
, all zeros for single-text embedding
Output tensor (fp32 on CPU):
last_hidden_state
: shape
(batch, seq, 384)
—
Caffe/NCHW layout
(use
Tensor_DimensionType_Caffe
when copying to host).
To get a sentence embedding: take position 0 (CLS token), then L2 normalize.
Source weights are Copyright 2023 Beijing Academy of Artificial Intelligence, MIT-licensed. This conversion contains no novel weights — the ONNX graph from the source repo was re-serialized into MNN's binary format with fp16 weight compression.
Runs of darkmaniac7 bge-small-en-MNN on huggingface.co
24.9K
Total runs
14
24-hour runs
312
3-day runs
1.1K
7-day runs
-1.3K
30-day runs
More Information About bge-small-en-MNN huggingface.co Model
bge-small-en-MNN huggingface.co is an AI model on huggingface.co that provides bge-small-en-MNN's model effect (), which can be used instantly with this darkmaniac7 bge-small-en-MNN model. huggingface.co supports a free trial of the bge-small-en-MNN model, and also provides paid use of the bge-small-en-MNN. Support call bge-small-en-MNN model through api, including Node.js, Python, http.
bge-small-en-MNN huggingface.co is an online trial and call api platform, which integrates bge-small-en-MNN's modeling effects, including api services, and provides a free online trial of bge-small-en-MNN, you can try bge-small-en-MNN online for free by clicking the link below.
darkmaniac7 bge-small-en-MNN online free url in huggingface.co:
bge-small-en-MNN is an open source model from GitHub that offers a free installation service, and any user can find bge-small-en-MNN on GitHub to install. At the same time, huggingface.co provides the effect of bge-small-en-MNN install, users can directly use bge-small-en-MNN installed effect in huggingface.co for debugging and trial. It also supports api for free installation.