alt.freeweights.embed / paraphrase-distilroberta-base-v2
From: sentence-transformers <huggingface.co/sentence-transformers>Newsgroups: alt.freeweights.embedSubject:

paraphrase-distilroberta-base-v2

Date: 2026-11-15Commit: 1972a50Signed: 2DC28CC7B26A283B ✓

Sentence similarity model with 82M parameters. Onnx and openvino and safetensors weights, 3.52 GB in all. Published by sentence-transformers under Apache-2.0.

82M params3.52GBparaphrase-distilroberta-base-v2onnx openvino safetensorspermissive
FactsParams82MSize3.52 GBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/paraphrase-distilroberta-base-v2
# manifest sha256 a7d535c623ab… · 3.52 GB · 29 files
$ fw verify ./paraphrase-distilroberta-base-v2 sentence-transformers/paraphrase-distilroberta-base-v2
From sourceHosted (signed)sentence-transformers/paraphrase-distilroberta-base-v2Last check: 2026-11-15 02:47 UTC

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

Works with

Evaluate with

Overview

Size
3.52 GB
Weights
328 MB (safetensors)
Parameters
82M
Formats
onnx, openvino, safetensors
Task
sentence similarity
License
Apache-2.0 (permissive)
Files
29, each with a sha256
Publisher
sentence-transformers
Added
2026-11-15
Section
alt.freeweights.embed
Lineage

Original release from the publisher.

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 02:47 UTCpassed

Model card

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

sentence-transformers/paraphrase-distilroberta-base-v2#

This is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.

Usage (Sentence-Transformers)#

Using this model becomes easy when you have sentence-transformers installed:

pip install -U sentence-transformers

Then you can use the model like this:

from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]

model = SentenceTransformer('sentence-transformers/paraphrase-distilroberta-base-v2')
embeddings = model.encode(sentences)
print(embeddings)

Usage (HuggingFace Transformers)#

Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.

from transformers import AutoTokenizer, AutoModel
import torch


#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
    token_embeddings = model_output[0] #First element of model_output contains all token embeddings
    input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
    return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)


# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']

# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/paraphrase-distilroberta-base-v2')
model = AutoModel.from_pretrained('sentence-transformers/paraphrase-distilroberta-base-v2')

# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')

# Compute token embeddings
with torch.no_grad():
    model_output = model(**encoded_input)

# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])

print("Sentence embeddings:")
print(sentence_embeddings)

Full Model Architecture#

