AI SeedbankHelp preserve open and free AI for humanity's future

← All models

microsoft_harrier-oss-v1-0.6b

microsoft · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: 1 · Leechers: 0

Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


tags:

  • mteb
  • sentence-transformers
  • transformers language:
  • multilingual
  • af
  • am
  • ar
  • as
  • az
  • be
  • bg
  • bn
  • br
  • bs
  • ca
  • cs
  • cy
  • da
  • de
  • el
  • en
  • eo
  • es
  • et
  • eu
  • fa
  • fi
  • fr
  • fy
  • ga
  • gd
  • gl
  • gu
  • ha
  • he
  • hi
  • hr
  • hu
  • hy
  • id
  • is
  • it
  • ja
  • jv
  • ka
  • kk
  • km
  • kn
  • ko
  • ku
  • ky
  • la
  • lo
  • lt
  • lv
  • mg
  • mk
  • ml
  • mn
  • mr
  • ms
  • my
  • ne
  • nl
  • 'no'
  • om
  • or
  • pa
  • pl
  • ps
  • pt
  • ro
  • ru
  • sa
  • sd
  • si
  • sk
  • sl
  • so
  • sq
  • sr
  • su
  • sv
  • sw
  • ta
  • te
  • th
  • tl
  • tr
  • ug
  • uk
  • ur
  • uz
  • vi
  • xh
  • yi
  • zh license: mit

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.

Model Parameters Embedding Dimension Max Tokens MTEB v2 Score
harrier-oss-v1-270m 270M 640 32,768 66.5
harrier-oss-v1-0.6b 0.6B 1,024 32,768 69.0
harrier-oss-v1-27b 27B 5,376 32,768 74.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.

Sentence Transformers

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("microsoft/harrier-oss-v1-0.6b", model_kwargs={"dtype": "auto"})

queries = [
    "how much protein should a female eat",
    "summit define",
]
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."
]

query_embeddings = model.encode(queries, prompt_name="web_search_query")
document_embeddings = model.encode(documents)

scores = (query_embeddings @ document_embeddings.T) * 100
print(scores.tolist())

Have a look at config_sentence_transformers.json for the prompts that are pre-configured, such as web_search_query, sts_query, and bitext_query. You can also use a custom instruction directly via e.g. model.encode(queries, prompt="Instruct: Retrieve semantically similar text\nQuery: ").

Transformers

import torch
import torch.nn.functional as F

from torch import Tensor
from transformers import AutoTokenizer, AutoModel


def last_token_pool(last_hidden_states: Tensor, attention_mask: Tensor) -> Tensor:
    left_padding = (attention_mask[:, -1].sum() == attention_mask.shape[0])
    if left_padding:
        return last_hidden_states[:, -1]
    else:
        sequence_lengths = attention_mask.sum(dim=1) - 1
        batch_size = last_hidden_states.shape[0]
        return last_hidden_states[torch.arange(batch_size, device=last_hidden_states.device), sequence_lengths]


def get_detailed_instruct(task_description: str, query: str) -> str:
    return f'Instruct: {task_description}\nQuery: {query}'


# Each query must come with a one-sentence instruction that describes the task
task = 'Given a web search query, retrieve relevant passages that answer the query'
queries = [
    get_detailed_instruct(task, 'how much protein should a female eat'),
    get_detailed_instruct(task, 'summit define')
]
# No need to add instruction for retrieval documents
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."
]
input_texts = queries + documents

tokenizer = AutoTokenizer.from_pretrained('microsoft/harrier-oss-v1-0.6b')
model = AutoModel.from_pretrained('microsoft/harrier-oss-v1-0.6b', dtype='auto')
model.eval()
model.cuda()

max_length = 32768
# Tokenize the input texts
batch_dict = tokenizer(input_texts, max_length=max_length, padding=True, truncation=True, return_tensors='pt')
batch_dict = {k: v.cuda() for k, v in batch_dict.items()}

outputs = model(**batch_dict)
embeddings = last_token_pool(outputs.last_hidden_state, batch_dict['attention_mask'])

