Text Ranking
sentence-transformers
Safetensors
English
bert
cross-encoder
reranker
Generated from Trainer
dataset_size:1990000
loss:MarginMSELoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use alantang2025/reranker-MiniLM-L12-H384-uncased-msmarco-margin-mse with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use alantang2025/reranker-MiniLM-L12-H384-uncased-msmarco-margin-mse with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("alantang2025/reranker-MiniLM-L12-H384-uncased-msmarco-margin-mse") query = "Which planet is known as the Red Planet?" passages = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", "Saturn, famous for its rings, is sometimes mistaken for the Red Planet." ] scores = model.predict([(query, passage) for passage in passages]) print(scores) - Notebooks
- Google Colab
- Kaggle
Add new CrossEncoder model
Browse files- README.md +516 -0
- config.json +34 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- vocab.txt +0 -0
README.md
ADDED
|
@@ -0,0 +1,516 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
tags:
|
| 5 |
+
- sentence-transformers
|
| 6 |
+
- cross-encoder
|
| 7 |
+
- reranker
|
| 8 |
+
- generated_from_trainer
|
| 9 |
+
- dataset_size:1990000
|
| 10 |
+
- loss:MarginMSELoss
|
| 11 |
+
base_model: microsoft/MiniLM-L12-H384-uncased
|
| 12 |
+
datasets:
|
| 13 |
+
- sentence-transformers/msmarco
|
| 14 |
+
pipeline_tag: text-ranking
|
| 15 |
+
library_name: sentence-transformers
|
| 16 |
+
metrics:
|
| 17 |
+
- map
|
| 18 |
+
- mrr@10
|
| 19 |
+
- ndcg@10
|
| 20 |
+
model-index:
|
| 21 |
+
- name: CrossEncoder based on microsoft/MiniLM-L12-H384-uncased
|
| 22 |
+
results:
|
| 23 |
+
- task:
|
| 24 |
+
type: cross-encoder-reranking
|
| 25 |
+
name: Cross Encoder Reranking
|
| 26 |
+
dataset:
|
| 27 |
+
name: NanoMSMARCO R100
|
| 28 |
+
type: NanoMSMARCO_R100
|
| 29 |
+
metrics:
|
| 30 |
+
- type: map
|
| 31 |
+
value: 0.5676
|
| 32 |
+
name: Map
|
| 33 |
+
- type: mrr@10
|
| 34 |
+
value: 0.5587
|
| 35 |
+
name: Mrr@10
|
| 36 |
+
- type: ndcg@10
|
| 37 |
+
value: 0.6364
|
| 38 |
+
name: Ndcg@10
|
| 39 |
+
- task:
|
| 40 |
+
type: cross-encoder-reranking
|
| 41 |
+
name: Cross Encoder Reranking
|
| 42 |
+
dataset:
|
| 43 |
+
name: NanoNFCorpus R100
|
| 44 |
+
type: NanoNFCorpus_R100
|
| 45 |
+
metrics:
|
| 46 |
+
- type: map
|
| 47 |
+
value: 0.3529
|
| 48 |
+
name: Map
|
| 49 |
+
- type: mrr@10
|
| 50 |
+
value: 0.6198
|
| 51 |
+
name: Mrr@10
|
| 52 |
+
- type: ndcg@10
|
| 53 |
+
value: 0.4158
|
| 54 |
+
name: Ndcg@10
|
| 55 |
+
- task:
|
| 56 |
+
type: cross-encoder-reranking
|
| 57 |
+
name: Cross Encoder Reranking
|
| 58 |
+
dataset:
|
| 59 |
+
name: NanoNQ R100
|
| 60 |
+
type: NanoNQ_R100
|
| 61 |
+
metrics:
|
| 62 |
+
- type: map
|
| 63 |
+
value: 0.7124
|
| 64 |
+
name: Map
|
| 65 |
+
- type: mrr@10
|
| 66 |
+
value: 0.727
|
| 67 |
+
name: Mrr@10
|
| 68 |
+
- type: ndcg@10
|
| 69 |
+
value: 0.7557
|
| 70 |
+
name: Ndcg@10
|
| 71 |
+
- task:
|
| 72 |
+
type: cross-encoder-nano-beir
|
| 73 |
+
name: Cross Encoder Nano BEIR
|
| 74 |
+
dataset:
|
| 75 |
+
name: NanoBEIR R100 mean
|
| 76 |
+
type: NanoBEIR_R100_mean
|
| 77 |
+
metrics:
|
| 78 |
+
- type: map
|
| 79 |
+
value: 0.5443
|
| 80 |
+
name: Map
|
| 81 |
+
- type: mrr@10
|
| 82 |
+
value: 0.6352
|
| 83 |
+
name: Mrr@10
|
| 84 |
+
- type: ndcg@10
|
| 85 |
+
value: 0.6026
|
| 86 |
+
name: Ndcg@10
|
| 87 |
+
---
|
| 88 |
+
|
| 89 |
+
# CrossEncoder based on microsoft/MiniLM-L12-H384-uncased
|
| 90 |
+
|
| 91 |
+
This is a [Cross Encoder](https://www.sbert.net/docs/cross_encoder/usage/usage.html) model finetuned from [microsoft/MiniLM-L12-H384-uncased](https://huggingface.co/microsoft/MiniLM-L12-H384-uncased) on the [msmarco](https://huggingface.co/datasets/sentence-transformers/msmarco) dataset using the [sentence-transformers](https://www.SBERT.net) library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.
|
| 92 |
+
|
| 93 |
+
## Model Details
|
| 94 |
+
|
| 95 |
+
### Model Description
|
| 96 |
+
- **Model Type:** Cross Encoder
|
| 97 |
+
- **Base model:** [microsoft/MiniLM-L12-H384-uncased](https://huggingface.co/microsoft/MiniLM-L12-H384-uncased) <!-- at revision 44acabbec0ef496f6dbc93adadea57f376b7c0ec -->
|
| 98 |
+
- **Maximum Sequence Length:** 512 tokens
|
| 99 |
+
- **Number of Output Labels:** 1 label
|
| 100 |
+
- **Training Dataset:**
|
| 101 |
+
- [msmarco](https://huggingface.co/datasets/sentence-transformers/msmarco)
|
| 102 |
+
- **Language:** en
|
| 103 |
+
<!-- - **License:** Unknown -->
|
| 104 |
+
|
| 105 |
+
### Model Sources
|
| 106 |
+
|
| 107 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 108 |
+
- **Documentation:** [Cross Encoder Documentation](https://www.sbert.net/docs/cross_encoder/usage/usage.html)
|
| 109 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
|
| 110 |
+
- **Hugging Face:** [Cross Encoders on Hugging Face](https://huggingface.co/models?library=sentence-transformers&other=cross-encoder)
|
| 111 |
+
|
| 112 |
+
## Usage
|
| 113 |
+
|
| 114 |
+
### Direct Usage (Sentence Transformers)
|
| 115 |
+
|
| 116 |
+
First install the Sentence Transformers library:
|
| 117 |
+
|
| 118 |
+
```bash
|
| 119 |
+
pip install -U sentence-transformers
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
Then you can load this model and run inference.
|
| 123 |
+
```python
|
| 124 |
+
from sentence_transformers import CrossEncoder
|
| 125 |
+
|
| 126 |
+
# Download from the 🤗 Hub
|
| 127 |
+
model = CrossEncoder("alantang2025/reranker-MiniLM-L12-H384-uncased-msmarco-margin-mse")
|
| 128 |
+
# Get scores for pairs of texts
|
| 129 |
+
pairs = [
|
| 130 |
+
['what is mcafee sidewinder control center', 'McAfee Firewall Enterprise Control Center. McAfee Firewall Enterprise Control Center (CommandCenterâ\x84¢) provides a central interface for simplifying the management of multiple McAfee Firewall Enterprise (Sidewinder®) appliances.'],
|
| 131 |
+
['where is cork ie', 'Cork, Irish Corcaigh (â\x80\x9cMarshâ\x80\x9d), seaport and seat of County Cork, in the province of Munster, Ireland. It is located at the head of Cork Harbour on the River Lee. Cork is, after Dublin, the Irish republicâ\x80\x99s second largest conurbation. The city is administratively independent of the county.'],
|
| 132 |
+
['what is a embedded computer system', 'Embedded Computer Systems. An embedded system is a special-purpose system in which the computer is completely encapsulated by the device it controls. Unlike a general-purpose computer, such as a personal computer, an embedded system performs pre-defined tasks, usually with very specific requirements.'],
|
| 133 |
+
['who is kennedy space center named after', "Cecil replies: Sure, but let's get our facts straight: they didn't change the name of the space center, they changed the name of the cape â\x80\x94 i.e., the land under the space center (or under part of it, anyway). The NASA launch facility continues to be known as the John F. Kennedy Space Center. The whole confusing business got started back on November 27, 1963, shortly after JFK's assassination, when Lyndon Johnson was casting about for a suitable memorial for the slain president."],
|
| 134 |
+
['how to calculate protein requirement for a horse', 'Although protein is listed as a percentage on feed tags, the National Research Councilâ\x80\x99s (NRC) latest recommendation for horses lists the protein requirement unit in grams. To understand how much protein to feed a horse, we need to do some math and further reading.Many people think that a 30 percent protein feed is way too much for a horse to handle. If one looks a little closer, the tag of Hubbard Lifeâ\x80\x99s 30% Supplement indicates that a 1,100-pound horse should consume one pound per day.Thirty percent of one pound is 136 grams of protein.verage mixed hay is about 17 percent protein. Feeding 15 pounds of hay alone can deliver 1,157 grams of protein to a horse. Understanding the protein content and feeding rates of all the feed sources a horse has access to is key to achieving the proper protein ratio.'],
|
| 135 |
+
]
|
| 136 |
+
scores = model.predict(pairs)
|
| 137 |
+
print(scores.shape)
|
| 138 |
+
# (5,)
|
| 139 |
+
|
| 140 |
+
# Or rank different texts based on similarity to a single text
|
| 141 |
+
ranks = model.rank(
|
| 142 |
+
'what is mcafee sidewinder control center',
|
| 143 |
+
[
|
| 144 |
+
'McAfee Firewall Enterprise Control Center. McAfee Firewall Enterprise Control Center (CommandCenterâ\x84¢) provides a central interface for simplifying the management of multiple McAfee Firewall Enterprise (Sidewinder®) appliances.',
|
| 145 |
+
'Cork, Irish Corcaigh (â\x80\x9cMarshâ\x80\x9d), seaport and seat of County Cork, in the province of Munster, Ireland. It is located at the head of Cork Harbour on the River Lee. Cork is, after Dublin, the Irish republicâ\x80\x99s second largest conurbation. The city is administratively independent of the county.',
|
| 146 |
+
'Embedded Computer Systems. An embedded system is a special-purpose system in which the computer is completely encapsulated by the device it controls. Unlike a general-purpose computer, such as a personal computer, an embedded system performs pre-defined tasks, usually with very specific requirements.',
|
| 147 |
+
"Cecil replies: Sure, but let's get our facts straight: they didn't change the name of the space center, they changed the name of the cape â\x80\x94 i.e., the land under the space center (or under part of it, anyway). The NASA launch facility continues to be known as the John F. Kennedy Space Center. The whole confusing business got started back on November 27, 1963, shortly after JFK's assassination, when Lyndon Johnson was casting about for a suitable memorial for the slain president.",
|
| 148 |
+
'Although protein is listed as a percentage on feed tags, the National Research Councilâ\x80\x99s (NRC) latest recommendation for horses lists the protein requirement unit in grams. To understand how much protein to feed a horse, we need to do some math and further reading.Many people think that a 30 percent protein feed is way too much for a horse to handle. If one looks a little closer, the tag of Hubbard Lifeâ\x80\x99s 30% Supplement indicates that a 1,100-pound horse should consume one pound per day.Thirty percent of one pound is 136 grams of protein.verage mixed hay is about 17 percent protein. Feeding 15 pounds of hay alone can deliver 1,157 grams of protein to a horse. Understanding the protein content and feeding rates of all the feed sources a horse has access to is key to achieving the proper protein ratio.',
|
| 149 |
+
]
|
| 150 |
+
)
|
| 151 |
+
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
|
| 152 |
+
```
|
| 153 |
+
|
| 154 |
+
<!--
|
| 155 |
+
### Direct Usage (Transformers)
|
| 156 |
+
|
| 157 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 158 |
+
|
| 159 |
+
</details>
|
| 160 |
+
-->
|
| 161 |
+
|
| 162 |
+
<!--
|
| 163 |
+
### Downstream Usage (Sentence Transformers)
|
| 164 |
+
|
| 165 |
+
You can finetune this model on your own dataset.
|
| 166 |
+
|
| 167 |
+
<details><summary>Click to expand</summary>
|
| 168 |
+
|
| 169 |
+
</details>
|
| 170 |
+
-->
|
| 171 |
+
|
| 172 |
+
<!--
|
| 173 |
+
### Out-of-Scope Use
|
| 174 |
+
|
| 175 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 176 |
+
-->
|
| 177 |
+
|
| 178 |
+
## Evaluation
|
| 179 |
+
|
| 180 |
+
### Metrics
|
| 181 |
+
|
| 182 |
+
#### Cross Encoder Reranking
|
| 183 |
+
|
| 184 |
+
* Datasets: `NanoMSMARCO_R100`, `NanoNFCorpus_R100` and `NanoNQ_R100`
|
| 185 |
+
* Evaluated with [<code>CrossEncoderRerankingEvaluator</code>](https://sbert.net/docs/package_reference/cross_encoder/evaluation.html#sentence_transformers.cross_encoder.evaluation.CrossEncoderRerankingEvaluator) with these parameters:
|
| 186 |
+
```json
|
| 187 |
+
{
|
| 188 |
+
"at_k": 10,
|
| 189 |
+
"always_rerank_positives": true
|
| 190 |
+
}
|
| 191 |
+
```
|
| 192 |
+
|
| 193 |
+
| Metric | NanoMSMARCO_R100 | NanoNFCorpus_R100 | NanoNQ_R100 |
|
| 194 |
+
|:------------|:---------------------|:---------------------|:---------------------|
|
| 195 |
+
| map | 0.5676 (+0.0780) | 0.3529 (+0.0919) | 0.7124 (+0.2928) |
|
| 196 |
+
| mrr@10 | 0.5587 (+0.0812) | 0.6198 (+0.1200) | 0.7270 (+0.3003) |
|
| 197 |
+
| **ndcg@10** | **0.6364 (+0.0960)** | **0.4158 (+0.0907)** | **0.7557 (+0.2551)** |
|
| 198 |
+
|
| 199 |
+
#### Cross Encoder Nano BEIR
|
| 200 |
+
|
| 201 |
+
* Dataset: `NanoBEIR_R100_mean`
|
| 202 |
+
* Evaluated with [<code>CrossEncoderNanoBEIREvaluator</code>](https://sbert.net/docs/package_reference/cross_encoder/evaluation.html#sentence_transformers.cross_encoder.evaluation.CrossEncoderNanoBEIREvaluator) with these parameters:
|
| 203 |
+
```json
|
| 204 |
+
{
|
| 205 |
+
"dataset_names": [
|
| 206 |
+
"msmarco",
|
| 207 |
+
"nfcorpus",
|
| 208 |
+
"nq"
|
| 209 |
+
],
|
| 210 |
+
"rerank_k": 100,
|
| 211 |
+
"at_k": 10,
|
| 212 |
+
"always_rerank_positives": true
|
| 213 |
+
}
|
| 214 |
+
```
|
| 215 |
+
|
| 216 |
+
| Metric | Value |
|
| 217 |
+
|:------------|:---------------------|
|
| 218 |
+
| map | 0.5443 (+0.1542) |
|
| 219 |
+
| mrr@10 | 0.6352 (+0.1672) |
|
| 220 |
+
| **ndcg@10** | **0.6026 (+0.1473)** |
|
| 221 |
+
|
| 222 |
+
<!--
|
| 223 |
+
## Bias, Risks and Limitations
|
| 224 |
+
|
| 225 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 226 |
+
-->
|
| 227 |
+
|
| 228 |
+
<!--
|
| 229 |
+
### Recommendations
|
| 230 |
+
|
| 231 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 232 |
+
-->
|
| 233 |
+
|
| 234 |
+
## Training Details
|
| 235 |
+
|
| 236 |
+
### Training Dataset
|
| 237 |
+
|
| 238 |
+
#### msmarco
|
| 239 |
+
|
| 240 |
+
* Dataset: [msmarco](https://huggingface.co/datasets/sentence-transformers/msmarco) at [9e329ed](https://huggingface.co/datasets/sentence-transformers/msmarco/tree/9e329ed2e649c9d37b0d91dd6b764ff6fe671d83)
|
| 241 |
+
* Size: 1,990,000 training samples
|
| 242 |
+
* Columns: <code>score</code>, <code>query</code>, <code>positive</code>, and <code>negative</code>
|
| 243 |
+
* Approximate statistics based on the first 1000 samples:
|
| 244 |
+
| | score | query | positive | negative |
|
| 245 |
+
|:--------|:--------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------|
|
| 246 |
+
| type | float | string | string | string |
|
| 247 |
+
| details | <ul><li>min: -1.47</li><li>mean: 13.31</li><li>max: 22.71</li></ul> | <ul><li>min: 10 characters</li><li>mean: 33.44 characters</li><li>max: 105 characters</li></ul> | <ul><li>min: 75 characters</li><li>mean: 355.82 characters</li><li>max: 952 characters</li></ul> | <ul><li>min: 85 characters</li><li>mean: 338.69 characters</li><li>max: 1197 characters</li></ul> |
|
| 248 |
+
* Samples:
|
| 249 |
+
| score | query | positive | negative |
|
| 250 |
+
|:--------------------------------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 251 |
+
| <code>20.983789285024006</code> | <code>what is a french bulldog</code> | <code>The French Bulldog is a small breed of domestic dog. Frenchies were the result in the 1800s of a cross between bulldog ancestors imported from England and local ratters in Paris, France.In the UK, they moved up to become the fourth most popular registered dog by 2014.he modern French Bulldog breed descends directly from the dogs of the Molossians, an ancient Greek tribe.</code> | <code>The many faces of Duke Dog: Bulldog, human mascot, statue and cartoon. In all likelihood, James Madison University is the only college or university in the country whose athletic teams draw their nickname from the name of the school's president.</code> |
|
| 252 |
+
| <code>20.930927753448486</code> | <code>difference between hostname and domain name</code> | <code>hostname is the name given to the end-point (the machine in question) and will be used to identify it over DNS if that is configured. domain is the name given to the 'network' it will be required to reach the network from an external point (like the Internet)</code> | <code>Determining the domain of a function. Determine the domains of functions according to various considerations. 1 How to determine the domain of a radical function (example) (Video). 2 How to determine the domain of algebraic functions (examples) (Video). 3 Domain of algebraic functions (Exercise).</code> |
|
| 253 |
+
| <code>12.55810809135437</code> | <code>will sod come back if overwatered</code> | <code>Root Death. Pull up pieces of the sod in different areas after the sod has established for a few weeks. Healthy sod that gets the right amount of water will resist the pull because the roots are healthy and growing. Overwatered sod will come right up because its roots are dying or dead.f the soil is wet and mushy, you're watering too much. Let the sod dry out until the top 2 inches of soil are dry and crumbly. Washington State University recommends early morning watering, which allows soil and grass blades to dry out thoroughly during the day.</code> | <code>THE ADVANTAGES OF HYDRO SEEDING! Hydroseeding is a fast, cost effective way to have a new lawn that will turn your neighbors green with envy. Hydroseeding costs only a little more than old fashioned methods using dry seeding techniques combined with a messy straw mulch.ydro Seeding mulch adds to the humus content of a lawn as it decomposes. The bacterial action of straw will leach nitrogen from the soil as it decomposes. ADVANTAGES OF HYDROSEEDING OVER SOD Sod is a good solution to the need for a new lawn. It is expensive. Sod generally costs 3 to 5 times more than hydroseeding.</code> |
|
| 254 |
+
* Loss: [<code>MarginMSELoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#marginmseloss) with these parameters:
|
| 255 |
+
```json
|
| 256 |
+
{
|
| 257 |
+
"activation_fn": "torch.nn.modules.linear.Identity"
|
| 258 |
+
}
|
| 259 |
+
```
|
| 260 |
+
|
| 261 |
+
### Evaluation Dataset
|
| 262 |
+
|
| 263 |
+
#### msmarco
|
| 264 |
+
|
| 265 |
+
* Dataset: [msmarco](https://huggingface.co/datasets/sentence-transformers/msmarco) at [9e329ed](https://huggingface.co/datasets/sentence-transformers/msmarco/tree/9e329ed2e649c9d37b0d91dd6b764ff6fe671d83)
|
| 266 |
+
* Size: 10,000 evaluation samples
|
| 267 |
+
* Columns: <code>score</code>, <code>query</code>, <code>positive</code>, and <code>negative</code>
|
| 268 |
+
* Approximate statistics based on the first 1000 samples:
|
| 269 |
+
| | score | query | positive | negative |
|
| 270 |
+
|:--------|:--------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|
|
| 271 |
+
| type | float | string | string | string |
|
| 272 |
+
| details | <ul><li>min: -1.29</li><li>mean: 13.64</li><li>max: 22.17</li></ul> | <ul><li>min: 11 characters</li><li>mean: 33.82 characters</li><li>max: 98 characters</li></ul> | <ul><li>min: 55 characters</li><li>mean: 360.68 characters</li><li>max: 990 characters</li></ul> | <ul><li>min: 57 characters</li><li>mean: 340.77 characters</li><li>max: 964 characters</li></ul> |
|
| 273 |
+
* Samples:
|
| 274 |
+
| score | query | positive | negative |
|
| 275 |
+
|:--------------------------------|:------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 276 |
+
| <code>18.650261163711548</code> | <code>what is mcafee sidewinder control center</code> | <code>McAfee Firewall Enterprise Control Center. McAfee Firewall Enterprise Control Center (CommandCenterâ¢) provides a central interface for simplifying the management of multiple McAfee Firewall Enterprise (Sidewinder®) appliances.</code> | <code>JSC's Mission Control â now formally known as the Christopher C. Kraft, Jr. Mission Control Center â has helped plan, support and operate every NASA human spaceflight mission since 1965.</code> |
|
| 277 |
+
| <code>14.571923971176147</code> | <code>where is cork ie</code> | <code>Cork, Irish Corcaigh (âMarshâ), seaport and seat of County Cork, in the province of Munster, Ireland. It is located at the head of Cork Harbour on the River Lee. Cork is, after Dublin, the Irish republicâs second largest conurbation. The city is administratively independent of the county.</code> | <code>suberin. (biochemistry). A fatty substance found in many plant cell walls, especially cork.</code> |
|
| 278 |
+
| <code>18.947856426239014</code> | <code>what is a embedded computer system</code> | <code>Embedded Computer Systems. An embedded system is a special-purpose system in which the computer is completely encapsulated by the device it controls. Unlike a general-purpose computer, such as a personal computer, an embedded system performs pre-defined tasks, usually with very specific requirements.</code> | <code>Confidence votes 13.4K. It means that an application (a software, a computer program) is not compatible (it doesn't work well or doesn't work at all)with the operating system running on a computer. Applications are software programs that you can download onto your computer and some mobile phones. A computer game, for example, is an application. An MP3 player system ⦠on your computer or phone is also an application.. + 12 others found this useful. Ashley Reeves. Answered.</code> |
|
| 279 |
+
* Loss: [<code>MarginMSELoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#marginmseloss) with these parameters:
|
| 280 |
+
```json
|
| 281 |
+
{
|
| 282 |
+
"activation_fn": "torch.nn.modules.linear.Identity"
|
| 283 |
+
}
|
| 284 |
+
```
|
| 285 |
+
|
| 286 |
+
### Training Hyperparameters
|
| 287 |
+
#### Non-Default Hyperparameters
|
| 288 |
+
|
| 289 |
+
- `eval_strategy`: steps
|
| 290 |
+
- `per_device_train_batch_size`: 16
|
| 291 |
+
- `per_device_eval_batch_size`: 16
|
| 292 |
+
- `learning_rate`: 8e-06
|
| 293 |
+
- `num_train_epochs`: 1
|
| 294 |
+
- `warmup_ratio`: 0.1
|
| 295 |
+
- `seed`: 12
|
| 296 |
+
- `bf16`: True
|
| 297 |
+
- `dataloader_num_workers`: 4
|
| 298 |
+
- `load_best_model_at_end`: True
|
| 299 |
+
|
| 300 |
+
#### All Hyperparameters
|
| 301 |
+
<details><summary>Click to expand</summary>
|
| 302 |
+
|
| 303 |
+
- `overwrite_output_dir`: False
|
| 304 |
+
- `do_predict`: False
|
| 305 |
+
- `eval_strategy`: steps
|
| 306 |
+
- `prediction_loss_only`: True
|
| 307 |
+
- `per_device_train_batch_size`: 16
|
| 308 |
+
- `per_device_eval_batch_size`: 16
|
| 309 |
+
- `per_gpu_train_batch_size`: None
|
| 310 |
+
- `per_gpu_eval_batch_size`: None
|
| 311 |
+
- `gradient_accumulation_steps`: 1
|
| 312 |
+
- `eval_accumulation_steps`: None
|
| 313 |
+
- `torch_empty_cache_steps`: None
|
| 314 |
+
- `learning_rate`: 8e-06
|
| 315 |
+
- `weight_decay`: 0.0
|
| 316 |
+
- `adam_beta1`: 0.9
|
| 317 |
+
- `adam_beta2`: 0.999
|
| 318 |
+
- `adam_epsilon`: 1e-08
|
| 319 |
+
- `max_grad_norm`: 1.0
|
| 320 |
+
- `num_train_epochs`: 1
|
| 321 |
+
- `max_steps`: -1
|
| 322 |
+
- `lr_scheduler_type`: linear
|
| 323 |
+
- `lr_scheduler_kwargs`: {}
|
| 324 |
+
- `warmup_ratio`: 0.1
|
| 325 |
+
- `warmup_steps`: 0
|
| 326 |
+
- `log_level`: passive
|
| 327 |
+
- `log_level_replica`: warning
|
| 328 |
+
- `log_on_each_node`: True
|
| 329 |
+
- `logging_nan_inf_filter`: True
|
| 330 |
+
- `save_safetensors`: True
|
| 331 |
+
- `save_on_each_node`: False
|
| 332 |
+
- `save_only_model`: False
|
| 333 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 334 |
+
- `no_cuda`: False
|
| 335 |
+
- `use_cpu`: False
|
| 336 |
+
- `use_mps_device`: False
|
| 337 |
+
- `seed`: 12
|
| 338 |
+
- `data_seed`: None
|
| 339 |
+
- `jit_mode_eval`: False
|
| 340 |
+
- `use_ipex`: False
|
| 341 |
+
- `bf16`: True
|
| 342 |
+
- `fp16`: False
|
| 343 |
+
- `fp16_opt_level`: O1
|
| 344 |
+
- `half_precision_backend`: auto
|
| 345 |
+
- `bf16_full_eval`: False
|
| 346 |
+
- `fp16_full_eval`: False
|
| 347 |
+
- `tf32`: None
|
| 348 |
+
- `local_rank`: 0
|
| 349 |
+
- `ddp_backend`: None
|
| 350 |
+
- `tpu_num_cores`: None
|
| 351 |
+
- `tpu_metrics_debug`: False
|
| 352 |
+
- `debug`: []
|
| 353 |
+
- `dataloader_drop_last`: False
|
| 354 |
+
- `dataloader_num_workers`: 4
|
| 355 |
+
- `dataloader_prefetch_factor`: None
|
| 356 |
+
- `past_index`: -1
|
| 357 |
+
- `disable_tqdm`: False
|
| 358 |
+
- `remove_unused_columns`: True
|
| 359 |
+
- `label_names`: None
|
| 360 |
+
- `load_best_model_at_end`: True
|
| 361 |
+
- `ignore_data_skip`: False
|
| 362 |
+
- `fsdp`: []
|
| 363 |
+
- `fsdp_min_num_params`: 0
|
| 364 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 365 |
+
- `tp_size`: 0
|
| 366 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
| 367 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 368 |
+
- `deepspeed`: None
|
| 369 |
+
- `label_smoothing_factor`: 0.0
|
| 370 |
+
- `optim`: adamw_torch
|
| 371 |
+
- `optim_args`: None
|
| 372 |
+
- `adafactor`: False
|
| 373 |
+
- `group_by_length`: False
|
| 374 |
+
- `length_column_name`: length
|
| 375 |
+
- `ddp_find_unused_parameters`: None
|
| 376 |
+
- `ddp_bucket_cap_mb`: None
|
| 377 |
+
- `ddp_broadcast_buffers`: False
|
| 378 |
+
- `dataloader_pin_memory`: True
|
| 379 |
+
- `dataloader_persistent_workers`: False
|
| 380 |
+
- `skip_memory_metrics`: True
|
| 381 |
+
- `use_legacy_prediction_loop`: False
|
| 382 |
+
- `push_to_hub`: False
|
| 383 |
+
- `resume_from_checkpoint`: None
|
| 384 |
+
- `hub_model_id`: None
|
| 385 |
+
- `hub_strategy`: every_save
|
| 386 |
+
- `hub_private_repo`: None
|
| 387 |
+
- `hub_always_push`: False
|
| 388 |
+
- `gradient_checkpointing`: False
|
| 389 |
+
- `gradient_checkpointing_kwargs`: None
|
| 390 |
+
- `include_inputs_for_metrics`: False
|
| 391 |
+
- `include_for_metrics`: []
|
| 392 |
+
- `eval_do_concat_batches`: True
|
| 393 |
+
- `fp16_backend`: auto
|
| 394 |
+
- `push_to_hub_model_id`: None
|
| 395 |
+
- `push_to_hub_organization`: None
|
| 396 |
+
- `mp_parameters`:
|
| 397 |
+
- `auto_find_batch_size`: False
|
| 398 |
+
- `full_determinism`: False
|
| 399 |
+
- `torchdynamo`: None
|
| 400 |
+
- `ray_scope`: last
|
| 401 |
+
- `ddp_timeout`: 1800
|
| 402 |
+
- `torch_compile`: False
|
| 403 |
+
- `torch_compile_backend`: None
|
| 404 |
+
- `torch_compile_mode`: None
|
| 405 |
+
- `include_tokens_per_second`: False
|
| 406 |
+
- `include_num_input_tokens_seen`: False
|
| 407 |
+
- `neftune_noise_alpha`: None
|
| 408 |
+
- `optim_target_modules`: None
|
| 409 |
+
- `batch_eval_metrics`: False
|
| 410 |
+
- `eval_on_start`: False
|
| 411 |
+
- `use_liger_kernel`: False
|
| 412 |
+
- `eval_use_gather_object`: False
|
| 413 |
+
- `average_tokens_across_devices`: False
|
| 414 |
+
- `prompts`: None
|
| 415 |
+
- `batch_sampler`: batch_sampler
|
| 416 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 417 |
+
- `router_mapping`: {}
|
| 418 |
+
- `learning_rate_mapping`: {}
|
| 419 |
+
|
| 420 |
+
</details>
|
| 421 |
+
|
| 422 |
+
### Training Logs
|
| 423 |
+
| Epoch | Step | Training Loss | Validation Loss | NanoMSMARCO_R100_ndcg@10 | NanoNFCorpus_R100_ndcg@10 | NanoNQ_R100_ndcg@10 | NanoBEIR_R100_mean_ndcg@10 |
|
| 424 |
+
|:---------:|:----------:|:-------------:|:---------------:|:------------------------:|:-------------------------:|:--------------------:|:--------------------------:|
|
| 425 |
+
| -1 | -1 | - | - | 0.0185 (-0.5220) | 0.1835 (-0.1415) | 0.0374 (-0.4632) | 0.0798 (-0.3756) |
|
| 426 |
+
| 0.0000 | 1 | 183.8208 | - | - | - | - | - |
|
| 427 |
+
| 0.0322 | 4000 | 148.9381 | - | - | - | - | - |
|
| 428 |
+
| 0.0643 | 8000 | 27.4436 | - | - | - | - | - |
|
| 429 |
+
| 0.0965 | 12000 | 8.3597 | - | - | - | - | - |
|
| 430 |
+
| 0.1286 | 16000 | 6.374 | - | - | - | - | - |
|
| 431 |
+
| 0.1608 | 20000 | 5.4584 | 4.7464 | 0.6619 (+0.1215) | 0.3947 (+0.0696) | 0.7165 (+0.2158) | 0.5910 (+0.1356) |
|
| 432 |
+
| 0.1930 | 24000 | 4.9963 | - | - | - | - | - |
|
| 433 |
+
| 0.2251 | 28000 | 4.6626 | - | - | - | - | - |
|
| 434 |
+
| 0.2573 | 32000 | 4.3576 | - | - | - | - | - |
|
| 435 |
+
| 0.2894 | 36000 | 4.1884 | - | - | - | - | - |
|
| 436 |
+
| 0.3216 | 40000 | 4.0283 | 4.4428 | 0.6594 (+0.1190) | 0.3927 (+0.0676) | 0.7435 (+0.2428) | 0.5985 (+0.1432) |
|
| 437 |
+
| 0.3538 | 44000 | 3.8617 | - | - | - | - | - |
|
| 438 |
+
| 0.3859 | 48000 | 3.734 | - | - | - | - | - |
|
| 439 |
+
| 0.4181 | 52000 | 3.5985 | - | - | - | - | - |
|
| 440 |
+
| 0.4503 | 56000 | 3.6228 | - | - | - | - | - |
|
| 441 |
+
| 0.4824 | 60000 | 3.4607 | 3.4983 | 0.6285 (+0.0881) | 0.4059 (+0.0809) | 0.7429 (+0.2423) | 0.5924 (+0.1371) |
|
| 442 |
+
| 0.5146 | 64000 | 3.4429 | - | - | - | - | - |
|
| 443 |
+
| 0.5467 | 68000 | 3.3256 | - | - | - | - | - |
|
| 444 |
+
| 0.5789 | 72000 | 3.2512 | - | - | - | - | - |
|
| 445 |
+
| 0.6111 | 76000 | 3.2302 | - | - | - | - | - |
|
| 446 |
+
| 0.6432 | 80000 | 3.1449 | 3.0647 | 0.6427 (+0.1023) | 0.4070 (+0.0820) | 0.7428 (+0.2421) | 0.5975 (+0.1421) |
|
| 447 |
+
| 0.6754 | 84000 | 3.1304 | - | - | - | - | - |
|
| 448 |
+
| 0.7075 | 88000 | 3.0615 | - | - | - | - | - |
|
| 449 |
+
| 0.7397 | 92000 | 3.0513 | - | - | - | - | - |
|
| 450 |
+
| 0.7719 | 96000 | 3.0657 | - | - | - | - | - |
|
| 451 |
+
| **0.804** | **100000** | **2.9726** | **3.0527** | **0.6364 (+0.0960)** | **0.4158 (+0.0907)** | **0.7557 (+0.2551)** | **0.6026 (+0.1473)** |
|
| 452 |
+
| 0.8362 | 104000 | 2.9537 | - | - | - | - | - |
|
| 453 |
+
| 0.8683 | 108000 | 2.9453 | - | - | - | - | - |
|
| 454 |
+
| 0.9005 | 112000 | 2.8856 | - | - | - | - | - |
|
| 455 |
+
| 0.9327 | 116000 | 2.9301 | - | - | - | - | - |
|
| 456 |
+
| 0.9648 | 120000 | 2.8464 | 2.9493 | 0.6475 (+0.1070) | 0.4105 (+0.0855) | 0.7406 (+0.2399) | 0.5995 (+0.1442) |
|
| 457 |
+
| 0.9970 | 124000 | 2.8968 | - | - | - | - | - |
|
| 458 |
+
| -1 | -1 | - | - | 0.6364 (+0.0960) | 0.4158 (+0.0907) | 0.7557 (+0.2551) | 0.6026 (+0.1473) |
|
| 459 |
+
|
| 460 |
+
* The bold row denotes the saved checkpoint.
|
| 461 |
+
|
| 462 |
+
### Framework Versions
|
| 463 |
+
- Python: 3.12.9
|
| 464 |
+
- Sentence Transformers: 5.1.2
|
| 465 |
+
- Transformers: 4.51.3
|
| 466 |
+
- PyTorch: 2.6.0
|
| 467 |
+
- Accelerate: 1.11.0
|
| 468 |
+
- Datasets: 3.6.0
|
| 469 |
+
- Tokenizers: 0.21.4
|
| 470 |
+
|
| 471 |
+
## Citation
|
| 472 |
+
|
| 473 |
+
### BibTeX
|
| 474 |
+
|
| 475 |
+
#### Sentence Transformers
|
| 476 |
+
```bibtex
|
| 477 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 478 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 479 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 480 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 481 |
+
month = "11",
|
| 482 |
+
year = "2019",
|
| 483 |
+
publisher = "Association for Computational Linguistics",
|
| 484 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 485 |
+
}
|
| 486 |
+
```
|
| 487 |
+
|
| 488 |
+
#### MarginMSELoss
|
| 489 |
+
```bibtex
|
| 490 |
+
@misc{hofstätter2021improving,
|
| 491 |
+
title={Improving Efficient Neural Ranking Models with Cross-Architecture Knowledge Distillation},
|
| 492 |
+
author={Sebastian Hofstätter and Sophia Althammer and Michael Schröder and Mete Sertkan and Allan Hanbury},
|
| 493 |
+
year={2021},
|
| 494 |
+
eprint={2010.02666},
|
| 495 |
+
archivePrefix={arXiv},
|
| 496 |
+
primaryClass={cs.IR}
|
| 497 |
+
}
|
| 498 |
+
```
|
| 499 |
+
|
| 500 |
+
<!--
|
| 501 |
+
## Glossary
|
| 502 |
+
|
| 503 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 504 |
+
-->
|
| 505 |
+
|
| 506 |
+
<!--
|
| 507 |
+
## Model Card Authors
|
| 508 |
+
|
| 509 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 510 |
+
-->
|
| 511 |
+
|
| 512 |
+
<!--
|
| 513 |
+
## Model Card Contact
|
| 514 |
+
|
| 515 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 516 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"BertForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"classifier_dropout": null,
|
| 7 |
+
"hidden_act": "gelu",
|
| 8 |
+
"hidden_dropout_prob": 0.1,
|
| 9 |
+
"hidden_size": 384,
|
| 10 |
+
"id2label": {
|
| 11 |
+
"0": "LABEL_0"
|
| 12 |
+
},
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 1536,
|
| 15 |
+
"label2id": {
|
| 16 |
+
"LABEL_0": 0
|
| 17 |
+
},
|
| 18 |
+
"layer_norm_eps": 1e-12,
|
| 19 |
+
"max_position_embeddings": 512,
|
| 20 |
+
"model_type": "bert",
|
| 21 |
+
"num_attention_heads": 12,
|
| 22 |
+
"num_hidden_layers": 12,
|
| 23 |
+
"pad_token_id": 0,
|
| 24 |
+
"position_embedding_type": "absolute",
|
| 25 |
+
"sentence_transformers": {
|
| 26 |
+
"activation_fn": "torch.nn.modules.activation.Sigmoid",
|
| 27 |
+
"version": "5.1.2"
|
| 28 |
+
},
|
| 29 |
+
"torch_dtype": "float32",
|
| 30 |
+
"transformers_version": "4.51.3",
|
| 31 |
+
"type_vocab_size": 2,
|
| 32 |
+
"use_cache": true,
|
| 33 |
+
"vocab_size": 30522
|
| 34 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:543fc56633f20a9f46725e1d69d7fa8d5a66f395bc0b8c7895dd224b4a911ec3
|
| 3 |
+
size 133464836
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": "[CLS]",
|
| 3 |
+
"mask_token": "[MASK]",
|
| 4 |
+
"pad_token": "[PAD]",
|
| 5 |
+
"sep_token": "[SEP]",
|
| 6 |
+
"unk_token": "[UNK]"
|
| 7 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "[PAD]",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"100": {
|
| 12 |
+
"content": "[UNK]",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"101": {
|
| 20 |
+
"content": "[CLS]",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"102": {
|
| 28 |
+
"content": "[SEP]",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"103": {
|
| 36 |
+
"content": "[MASK]",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"clean_up_tokenization_spaces": true,
|
| 45 |
+
"cls_token": "[CLS]",
|
| 46 |
+
"do_basic_tokenize": true,
|
| 47 |
+
"do_lower_case": true,
|
| 48 |
+
"extra_special_tokens": {},
|
| 49 |
+
"mask_token": "[MASK]",
|
| 50 |
+
"model_max_length": 512,
|
| 51 |
+
"never_split": null,
|
| 52 |
+
"pad_token": "[PAD]",
|
| 53 |
+
"sep_token": "[SEP]",
|
| 54 |
+
"strip_accents": null,
|
| 55 |
+
"tokenize_chinese_chars": true,
|
| 56 |
+
"tokenizer_class": "BertTokenizer",
|
| 57 |
+
"unk_token": "[UNK]"
|
| 58 |
+
}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|