SentenceTransformer(
  (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: RobertaModel 
  (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)

Citing & Authors#

This model was trained by sentence-transformers.

If you find this model helpful, feel free to cite our publication Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks:

@inproceedings{reimers-2019-sentence-bert,
    title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
    author = "Reimers, Nils and Gurevych, Iryna",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
    month = "11",
    year = "2019",
    publisher = "Association for Computational Linguistics",
    url = "http://arxiv.org/abs/1908.10084",
}

Files

29 files · 3.52 GBWeights 328 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 29 files with their sha256
FileSizesha256
.gitattributes790 B63e367f7468466447415f35c52584a3c3f397fe638e2f985b25ec29ac25bde14
1_Pooling/config.json190 Ba37f83ada23e7887be6b88f4998927dbeac0038af301553c7cd5461413bf1a56
README.md3.55 KB8ca2dd9b8071c174549ecdfdf6053ebe8d98943ed1a1d5beab1ded3cd6c06577
config.json686 B1e2158804d37b5068c8a43b8894acfec1181383f6e518e8fb65f3ad86455c808
config_sentence_transformers.json122 Bb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
flax_model.msgpack328 MBa2da6cc7971bfa17cd04b5bfa4d59b0f3ebba65e3c342770293156666cb12349
merges.txt456 KBfe36cab26d4f4421ed725e10a2e9ddb7f799449c603a96e7f29b5a3c82a95862
model.safetensors328 MB6fd0f55cbe49643ec456594fe67f48262763fcf624c44840be69e88e04e1eac0
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx326 MBd41f2131c02c4b899cf665d3868841090d412a806c05c8f1c2afcab8651ceafa
onnx/model_O1.onnx326 MBbd8631441752212177034c4b81f0e3b4a55744a41113adf330c4c72e5fad4bab
onnx/model_O2.onnx326 MB20d0f43a93c9d5e7805aeba620a7b1e2336075f6eca9d1fce74c88e13f4abf9d
onnx/model_O3.onnx326 MB7e1003473a1561bf673acc9cd6b3ed2d88212186b89a24c34bb8aab09344f163
onnx/model_O4.onnx163 MB0c97432799d2b20c373344824fcd816dfddf3cf35aee5a23abf8cf1390906a7b
onnx/model_qint8_arm64.onnx82.2 MBfc4251e2bb1b02d94821718c2b554d6ace56186c84f66f56e2fdcf358960b9f3
onnx/model_qint8_avx512.onnx82.2 MBfc4251e2bb1b02d94821718c2b554d6ace56186c84f66f56e2fdcf358960b9f3
onnx/model_qint8_avx512_vnni.onnx82.2 MBfc4251e2bb1b02d94821718c2b554d6ace56186c84f66f56e2fdcf358960b9f3
onnx/model_quint8_avx2.onnx82.2 MB66d09cb1ea11002581f64479110badb768b59d38d4ef633803e1509a01efe0a2
openvino/openvino_model.bin326 MB17956e53be8d640463cc0d36e0309b94f8a50b60d02b038eb791a23351a49a74
openvino/openvino_model.xml217 KBd2b3ba67ca146b5ca15affd2ee1736d8b50fe083cd6e6a556f1387fdd307070a
openvino/openvino_model_qint8_quantized.bin82.2 MB5b85ac37082c76f4573e30654245dae0fdeaa08175798ec3f3bbfb045c16fdc1
openvino/openvino_model_qint8_quantized.xml373 KB0efaaddf987965c222b7408c6e99fc4b1bb25d0e80207279669d2a2c314cd7be
pytorch_model.bin329 MB4e44339d30d342e62a51ddb06844fe28d405c6e031f713afe12f8bb9e7b3cbd2
sentence_bert_config.json53 Bfc1993fde0a95c24ec6c022539d41cf6e2f7c9721e5415d6fb6897472a9cd4b7
special_tokens_map.json239 B378eb3bf733eb16e65792d7e3fda5b8a4631387ca04d2015199c4d4f22ae554d
tf_model.h5329 MBc36f6c0f19ca40b1dbbce3f0e0d207f6759731a0f54b8445ac9d9bf6b902bbe7
tokenizer.json1.36 MB33465117406b9007673e8ba283f7f1383d9b5094df947481af60eec94ed7d7bd
tokenizer_config.json1.12 KB52ce53e22c4fbf2e96315fd43f915b0a8bdb25968bd00f8b56d9be504bd76b6e
vocab.json798 KBed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
1972a50797 pinned now2026-11-15 02:47 UTC29 files · 3.52 GB

Use it

$ fw get sentence-transformers/paraphrase-distilroberta-base-v2
# manifest sha256 a7d535c623ab… · 3.52 GB · 29 files
$ fw verify ./paraphrase-distilroberta-base-v2 sentence-transformers/paraphrase-distilroberta-base-v2
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/sentence-transformers/paraphrase-distilroberta-base-v2.json --dir ./paraphrase-distilroberta-base-v2 $ python3 fw.py verify ./paraphrase-distilroberta-base-v2 ./sentence-transformers__paraphrase-distilroberta-base-v2.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/paraphrase-distilroberta-base-v2 --revision 1972a507973d92e15f4f7cd9457d9fcf43ea117f --local-dir ./paraphrase-distilroberta-base-v2
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModel, AutoTokenizer tok = AutoTokenizer.from_pretrained("sentence-transformers/paraphrase-distilroberta-base-v2", revision="1972a507973d92e15f4f7cd9457d9fcf43ea117f") model = AutoModel.from_pretrained("sentence-transformers/paraphrase-distilroberta-base-v2", revision="1972a507973d92e15f4f7cd9457d9fcf43ea117f", device_map="auto")
sentence-transformersEmbed text with sentence-transformers.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from sentence_transformers import SentenceTransformer model = SentenceTransformer("sentence-transformers/paraphrase-distilroberta-base-v2", revision="1972a507973d92e15f4f7cd9457d9fcf43ea117f") vectors = model.encode(["Hello"])

License

Name
Apache License 2.0
Id
Apache-2.0
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
8ca2dd9b8071c174549ecdfdf6053ebe8d98943ed1a1d5beab1ded3cd6c06577
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: sentence-transformers <huggingface.co/sentence-transformers>Newsgroups: alt.freeweights.embedSubject: paraphrase-distilroberta-base-v2Date: 2026-11-15Commit: 1972a50Signed: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/paraphrase-distilroberta-base-v2
Pinned commit
1972a507973d92e15f4f7cd9457d9fcf43ea117f
Manifest
paraphrase-distilroberta-base-v2.json · .minisig
Manifest sha256
a7d535c623abd7116dd362471338cfab6d15b9a0c67a8dba577cb659bb297efd
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:47 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/paraphrase-distilroberta-base-v2.json $ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/paraphrase-distilroberta-base-v2.json.minisig $ minisign -Vm paraphrase-distilroberta-base-v2.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

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/paraphrase-distilroberta-base-v2
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. paraphrase-distilroberta-base-v2.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