alt.freeweights.embed / harrier-oss-v1-270m-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.embedSubject:

harrier-oss-v1-270m-ONNX

Date: 2026-11-15Commit: d59c919Signed: 2DC28CC7B26A283B ✓

Feature extraction model. Onnx weights, 2.40 GB in all. Published by onnx-community under MIT.

embed2.40GBharrier-oss-v1-270m-ONNXonnxpermissive
FactsParamsnot statedSize2.40 GBFormatsonnxTaskfeature extractionLicenseMITFrom sourcepermissive
$ fw get onnx-community/harrier-oss-v1-270m-ONNX
# manifest sha256 4c850e975394… · 2.40 GB · 15 files
$ fw verify ./harrier-oss-v1-270m-ONNX onnx-community/harrier-oss-v1-270m-ONNX
From sourceHosted (signed)onnx-community/harrier-oss-v1-270m-ONNXLast check: 2026-11-15 05:00 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of harrier-oss-v1-270m.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Evaluate with

Scan with

Overview

Size
2.40 GB
Weights
172 MB (smallest of 5 ONNX variants)
Parameters
not stated
Formats
onnx
Task
feature extraction
License
MIT (permissive)
Files
15, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.embed
Lineage

Original release from the publisher.

Base model: microsoft/harrier-oss-v1-270m

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:00 UTCpassed

Model card

From the publisher at commit d59c919. Shown as plain text with links; images open at the publisher.

harrier-oss-v1#

harrier-oss-v1 is a family of multilingual text embedding models developed by Microsoft. The models use decoder-only architectures with last-token pooling and L2 normalization to produce dense text embeddings. They can be applied to a wide range of tasks, including but not limited to retrieval, clustering, semantic similarity, classification, bitext mining, and reranking. The models achieve state-of-the-art results on the Multilingual MTEB v2 benchmark as of the release date.

ModelParametersEmbedding DimensionMax TokensMTEB v2 Score
harrier-oss-v1-270m270M64032,76866.5
harrier-oss-v1-0.6b0.6B1,02432,76869.0
harrier-oss-v1-27b27B5,37632,76874.3

Training#

All models are trained with contrastive learning objectives on a large-scale mixture of multilingual datasets covering diverse tasks. The 270m and 0.6b variants are additionally trained with knowledge distillation from larger embedding models.

Usage#

Below is an example to encode queries and passages from the MS-MARCO passage ranking dataset.

Transformers.js#

If you haven't already, you can install the Transformers.js JavaScript library from NPM using:

npm i @huggingface/transformers

You can then use the model as follows:

import { AutoModel, AutoTokenizer, matmul } from "@huggingface/transformers";

const model_id = "onnx-community/harrier-oss-v1-270m-ONNX";
const tokenizer = await AutoTokenizer.from_pretrained(model_id);
const model = await AutoModel.from_pretrained(model_id, { dtype: "fp32", device: "webgpu" });

const prompts = {
  web_search_query: "Instruct: Given a web search query, retrieve relevant passages that answer the query\nQuery: ",
  sts_query: "Instruct: Retrieve semantically similar text\nQuery: ",
  bitext_query: "Instruct: Retrieve parallel sentences\nQuery: ",
};
const queries = ["how much protein should a female eat", "summit define"].map((x) => prompts.web_search_query + x);
const documents = [
  "As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.",
  "Definition of summit for English Language Learners. : 1  the highest point of a mountain : the top of a mountain. : 2  the highest level. : 3  a meeting or series of meetings between the leaders of two or more governments.",
];

const query_inputs = tokenizer(queries, { padding: true, truncation: true });
const { sentence_embedding: query_embeddings } = await model(query_inputs);

const doc_inputs = tokenizer(documents, { padding: true, truncation: true });
const { sentence_embedding: doc_embeddings } = await model(doc_inputs);

const scores = (await matmul(query_embeddings, doc_embeddings.transpose(1, 0))).mul(100);
console.log(scores.tolist());
// [
//   [ 64.57361602783203, 25.452768325805664 ],
//   [ 29.973331451416016, 67.40923309326172 ]
// ]

Supported Languages#

The models are trained on multilingual data and support a wide range of languages, including but not limited to: Arabic, Bulgarian, Catalan, Czech, Danish, German, Greek, English, Spanish, Estonian, Persian, Finnish, French, Hebrew, Hindi, Croatian, Hungarian, Indonesian, Italian, Japanese, Korean, Lithuanian, Latvian, Macedonian, Malay, Dutch, Norwegian, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Albanian, Serbian, Swedish, Thai, Turkish, Ukrainian, Urdu, Vietnamese, and Chinese.

Evaluation#

Please follow the mteb repository on how to reproduce our scores. The evaluation prompts used for each task are also available at mteb_v2_eval_prompts.json.

FAQ#

1. Do I need to add instructions to the query?

