Add new SentenceTransformer model.
Browse files- 0_WordEmbeddings/pytorch_model.bin +3 -0
- 0_WordEmbeddings/whitespacetokenizer_config.json +0 -0
- 0_WordEmbeddings/wordembedding_config.json +5 -0
- 1_LSTM/lstm_config.json +7 -0
- 1_LSTM/pytorch_model.bin +3 -0
- 2_Pooling/config.json +10 -0
- README.md +460 -0
- config_sentence_transformers.json +10 -0
- modules.json +20 -0
0_WordEmbeddings/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:57ae7e7c7ecc9d18987bac8c73da82d327ea4dc8c01aed9be40570c64b632ccc
|
3 |
+
size 480002490
|
0_WordEmbeddings/whitespacetokenizer_config.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
0_WordEmbeddings/wordembedding_config.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"tokenizer_class": "sentence_transformers.models.tokenizer.WhitespaceTokenizer.WhitespaceTokenizer",
|
3 |
+
"update_embeddings": false,
|
4 |
+
"max_seq_length": 1000000
|
5 |
+
}
|
1_LSTM/lstm_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"word_embedding_dimension": 300,
|
3 |
+
"hidden_dim": 1024,
|
4 |
+
"num_layers": 1,
|
5 |
+
"dropout": 0,
|
6 |
+
"bidirectional": true
|
7 |
+
}
|
1_LSTM/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:92e13924f5ee37e95e31a7dd6d14583f827fe588a8cd337f6264381e6346908d
|
3 |
+
size 43452346
|
2_Pooling/config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"word_embedding_dimension": 2048,
|
3 |
+
"pooling_mode_cls_token": false,
|
4 |
+
"pooling_mode_mean_tokens": true,
|
5 |
+
"pooling_mode_max_tokens": false,
|
6 |
+
"pooling_mode_mean_sqrt_len_tokens": false,
|
7 |
+
"pooling_mode_weightedmean_tokens": false,
|
8 |
+
"pooling_mode_lasttoken": false,
|
9 |
+
"include_prompt": true
|
10 |
+
}
|
README.md
ADDED
@@ -0,0 +1,460 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
library_name: sentence-transformers
|
5 |
+
tags:
|
6 |
+
- sentence-transformers
|
7 |
+
- sentence-similarity
|
8 |
+
- feature-extraction
|
9 |
+
- loss:CosineSimilarityLoss
|
10 |
+
metrics:
|
11 |
+
- pearson_cosine
|
12 |
+
- spearman_cosine
|
13 |
+
- pearson_manhattan
|
14 |
+
- spearman_manhattan
|
15 |
+
- pearson_euclidean
|
16 |
+
- spearman_euclidean
|
17 |
+
- pearson_dot
|
18 |
+
- spearman_dot
|
19 |
+
- pearson_max
|
20 |
+
- spearman_max
|
21 |
+
widget:
|
22 |
+
- source_sentence: A man is spitting.
|
23 |
+
sentences:
|
24 |
+
- A man is crying.
|
25 |
+
- Bombings kill 19 people in Iraq
|
26 |
+
- Three women are sitting near a wall.
|
27 |
+
- source_sentence: A plane in the sky.
|
28 |
+
sentences:
|
29 |
+
- Two airplanes in the sky.
|
30 |
+
- Suicide bomber strikes in Syria
|
31 |
+
- Two women posing with a baby.
|
32 |
+
- source_sentence: A woman is reading.
|
33 |
+
sentences:
|
34 |
+
- A woman is writing something.
|
35 |
+
- Some cyclists stop near a sign.
|
36 |
+
- Someone is greating a carrot.
|
37 |
+
- source_sentence: A man is speaking.
|
38 |
+
sentences:
|
39 |
+
- A man is talking.
|
40 |
+
- Bombings kill 19 people in Iraq
|
41 |
+
- Kittens are eating food on trays.
|
42 |
+
- source_sentence: a woman has a child.
|
43 |
+
sentences:
|
44 |
+
- A pregnant woman is in labor
|
45 |
+
- Some cyclists stop near a sign.
|
46 |
+
- Someone is stirring chili in a kettle.
|
47 |
+
pipeline_tag: sentence-similarity
|
48 |
+
co2_eq_emissions:
|
49 |
+
emissions: 0.17244918455341185
|
50 |
+
energy_consumed: 0.0004436539677012515
|
51 |
+
source: codecarbon
|
52 |
+
training_type: fine-tuning
|
53 |
+
on_cloud: false
|
54 |
+
cpu_model: 13th Gen Intel(R) Core(TM) i7-13700K
|
55 |
+
ram_total_size: 31.777088165283203
|
56 |
+
hours_used: 0.003
|
57 |
+
hardware_used: 1 x NVIDIA GeForce RTX 3090
|
58 |
+
model-index:
|
59 |
+
- name: SentenceTransformer
|
60 |
+
results:
|
61 |
+
- task:
|
62 |
+
type: semantic-similarity
|
63 |
+
name: Semantic Similarity
|
64 |
+
dataset:
|
65 |
+
name: sts dev
|
66 |
+
type: sts-dev
|
67 |
+
metrics:
|
68 |
+
- type: pearson_cosine
|
69 |
+
value: 0.7708672762349984
|
70 |
+
name: Pearson Cosine
|
71 |
+
- type: spearman_cosine
|
72 |
+
value: 0.7657600316758283
|
73 |
+
name: Spearman Cosine
|
74 |
+
- type: pearson_manhattan
|
75 |
+
value: 0.7474564039693722
|
76 |
+
name: Pearson Manhattan
|
77 |
+
- type: spearman_manhattan
|
78 |
+
value: 0.75228158575576
|
79 |
+
name: Spearman Manhattan
|
80 |
+
- type: pearson_euclidean
|
81 |
+
value: 0.7489387720530025
|
82 |
+
name: Pearson Euclidean
|
83 |
+
- type: spearman_euclidean
|
84 |
+
value: 0.7541126864285251
|
85 |
+
name: Spearman Euclidean
|
86 |
+
- type: pearson_dot
|
87 |
+
value: 0.6124844196169514
|
88 |
+
name: Pearson Dot
|
89 |
+
- type: spearman_dot
|
90 |
+
value: 0.6662313602123413
|
91 |
+
name: Spearman Dot
|
92 |
+
- type: pearson_max
|
93 |
+
value: 0.7708672762349984
|
94 |
+
name: Pearson Max
|
95 |
+
- type: spearman_max
|
96 |
+
value: 0.7657600316758283
|
97 |
+
name: Spearman Max
|
98 |
+
---
|
99 |
+
|
100 |
+
# SentenceTransformer
|
101 |
+
|
102 |
+
This is a [sentence-transformers](https://www.SBERT.net) model trained on the [sentence-transformers/stsb](https://huggingface.co/datasets/sentence-transformers/stsb) dataset. It maps sentences & paragraphs to a 2048-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
|
103 |
+
|
104 |
+
## Model Details
|
105 |
+
|
106 |
+
### Model Description
|
107 |
+
- **Model Type:** Sentence Transformer
|
108 |
+
<!-- - **Base model:** [Unknown](https://huggingface.co/unknown) -->
|
109 |
+
- **Maximum Sequence Length:** 1000000 tokens
|
110 |
+
- **Output Dimensionality:** 2048 tokens
|
111 |
+
- **Similarity Function:** Cosine Similarity
|
112 |
+
- **Training Dataset:**
|
113 |
+
- [sentence-transformers/stsb](https://huggingface.co/datasets/sentence-transformers/stsb)
|
114 |
+
- **Language:** en
|
115 |
+
<!-- - **License:** Unknown -->
|
116 |
+
|
117 |
+
### Model Sources
|
118 |
+
|
119 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
120 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
121 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
122 |
+
|
123 |
+
### Full Model Architecture
|
124 |
+
|
125 |
+
```
|
126 |
+
SentenceTransformer(
|
127 |
+
(0): WordEmbeddings(
|
128 |
+
(emb_layer): Embedding(400001, 300)
|
129 |
+
)
|
130 |
+
(1): LSTM(
|
131 |
+
(encoder): LSTM(300, 1024, batch_first=True, bidirectional=True)
|
132 |
+
)
|
133 |
+
(2): Pooling({'word_embedding_dimension': 2048, '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})
|
134 |
+
)
|
135 |
+
```
|
136 |
+
|
137 |
+
## Usage
|
138 |
+
|
139 |
+
### Direct Usage (Sentence Transformers)
|
140 |
+
|
141 |
+
First install the Sentence Transformers library:
|
142 |
+
|
143 |
+
```bash
|
144 |
+
pip install -U sentence-transformers
|
145 |
+
```
|
146 |
+
|
147 |
+
Then you can load this model and run inference.
|
148 |
+
```python
|
149 |
+
from sentence_transformers import SentenceTransformer
|
150 |
+
|
151 |
+
# Download from the 🤗 Hub
|
152 |
+
model = SentenceTransformer("tomaarsen/glove-bilstm-sts")
|
153 |
+
# Run inference
|
154 |
+
sentences = [
|
155 |
+
'a woman has a child.',
|
156 |
+
'A pregnant woman is in labor',
|
157 |
+
'Some cyclists stop near a sign.',
|
158 |
+
]
|
159 |
+
embeddings = model.encode(sentences)
|
160 |
+
print(embeddings.shape)
|
161 |
+
# [3, 2048]
|
162 |
+
|
163 |
+
# Get the similarity scores for the embeddings
|
164 |
+
similarities = model.similarity(embeddings)
|
165 |
+
print(similarities.shape)
|
166 |
+
# [3, 3]
|
167 |
+
```
|
168 |
+
|
169 |
+
<!--
|
170 |
+
### Direct Usage (Transformers)
|
171 |
+
|
172 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
173 |
+
|
174 |
+
</details>
|
175 |
+
-->
|
176 |
+
|
177 |
+
<!--
|
178 |
+
### Downstream Usage (Sentence Transformers)
|
179 |
+
|
180 |
+
You can finetune this model on your own dataset.
|
181 |
+
|
182 |
+
<details><summary>Click to expand</summary>
|
183 |
+
|
184 |
+
</details>
|
185 |
+
-->
|
186 |
+
|
187 |
+
<!--
|
188 |
+
### Out-of-Scope Use
|
189 |
+
|
190 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
191 |
+
-->
|
192 |
+
|
193 |
+
## Evaluation
|
194 |
+
|
195 |
+
### Metrics
|
196 |
+
|
197 |
+
#### Semantic Similarity
|
198 |
+
* Dataset: `sts-dev`
|
199 |
+
* Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
|
200 |
+
|
201 |
+
| Metric | Value |
|
202 |
+
|:--------------------|:-----------|
|
203 |
+
| pearson_cosine | 0.7709 |
|
204 |
+
| **spearman_cosine** | **0.7658** |
|
205 |
+
| pearson_manhattan | 0.7475 |
|
206 |
+
| spearman_manhattan | 0.7523 |
|
207 |
+
| pearson_euclidean | 0.7489 |
|
208 |
+
| spearman_euclidean | 0.7541 |
|
209 |
+
| pearson_dot | 0.6125 |
|
210 |
+
| spearman_dot | 0.6662 |
|
211 |
+
| pearson_max | 0.7709 |
|
212 |
+
| spearman_max | 0.7658 |
|
213 |
+
|
214 |
+
<!--
|
215 |
+
## Bias, Risks and Limitations
|
216 |
+
|
217 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
218 |
+
-->
|
219 |
+
|
220 |
+
<!--
|
221 |
+
### Recommendations
|
222 |
+
|
223 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
224 |
+
-->
|
225 |
+
|
226 |
+
## Training Details
|
227 |
+
|
228 |
+
### Training Dataset
|
229 |
+
|
230 |
+
#### sentence-transformers/stsb
|
231 |
+
|
232 |
+
* Dataset: [sentence-transformers/stsb](https://huggingface.co/datasets/sentence-transformers/stsb) at [d999f12](https://huggingface.co/datasets/sentence-transformers/stsb/tree/d999f12281623b0925506817d9bd85e88289218a)
|
233 |
+
* Size: 5,749 training samples
|
234 |
+
* Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
|
235 |
+
* Approximate statistics based on the first 1000 samples:
|
236 |
+
| | sentence1 | sentence2 | score |
|
237 |
+
|:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
238 |
+
| type | string | string | float |
|
239 |
+
| details | <ul><li>min: 1 tokens</li><li>mean: 3.38 tokens</li><li>max: 11 tokens</li></ul> | <ul><li>min: 1 tokens</li><li>mean: 3.39 tokens</li><li>max: 10 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.54</li><li>max: 1.0</li></ul> |
|
240 |
+
* Samples:
|
241 |
+
| sentence1 | sentence2 | score |
|
242 |
+
|:-----------------------------------------------------------|:----------------------------------------------------------------------|:------------------|
|
243 |
+
| <code>A plane is taking off.</code> | <code>An air plane is taking off.</code> | <code>1.0</code> |
|
244 |
+
| <code>A man is playing a large flute.</code> | <code>A man is playing a flute.</code> | <code>0.76</code> |
|
245 |
+
| <code>A man is spreading shreded cheese on a pizza.</code> | <code>A man is spreading shredded cheese on an uncooked pizza.</code> | <code>0.76</code> |
|
246 |
+
* Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/losses.html#cosinesimilarityloss) with these parameters:
|
247 |
+
```json
|
248 |
+
{
|
249 |
+
"loss_fct": "torch.nn.modules.loss.MSELoss"
|
250 |
+
}
|
251 |
+
```
|
252 |
+
|
253 |
+
### Evaluation Dataset
|
254 |
+
|
255 |
+
#### sentence-transformers/stsb
|
256 |
+
|
257 |
+
* Dataset: [sentence-transformers/stsb](https://huggingface.co/datasets/sentence-transformers/stsb) at [d999f12](https://huggingface.co/datasets/sentence-transformers/stsb/tree/d999f12281623b0925506817d9bd85e88289218a)
|
258 |
+
* Size: 1,500 evaluation samples
|
259 |
+
* Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
|
260 |
+
* Approximate statistics based on the first 1000 samples:
|
261 |
+
| | sentence1 | sentence2 | score |
|
262 |
+
|:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
263 |
+
| type | string | string | float |
|
264 |
+
| details | <ul><li>min: 1 tokens</li><li>mean: 5.17 tokens</li><li>max: 12 tokens</li></ul> | <ul><li>min: 1 tokens</li><li>mean: 5.08 tokens</li><li>max: 15 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.47</li><li>max: 1.0</li></ul> |
|
265 |
+
* Samples:
|
266 |
+
| sentence1 | sentence2 | score |
|
267 |
+
|:--------------------------------------------------|:------------------------------------------------------|:------------------|
|
268 |
+
| <code>A man with a hard hat is dancing.</code> | <code>A man wearing a hard hat is dancing.</code> | <code>1.0</code> |
|
269 |
+
| <code>A young child is riding a horse.</code> | <code>A child is riding a horse.</code> | <code>0.95</code> |
|
270 |
+
| <code>A man is feeding a mouse to a snake.</code> | <code>The man is feeding a mouse to the snake.</code> | <code>1.0</code> |
|
271 |
+
* Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/losses.html#cosinesimilarityloss) with these parameters:
|
272 |
+
```json
|
273 |
+
{
|
274 |
+
"loss_fct": "torch.nn.modules.loss.MSELoss"
|
275 |
+
}
|
276 |
+
```
|
277 |
+
|
278 |
+
### Training Hyperparameters
|
279 |
+
#### Non-Default Hyperparameters
|
280 |
+
|
281 |
+
- `eval_strategy`: steps
|
282 |
+
- `per_device_train_batch_size`: 32
|
283 |
+
- `per_device_eval_batch_size`: 32
|
284 |
+
- `num_train_epochs`: 1
|
285 |
+
- `warmup_ratio`: 0.1
|
286 |
+
- `fp16`: True
|
287 |
+
|
288 |
+
#### All Hyperparameters
|
289 |
+
<details><summary>Click to expand</summary>
|
290 |
+
|
291 |
+
- `overwrite_output_dir`: False
|
292 |
+
- `do_predict`: False
|
293 |
+
- `eval_strategy`: steps
|
294 |
+
- `prediction_loss_only`: False
|
295 |
+
- `per_device_train_batch_size`: 32
|
296 |
+
- `per_device_eval_batch_size`: 32
|
297 |
+
- `per_gpu_train_batch_size`: None
|
298 |
+
- `per_gpu_eval_batch_size`: None
|
299 |
+
- `gradient_accumulation_steps`: 1
|
300 |
+
- `eval_accumulation_steps`: None
|
301 |
+
- `learning_rate`: 5e-05
|
302 |
+
- `weight_decay`: 0.0
|
303 |
+
- `adam_beta1`: 0.9
|
304 |
+
- `adam_beta2`: 0.999
|
305 |
+
- `adam_epsilon`: 1e-08
|
306 |
+
- `max_grad_norm`: 1.0
|
307 |
+
- `num_train_epochs`: 1
|
308 |
+
- `max_steps`: -1
|
309 |
+
- `lr_scheduler_type`: linear
|
310 |
+
- `lr_scheduler_kwargs`: {}
|
311 |
+
- `warmup_ratio`: 0.1
|
312 |
+
- `warmup_steps`: 0
|
313 |
+
- `log_level`: passive
|
314 |
+
- `log_level_replica`: warning
|
315 |
+
- `log_on_each_node`: True
|
316 |
+
- `logging_nan_inf_filter`: True
|
317 |
+
- `save_safetensors`: True
|
318 |
+
- `save_on_each_node`: False
|
319 |
+
- `save_only_model`: False
|
320 |
+
- `no_cuda`: False
|
321 |
+
- `use_cpu`: False
|
322 |
+
- `use_mps_device`: False
|
323 |
+
- `seed`: 42
|
324 |
+
- `data_seed`: None
|
325 |
+
- `jit_mode_eval`: False
|
326 |
+
- `use_ipex`: False
|
327 |
+
- `bf16`: False
|
328 |
+
- `fp16`: True
|
329 |
+
- `fp16_opt_level`: O1
|
330 |
+
- `half_precision_backend`: auto
|
331 |
+
- `bf16_full_eval`: False
|
332 |
+
- `fp16_full_eval`: False
|
333 |
+
- `tf32`: None
|
334 |
+
- `local_rank`: 0
|
335 |
+
- `ddp_backend`: None
|
336 |
+
- `tpu_num_cores`: None
|
337 |
+
- `tpu_metrics_debug`: False
|
338 |
+
- `debug`: []
|
339 |
+
- `dataloader_drop_last`: False
|
340 |
+
- `dataloader_num_workers`: 0
|
341 |
+
- `dataloader_prefetch_factor`: None
|
342 |
+
- `past_index`: -1
|
343 |
+
- `disable_tqdm`: False
|
344 |
+
- `remove_unused_columns`: True
|
345 |
+
- `label_names`: None
|
346 |
+
- `load_best_model_at_end`: False
|
347 |
+
- `ignore_data_skip`: False
|
348 |
+
- `fsdp`: []
|
349 |
+
- `fsdp_min_num_params`: 0
|
350 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
351 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
352 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
353 |
+
- `deepspeed`: None
|
354 |
+
- `label_smoothing_factor`: 0.0
|
355 |
+
- `optim`: adamw_torch
|
356 |
+
- `optim_args`: None
|
357 |
+
- `adafactor`: False
|
358 |
+
- `group_by_length`: False
|
359 |
+
- `length_column_name`: length
|
360 |
+
- `ddp_find_unused_parameters`: None
|
361 |
+
- `ddp_bucket_cap_mb`: None
|
362 |
+
- `ddp_broadcast_buffers`: None
|
363 |
+
- `dataloader_pin_memory`: True
|
364 |
+
- `dataloader_persistent_workers`: False
|
365 |
+
- `skip_memory_metrics`: True
|
366 |
+
- `use_legacy_prediction_loop`: False
|
367 |
+
- `push_to_hub`: False
|
368 |
+
- `resume_from_checkpoint`: None
|
369 |
+
- `hub_model_id`: None
|
370 |
+
- `hub_strategy`: every_save
|
371 |
+
- `hub_private_repo`: False
|
372 |
+
- `hub_always_push`: False
|
373 |
+
- `gradient_checkpointing`: False
|
374 |
+
- `gradient_checkpointing_kwargs`: None
|
375 |
+
- `include_inputs_for_metrics`: False
|
376 |
+
- `eval_do_concat_batches`: True
|
377 |
+
- `fp16_backend`: auto
|
378 |
+
- `push_to_hub_model_id`: None
|
379 |
+
- `push_to_hub_organization`: None
|
380 |
+
- `mp_parameters`:
|
381 |
+
- `auto_find_batch_size`: False
|
382 |
+
- `full_determinism`: False
|
383 |
+
- `torchdynamo`: None
|
384 |
+
- `ray_scope`: last
|
385 |
+
- `ddp_timeout`: 1800
|
386 |
+
- `torch_compile`: False
|
387 |
+
- `torch_compile_backend`: None
|
388 |
+
- `torch_compile_mode`: None
|
389 |
+
- `dispatch_batches`: None
|
390 |
+
- `split_batches`: None
|
391 |
+
- `include_tokens_per_second`: False
|
392 |
+
- `include_num_input_tokens_seen`: False
|
393 |
+
- `neftune_noise_alpha`: None
|
394 |
+
- `optim_target_modules`: None
|
395 |
+
- `batch_sampler`: batch_sampler
|
396 |
+
- `multi_dataset_batch_sampler`: proportional
|
397 |
+
|
398 |
+
</details>
|
399 |
+
|
400 |
+
### Training Logs
|
401 |
+
| Epoch | Step | Training Loss | loss | sts-dev_spearman_cosine |
|
402 |
+
|:------:|:----:|:-------------:|:------:|:-----------------------:|
|
403 |
+
| 0.5556 | 100 | 0.0809 | 0.0566 | 0.7658 |
|
404 |
+
|
405 |
+
|
406 |
+
### Environmental Impact
|
407 |
+
Carbon emissions were measured using [CodeCarbon](https://github.com/mlco2/codecarbon).
|
408 |
+
- **Energy Consumed**: 0.000 kWh
|
409 |
+
- **Carbon Emitted**: 0.000 kg of CO2
|
410 |
+
- **Hours Used**: 0.003 hours
|
411 |
+
|
412 |
+
### Training Hardware
|
413 |
+
- **On Cloud**: No
|
414 |
+
- **GPU Model**: 1 x NVIDIA GeForce RTX 3090
|
415 |
+
- **CPU Model**: 13th Gen Intel(R) Core(TM) i7-13700K
|
416 |
+
- **RAM Size**: 31.78 GB
|
417 |
+
|
418 |
+
### Framework Versions
|
419 |
+
- Python: 3.11.6
|
420 |
+
- Sentence Transformers: 3.0.0.dev0
|
421 |
+
- Transformers: 4.41.0.dev0
|
422 |
+
- PyTorch: 2.3.0+cu121
|
423 |
+
- Accelerate: 0.26.1
|
424 |
+
- Datasets: 2.18.0
|
425 |
+
- Tokenizers: 0.19.1
|
426 |
+
|
427 |
+
## Citation
|
428 |
+
|
429 |
+
### BibTeX
|
430 |
+
|
431 |
+
#### Sentence Transformers
|
432 |
+
```bibtex
|
433 |
+
@inproceedings{reimers-2019-sentence-bert,
|
434 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
435 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
436 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
437 |
+
month = "11",
|
438 |
+
year = "2019",
|
439 |
+
publisher = "Association for Computational Linguistics",
|
440 |
+
url = "https://arxiv.org/abs/1908.10084",
|
441 |
+
}
|
442 |
+
```
|
443 |
+
|
444 |
+
<!--
|
445 |
+
## Glossary
|
446 |
+
|
447 |
+
*Clearly define terms in order to be accessible across audiences.*
|
448 |
+
-->
|
449 |
+
|
450 |
+
<!--
|
451 |
+
## Model Card Authors
|
452 |
+
|
453 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
454 |
+
-->
|
455 |
+
|
456 |
+
<!--
|
457 |
+
## Model Card Contact
|
458 |
+
|
459 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
460 |
+
-->
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "3.0.0.dev0",
|
4 |
+
"transformers": "4.41.0.dev0",
|
5 |
+
"pytorch": "2.3.0+cu121"
|
6 |
+
},
|
7 |
+
"prompts": {},
|
8 |
+
"default_prompt_name": null,
|
9 |
+
"similarity_fn_name": null
|
10 |
+
}
|
modules.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"idx": 0,
|
4 |
+
"name": "0",
|
5 |
+
"path": "0_WordEmbeddings",
|
6 |
+
"type": "sentence_transformers.models.WordEmbeddings"
|
7 |
+
},
|
8 |
+
{
|
9 |
+
"idx": 1,
|
10 |
+
"name": "1",
|
11 |
+
"path": "1_LSTM",
|
12 |
+
"type": "sentence_transformers.models.LSTM"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"idx": 2,
|
16 |
+
"name": "2",
|
17 |
+
"path": "2_Pooling",
|
18 |
+
"type": "sentence_transformers.models.Pooling"
|
19 |
+
}
|
20 |
+
]
|