This project contains multilingual static embeddings that are appropriate for generating
quick embeddings in edge devices. They are re-packaged from other projects in production
ready assets.
# Install dependencies and login to huggingface:
pipx install huggingface_hub
huggingface-cli login
# Re-build the models:
uv run scripts/build_models.py
# Version control:
git add .
git commit -m 'Model updates'
git push
git tag v1.0.0 -m 'Model release description'
git push origin tag v1.0.0
Precision
For static embeddings and cosine similarity, precision isn't as important. For an end
to end to test in Firefox on some vectors here was the cosine similarity for the same
mean pooled result. Note that the vector math happens in the f32 space, but storage
for the embeddings is in a lower precision.
f32 vs f16: cosine similarity = 1.00000000
→ They are essentially identical in direction.
f32 vs f8: cosine similarity = 0.99956375
→ Very close, only tiny quantization effects.
Note that this was done on the
torch.float8_e4m3fn
, while
torch.float8_e5m2
generally
has more loss.
Precision also affects download size. For instance with larger
minishlab/potion-multilingual-128M/
model. The
fp32
is 228M compressed, while only 51M for
fp8_e4m3
, which has competetive
quantization values.
precision
dimensions
size
fp32
128
228M
fp16
128
114M
fp8_e4m3
128
51M
fp8_e5m2
128
44M
Runs of Mozilla static-embeddings on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About static-embeddings huggingface.co Model
static-embeddings huggingface.co
static-embeddings huggingface.co is an AI model on huggingface.co that provides static-embeddings's model effect (), which can be used instantly with this Mozilla static-embeddings model. huggingface.co supports a free trial of the static-embeddings model, and also provides paid use of the static-embeddings. Support call static-embeddings model through api, including Node.js, Python, http.
static-embeddings huggingface.co is an online trial and call api platform, which integrates static-embeddings's modeling effects, including api services, and provides a free online trial of static-embeddings, you can try static-embeddings online for free by clicking the link below.
Mozilla static-embeddings online free url in huggingface.co:
static-embeddings is an open source model from GitHub that offers a free installation service, and any user can find static-embeddings on GitHub to install. At the same time, huggingface.co provides the effect of static-embeddings install, users can directly use static-embeddings installed effect in huggingface.co for debugging and trial. It also supports api for free installation.