# normalize embeddings
embeddings = F.normalize(embeddings, p=2, dim=1)
scores = (embeddings[:2] @ embeddings[2:].T) * 100
print(scores.tolist())

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.

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:e75bf9ba34bd837c738c8ebbff3472ad01678170&dn=microsoft_harrier-oss-v1-0.6b

Open magnet in torrent client · infohash e75bf9ba34bd837c738c8ebbff3472ad01678170

Files & hashes

PathSizesha1sha256
1_Pooling/config.json297 B (297 B)e1cde9c8752f2afcae01dc89fad8578afbcf52487652a48b1c8ceb3f7d1c96e4b53d50b79231be6876f40e37534ecccdffbd5551
README.md7.4 KB (7,606 B)23147ff8b8285fad5b060fc9386e38188057498e8c571701c467aa0ca60b7e9739e8ea5e1db38614616a67677cd231410392aa81
added_tokens.json707 B (707 B)b54f9135e44c1e81047e8d05cb027af8bc039eedc0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680
chat_template.jinja4.0 KB (4,116 B)699ff8df401fe4788525e9c1f9b86a99eadd623087a2728cb8dc9fe424d624542f6060ec05a1d285ebbec578bb078900e33396b5
config.json1.3 KB (1,355 B)db0369ca6ec6a17b3ccb1b31050cbcdfd6ea573feb15983a1c7f53ecf3d3f1880e676a56967650b0c3c4ed2387c3851133f2d7ef
config_sentence_transformers.json351 B (351 B)2d094bb77ecdfe35df5e10fdb2f08ceb384afdbaad2096929147368b5d0ba5322ea394d50911be4d348091c9f3b0ad06c3763d91
merges.txt1.6 MB (1,671,853 B)31349551d90c7606f325fe0f11bbb8bd5fa0d7c78831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
model.safetensors1.11 GB (1,192,133,232 B)1251c642b4312266e7807585455161c20c69f2a96bb124227f33c3dbf7fbbd38119b2afa8be959e93666d3c9be7142b66708b66c
modules.json349 B (349 B)952a9b81c0bfd99800fabf352f69c7ccd46c5e4384e40c8e006c9b1d6c122e02cba9b02458120b5fb0c87b746c41e0207cf642cf
mteb_v2_eval_prompts.json11.6 KB (11,877 B)af17620cafe3b90decea71116a0c7cdb1777b57108aaf10dc3d61ac54af15027d3a491ea06b2ed3edcb06dc05584539f5555fe51
special_tokens_map.json613 B (613 B)ac23c0aaa2434523c494330aeb79c5839537810376862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd
tokenizer.json10.9 MB (11,423,705 B)e6592f4d8d1678e963da9188090ac3eee916ed6bdef76fb086971c7867b829c23a26261e38d9d74e02139253b38aeb9df8b4b50a
tokenizer_config.json5.3 KB (5,404 B)ddaf69808214a44fdd26d3785b66c1367c78277a443bfa629eb16387a12edbf92a76f6a6f10b2af3b53d87ba1550adfcf45f7fa0
vocab.json2.6 MB (2,776,833 B)4783fe10ac3adce15ac8f358ef5462739852c569ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910

Cite this release

Canonical URL
https://aiseedbank.org/models/microsoft_harrier-oss-v1-0.6b/
Slug
microsoft_harrier-oss-v1-0.6b
Infohash
e75bf9ba34bd837c738c8ebbff3472ad01678170
License
mit
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: microsoft_harrier-oss-v1-0.6b.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorymicrosoft/harrier-oss-v1-0.6b
Revision (pinned)f9b9dc8d367d443f2479d27aa5d8d2850c0774ee
Fetched at2026-09-02T04:38:35Z
License at fetchmit
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:38:47Z

mit1.13 GB (1,208,038,298 bytes)sentence-transformerssafetensorsqwen3feature-extractionmtebtransformersmultilingualtext-embeddings-inferenceendpoints_compatible93 languages (af, am, ar …)