Yes, this is how the model is trained, otherwise you will see a performance degradation. The task definition should be a one-sentence instruction that describes the task. This is a way to customize text embeddings for different scenarios through natural language instructions.

On the other hand, there is no need to add instructions to the document side.

2. Why are my reproduced results slightly different from reported in the model card?

Different versions of transformers and pytorch could cause negligible but non-zero performance differences.

3. What pooling strategy does this model use?

The model uses last-token pooling — the embedding of the last non-padding token is used as the sentence representation. The embedding is then L2-normalized. This is handled automatically when using Sentence Transformers.

Files

15 files · 2.40 GBWeights 172 MB (smallest of 5 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 15 files with their sha256
FileSizesha256
.gitattributes1.88 KB2ceaf84a74515a94d2b0f567a3533cf727eed34eec54fed543392c85c2df7a55
README.md6.03 KB70cd8a83106e9764c6f89f28a5c6e776343e82da7bb9fecbd69a242bbf780514
config.json1.61 KB5366f9919a82aaeceb6707bf218c5769f414d60f5dbaf781fa07e5465487fd7c
onnx/model.onnx182 KBd5bff170c042556850e4941617bd45e05e7f2dd0868dc9e2beef05b8c5b62d06
onnx/model.onnx_data1.11 GBf27e5e94060e994a9d79be8be9910fc2513e0f9939d934103489a2156b0ff9a8
onnx/model_fp16.onnx261 KBf32fe4e7f95f363197ad35e40853149ac8a633bb646ae0ba55b04df1f8df72d1
onnx/model_fp16.onnx_data553 MB88b6bccba5dcc413cf55ed0f4363a36dd496b4c93c7f584995f132ef9e500222
onnx/model_q4.onnx240 KB228dca2603b907d673dd99cf89c309c0ca68baeed127416a5e027a48e62b0f49
onnx/model_q4.onnx_data205 MBb5a15487360f5341659480ae4b5ad60028d5f865bd329196ec8d5708bbed3118
onnx/model_q4f16.onnx319 KBe844fc75743d24f9bea799c35018f8d47efec3fd34d74f43906ee0a1899bcc83
onnx/model_q4f16.onnx_data172 MBb8f28661b249b5e0f10a6281de405ec5dc7daa5824b75e26a9e330db28d8d739
onnx/model_quantized.onnx243 KB44fe93efec64ac3446703403634fd8410c7dabf3814bf00dc0825f1e2dde75c0
onnx/model_quantized.onnx_data344 MBa81e3db98eaedd77deafe07d7c3c03b254b7e012790a7a1774295aff03d4fbdf
tokenizer.json20.3 MBec95be298bea26f90370854faa650744c9fb0a04ca5e5ff95dd3913393ac5e45
tokenizer_config.json702 B135405f3479eaebc473e2e78593f2195c7598948a215ee748758def426b30f59
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
d59c919d01 pinned now2026-11-15 05:00 UTC15 files · 2.40 GB

Use it

$ fw get onnx-community/harrier-oss-v1-270m-ONNX
# manifest sha256 4c850e975394… · 2.40 GB · 15 files
$ fw verify ./harrier-oss-v1-270m-ONNX onnx-community/harrier-oss-v1-270m-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/harrier-oss-v1-270m-ONNX.json --dir ./harrier-oss-v1-270m-ONNX $ python3 fw.py verify ./harrier-oss-v1-270m-ONNX ./onnx-community__harrier-oss-v1-270m-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/harrier-oss-v1-270m-ONNX --revision d59c919d0159aea2c19ed7d04288fcdd048d0f9c --local-dir ./harrier-oss-v1-270m-ONNX

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
70cd8a83106e9764c6f89f28a5c6e776343e82da7bb9fecbd69a242bbf780514
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.embedSubject: harrier-oss-v1-270m-ONNXDate: 2026-11-15Commit: d59c919Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/harrier-oss-v1-270m-ONNX
Pinned commit
d59c919d0159aea2c19ed7d04288fcdd048d0f9c
Manifest
harrier-oss-v1-270m-ONNX.json · .minisig
Manifest sha256
4c850e975394a415d5cc1afa41edcf3191acbdac0b6cdae1e618a79a1fe38a91
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:00 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/harrier-oss-v1-270m-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/harrier-oss-v1-270m-ONNX.json.minisig $ minisign -Vm harrier-oss-v1-270m-ONNX.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

microsoft/harrier-oss-v1-270m · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/harrier-oss-v1-270m-ONNX
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. harrier-oss-v1-270m-ONNX.json. Provenance. Takedown history: none.
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-MiniLM-L6-v1
From: unsloth <huggingface.co/unsloth>Subject: all-MiniLM-L6-v2
From: mlx-community <huggingface.co/mlx-community>Subject: all-MiniLM-L6-v2-4bit
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-mpnet-base-v1
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: allenai-specter
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: bert-base-nli-max-tokens