Model reference · open weights

all-distilroberta

all-distilroberta is an open-weight embedding model from sentence-transformers, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.

Embeddings sentence-transformers 1 variants 2.6M downloads/mo
Request this model on EU hardware All served models Not on the shared API today — deployed on request.

About

What all-distilroberta is

all-distilroberta-v1 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: Then you can use the model like this: 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. Background The project aims to train sentence embedding models on very large sentence level datasets using a self-supervised contrastive learning objective. We used the pretrained distilroberta-base model and fine-tuned in on a 1B sentence pairs dataset. We use a contrastive learning objective: given a sentence from the pair, the model should predict which out of a set of randomly sampled other sentences, was actually paired with it in our dataset. We developped this model during the Community week using JAX/Flax for NLP & CV, organized by Hugging Face. We developped this model as part of the project: Train the Best Sentence Embedding Model Ever with 1B Training Pairs. We benefited from efficient hardware infrastructure to run the project: 7 TPUs v3-8, as well as intervention from Googles Flax, JAX, and Cloud team member about efficient deep learning frameworks. Intended uses Our model is intented to be used as a sentence and short paragraph encoder. Given an input text, it ouptuts a vector which captures the semantic information. The sentence vector may be used for information retrieval, clustering or sentence similarity tasks. By default, input text longer than 128 word pieces is truncated. Training procedure Pre-training We use the pretrained distilroberta-base. Please refer to the model card for more detailed information about the pre-training procedure. Fine-tuning We fine-tune the model using a contrastive objective. Formally, we compute the cosine similarity from each possible sentence pairs from the batch. We then apply the cross entropy loss by comparing with true pairs. Hyp

Summarised from the published model card. Read the full card on the HuggingFace links below.

Specifications

What it is

Makersentence-transformers
TypeEmbedding models
Parameters (lead)82M
Context514 tokens
Variants1
Runs withsentence-transformers
Released2022-03-02
Popularity2.6M downloads / month
Likes43
LicenceOpen weights

How it works

How embedding models work

Your textsentence / documentEncodermaps meaningVectorlist of numbersAn embedding model turns text into a vector, so similar meanings sit close together — the basis of search and RAG.

Variants

Sizes & precisions

Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.

VariantParamsPrecisionVRAMFits 16 GBWeights
all-distilroberta-v182MBF16~0.2 GBWeights ↗

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys all-distilroberta for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (all-distilroberta below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"all-distilroberta","input":"text to embed"}'

Details

Languages, data & research

Languages

en

Trained / evaluated on

s2orc flax-sentence-embeddings/stackexchange_xml ms_marco gooaq yahoo_answers_topics code_search_net search_qa eli5 snli multi_nli wikihow natural_questions trivia_qa embedding-data/sentence-compression

Tags

sentence-transformers pytorch rust onnx safetensors openvino roberta fill-mask feature-extraction sentence-similarity transformers en dataset:s2orc dataset:flax-sentence-embeddings/stackexchange_xml

Papers

Licence

Open weights

Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗

Sources

Weights & code

Want all-distilroberta on EU-owned hardware?

Request this model on EU hardware See what’s served now

Explore

More embedding models

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms