Model reference · open weights
affilgood-dense-retriever is an open-weight embedding model from SIRIS-Lab. affilgood-dense-retriever (FP32) weighs 1.1 GB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the SIRIS-Lab/affilgood-dense-retriever model card, 2026-10-01
What it is
| Released by | SIRIS-Lab |
|---|---|
| Released | 2025-04-16 |
| Parameters | 560M |
| VRAM | 1.1 GB for the weights |
What it runs on
| Card | Runs | Memory |
|---|---|---|
| RTX 3060 12 GB | fits | 11.6 GB |
| RTX 4060 Ti 16 GB | fits | 15.4 GB |
| RTX 3090 24 GB | fits | 23.4 GB |
| RTX 4090 24 GB | fits | 23.4 GB |
| RTX 5090 32 GB | fits | 31.0 GB |
| L40S 48 GB | fits | 44.0 GB |
| A100 80 GB | fits | 78.2 GB |
| H100 80 GB | fits | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | fits | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | fits | 107 GB |
| H200 141 GB | fits | 138 GB |
| B200 180 GB | fits | 176 GB |
From the model card
This is a sentence-transformers model trained. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
Model Type: Sentence Transformer
Maximum Sequence Length: 128 tokens
Output Dimensionality: 1024 dimensions
Similarity Function: Cosine Similarity
SentenceTransformer(
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
(1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
(2): Normalize()
)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("SIRIS-Lab/affilgood-dense-retriever")
# Run inference
sentences = [
'[MENTION] Hyderabad Cleft Society [COUNTRY] India',
'[MENTION] Hyderabad Cleft Society [ACRONYM] HCS [CITY] Hyderabad [COUNTRY] India',
'[MENTION] Hyderabad Rheumatology Center [ACRONYM] HRC [CITY] Hyderabad [COUNTRY] India',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
entity_linking_eval| Metric | Value |
|---|---|
| pearson_cosine | 0.7073 |
| spearman_cosine | 0.6826 |
| sentence_0 | sentence_1 | sentence_2 | |
|---|---|---|---|
| type | string | string | string |
| details | min: 5 tokensmean: 13.61 tokensmax: 32 tokens | min: 9 tokensmean: 18.63 tokensmax: 56 tokens | min: 10 tokensmean: 19.66 tokensmax: 58 tokens |
| sentence_0 | sentence_1 | sentence_2 |
|---|---|---|
| [MENTION] The Prince Of Wales'S Institute Of Architecture [CITY] London [COUNTRY] United Kingdom | [MENTION] The Princes Foundation [CITY] London [COUNTRY] United Kingdom | [MENTION] Royal Institute of British Architects [ACRONYM] RIBA [CITY] London [COUNTRY] United Kingdom |
| [MENTION] Development Finance & Public Policies [COUNTRY] Belgium | [MENTION] Development Finance and Public Policies [ACRONYM] DEFIPP [PARENT] University of Namur [CITY] Namur [COUNTRY] Belgium | [MENTION] Service Public Federal Finances [ACRONYM] SPF [CITY] Brussels [COUNTRY] Belgium |
| [MENTION] EES [COUNTRY] United States | [MENTION] Emerald Education Systems [ACRONYM] EES [CITY] Pasadena [COUNTRY] United States | [MENTION] ESI Group (United States) [ACRONYM] ESI [PARENT] ESI Group (France) [ACRONYM] ESI [CITY] Farmington Hills [COUNTRY] United States |
{
"scale": 20.0,
"similarity_fct": "cos_sim"
}
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.
Benchmarks
As published on the model card: the maker's own numbers, not measured by AxForge.
| Task | Dataset | Metric | Score |
|---|---|---|---|
| Semantic Similarity | entity linking eval | Pearson Cosine | 0.707 |
| Semantic Similarity | entity linking eval | Spearman Cosine | 0.683 |