Language models/Hugging Face/Model

all-MiniLM-L6-v2

by Xenova·Last observed 2026-10-26
♥ 174 likes↓ 4.3M 30d downloads

Xenova/all-MiniLM-L6-v2 is an ONNX-weight model checkpoint for Transformers.js that computes sentence embeddings. The supplied example installs the JavaScript library, creates a feature-extraction pipeline, and returns mean-pooled, normalized embeddings for input sentences.

Useful for

  • Create embeddings for a pair of sentences in a JavaScript application using Transformers.js.

Key features

  • It computes sentence embeddings through a Transformers.js feature-extraction pipeline.
  • The example supports mean pooling and vector normalization, with output convertible to nested JavaScript arrays.

Requirements & limitations

  • Install the `@huggingface/transformers` NPM package before using the supplied JavaScript example.

Project information

CategoryLanguage models
TypeModel
Author / organizationXenova
Licenseapache-2.0
Last observed2026-10-26

Discussion

No comments yet.

Sign in with Google to comment. Browsing is open to everyone.

Community vote