Add new SentenceTransformer model
Browse files- 1_Pooling/config.json +10 -0
- README.md +351 -0
- config.json +32 -0
- config_sentence_transformers.json +10 -0
- model.safetensors +3 -0
- modules.json +20 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- vocab.txt +0 -0
1_Pooling/config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"word_embedding_dimension": 1024,
|
3 |
+
"pooling_mode_cls_token": true,
|
4 |
+
"pooling_mode_mean_tokens": false,
|
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,351 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: BAAI/bge-large-en-v1.5
|
3 |
+
library_name: sentence-transformers
|
4 |
+
pipeline_tag: sentence-similarity
|
5 |
+
tags:
|
6 |
+
- sentence-transformers
|
7 |
+
- sentence-similarity
|
8 |
+
- feature-extraction
|
9 |
+
- generated_from_trainer
|
10 |
+
- dataset_size:4370
|
11 |
+
- loss:CosineSimilarityLoss
|
12 |
+
widget:
|
13 |
+
- source_sentence: ' The misconception lies in incorrectly aligning decimal points
|
14 |
+
during addition, leading to an improper sum.'
|
15 |
+
sentences:
|
16 |
+
- Converts a fraction to a percentage by placing a decimal point between the numerator
|
17 |
+
and denominator
|
18 |
+
- When two digits sum to 10 or more during an addition problem, does not add one
|
19 |
+
to the preceding digit
|
20 |
+
- Confuses square rooting and halving the number
|
21 |
+
- source_sentence: ' The misconception was misunderstanding the direction of translation,
|
22 |
+
thinking the movement was upwards or to the right instead of left and down.'
|
23 |
+
sentences:
|
24 |
+
- Adds or subtracts from numerator first when solving an equation with a fraction
|
25 |
+
- When asked for the mean of a list of data, gives the mode
|
26 |
+
- 'Counts the squares rather than the diagonals when reflecting in y=x or y=-x '
|
27 |
+
- source_sentence: ' The misconception lies in the incorrect application of the order
|
28 |
+
of operations (BIDMAS/PEMDAS), specifically the grouping of operations without
|
29 |
+
properly respecting the hierarchy of division and addition.'
|
30 |
+
sentences:
|
31 |
+
- Believes multiplying two negatives gives a negative answer
|
32 |
+
- Carries out operations from left to right regardless of priority order
|
33 |
+
- Includes the x variable when giving the equation of a horizontal line
|
34 |
+
- source_sentence: ' The misconception is that adjacent angles on a straight line
|
35 |
+
are not necessarily supplementary and can sum to any value less than \( 180^{\circ}
|
36 |
+
\).'
|
37 |
+
sentences:
|
38 |
+
- Believes angles on a straight line add to 100 degrees
|
39 |
+
- Thinks only labelled dimensions need to be included when calculating the perimeter
|
40 |
+
- 'Cannot reflect shape when line of symmetry is diagonal '
|
41 |
+
- source_sentence: ' The misconception is adding the absolute values without considering
|
42 |
+
the sign change, leading to an incorrect sum.'
|
43 |
+
sentences:
|
44 |
+
- Counts on in the wrong direction on a number line
|
45 |
+
- Simplifies a fraction by adding or subtracting the same amount from the numerator and
|
46 |
+
denominator
|
47 |
+
- Believes multiplying two negatives gives a negative answer
|
48 |
+
---
|
49 |
+
|
50 |
+
# SentenceTransformer based on BAAI/bge-large-en-v1.5
|
51 |
+
|
52 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-large-en-v1.5](https://huggingface.co/BAAI/bge-large-en-v1.5). 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.
|
53 |
+
|
54 |
+
## Model Details
|
55 |
+
|
56 |
+
### Model Description
|
57 |
+
- **Model Type:** Sentence Transformer
|
58 |
+
- **Base model:** [BAAI/bge-large-en-v1.5](https://huggingface.co/BAAI/bge-large-en-v1.5) <!-- at revision d4aa6901d3a41ba39fb536a557fa166f842b0e09 -->
|
59 |
+
- **Maximum Sequence Length:** 512 tokens
|
60 |
+
- **Output Dimensionality:** 1024 tokens
|
61 |
+
- **Similarity Function:** Cosine Similarity
|
62 |
+
<!-- - **Training Dataset:** Unknown -->
|
63 |
+
<!-- - **Language:** Unknown -->
|
64 |
+
<!-- - **License:** Unknown -->
|
65 |
+
|
66 |
+
### Model Sources
|
67 |
+
|
68 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
69 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
70 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
71 |
+
|
72 |
+
### Full Model Architecture
|
73 |
+
|
74 |
+
```
|
75 |
+
SentenceTransformer(
|
76 |
+
(0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
|
77 |
+
(1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
|
78 |
+
(2): Normalize()
|
79 |
+
)
|
80 |
+
```
|
81 |
+
|
82 |
+
## Usage
|
83 |
+
|
84 |
+
### Direct Usage (Sentence Transformers)
|
85 |
+
|
86 |
+
First install the Sentence Transformers library:
|
87 |
+
|
88 |
+
```bash
|
89 |
+
pip install -U sentence-transformers
|
90 |
+
```
|
91 |
+
|
92 |
+
Then you can load this model and run inference.
|
93 |
+
```python
|
94 |
+
from sentence_transformers import SentenceTransformer
|
95 |
+
|
96 |
+
# Download from the 🤗 Hub
|
97 |
+
model = SentenceTransformer("VaggP/fine-tuned-bge-large")
|
98 |
+
# Run inference
|
99 |
+
sentences = [
|
100 |
+
' The misconception is adding the absolute values without considering the sign change, leading to an incorrect sum.',
|
101 |
+
'Counts on in the wrong direction on a number line',
|
102 |
+
'Simplifies a fraction by adding or subtracting the same amount from the numerator and denominator',
|
103 |
+
]
|
104 |
+
embeddings = model.encode(sentences)
|
105 |
+
print(embeddings.shape)
|
106 |
+
# [3, 1024]
|
107 |
+
|
108 |
+
# Get the similarity scores for the embeddings
|
109 |
+
similarities = model.similarity(embeddings, embeddings)
|
110 |
+
print(similarities.shape)
|
111 |
+
# [3, 3]
|
112 |
+
```
|
113 |
+
|
114 |
+
<!--
|
115 |
+
### Direct Usage (Transformers)
|
116 |
+
|
117 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
118 |
+
|
119 |
+
</details>
|
120 |
+
-->
|
121 |
+
|
122 |
+
<!--
|
123 |
+
### Downstream Usage (Sentence Transformers)
|
124 |
+
|
125 |
+
You can finetune this model on your own dataset.
|
126 |
+
|
127 |
+
<details><summary>Click to expand</summary>
|
128 |
+
|
129 |
+
</details>
|
130 |
+
-->
|
131 |
+
|
132 |
+
<!--
|
133 |
+
### Out-of-Scope Use
|
134 |
+
|
135 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
136 |
+
-->
|
137 |
+
|
138 |
+
<!--
|
139 |
+
## Bias, Risks and Limitations
|
140 |
+
|
141 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
142 |
+
-->
|
143 |
+
|
144 |
+
<!--
|
145 |
+
### Recommendations
|
146 |
+
|
147 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
148 |
+
-->
|
149 |
+
|
150 |
+
## Training Details
|
151 |
+
|
152 |
+
### Training Dataset
|
153 |
+
|
154 |
+
#### Unnamed Dataset
|
155 |
+
|
156 |
+
|
157 |
+
* Size: 4,370 training samples
|
158 |
+
* Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
|
159 |
+
* Approximate statistics based on the first 1000 samples:
|
160 |
+
| | sentence_0 | sentence_1 | label |
|
161 |
+
|:--------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------|
|
162 |
+
| type | string | string | float |
|
163 |
+
| details | <ul><li>min: 11 tokens</li><li>mean: 32.08 tokens</li><li>max: 84 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 15.01 tokens</li><li>max: 39 tokens</li></ul> | <ul><li>min: 1.0</li><li>mean: 1.0</li><li>max: 1.0</li></ul> |
|
164 |
+
* Samples:
|
165 |
+
| sentence_0 | sentence_1 | label |
|
166 |
+
|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------|:-----------------|
|
167 |
+
| <code> The misconception lies in confusing the tangent ratio (opposite/adjacent) with the sine ratio (opposite/hypotenuse).</code> | <code>Uses tan when sin is required</code> | <code>1.0</code> |
|
168 |
+
| <code> The misconception lies in not properly aligning decimal places during addition.</code> | <code>When adding decimals with a different number of decimal places, lines up the digits incorrectly</code> | <code>1.0</code> |
|
169 |
+
| <code> The misconception was in misunderstanding the relationship between the area of a square and its side length, incorrectly assuming the side length is the square root of the area squared.</code> | <code>Confuses perimeter and area</code> | <code>1.0</code> |
|
170 |
+
* Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
|
171 |
+
```json
|
172 |
+
{
|
173 |
+
"loss_fct": "torch.nn.modules.loss.MSELoss"
|
174 |
+
}
|
175 |
+
```
|
176 |
+
|
177 |
+
### Training Hyperparameters
|
178 |
+
#### Non-Default Hyperparameters
|
179 |
+
|
180 |
+
- `per_device_train_batch_size`: 16
|
181 |
+
- `per_device_eval_batch_size`: 16
|
182 |
+
- `num_train_epochs`: 2
|
183 |
+
- `multi_dataset_batch_sampler`: round_robin
|
184 |
+
|
185 |
+
#### All Hyperparameters
|
186 |
+
<details><summary>Click to expand</summary>
|
187 |
+
|
188 |
+
- `overwrite_output_dir`: False
|
189 |
+
- `do_predict`: False
|
190 |
+
- `eval_strategy`: no
|
191 |
+
- `prediction_loss_only`: True
|
192 |
+
- `per_device_train_batch_size`: 16
|
193 |
+
- `per_device_eval_batch_size`: 16
|
194 |
+
- `per_gpu_train_batch_size`: None
|
195 |
+
- `per_gpu_eval_batch_size`: None
|
196 |
+
- `gradient_accumulation_steps`: 1
|
197 |
+
- `eval_accumulation_steps`: None
|
198 |
+
- `torch_empty_cache_steps`: None
|
199 |
+
- `learning_rate`: 5e-05
|
200 |
+
- `weight_decay`: 0.0
|
201 |
+
- `adam_beta1`: 0.9
|
202 |
+
- `adam_beta2`: 0.999
|
203 |
+
- `adam_epsilon`: 1e-08
|
204 |
+
- `max_grad_norm`: 1
|
205 |
+
- `num_train_epochs`: 2
|
206 |
+
- `max_steps`: -1
|
207 |
+
- `lr_scheduler_type`: linear
|
208 |
+
- `lr_scheduler_kwargs`: {}
|
209 |
+
- `warmup_ratio`: 0.0
|
210 |
+
- `warmup_steps`: 0
|
211 |
+
- `log_level`: passive
|
212 |
+
- `log_level_replica`: warning
|
213 |
+
- `log_on_each_node`: True
|
214 |
+
- `logging_nan_inf_filter`: True
|
215 |
+
- `save_safetensors`: True
|
216 |
+
- `save_on_each_node`: False
|
217 |
+
- `save_only_model`: False
|
218 |
+
- `restore_callback_states_from_checkpoint`: False
|
219 |
+
- `no_cuda`: False
|
220 |
+
- `use_cpu`: False
|
221 |
+
- `use_mps_device`: False
|
222 |
+
- `seed`: 42
|
223 |
+
- `data_seed`: None
|
224 |
+
- `jit_mode_eval`: False
|
225 |
+
- `use_ipex`: False
|
226 |
+
- `bf16`: False
|
227 |
+
- `fp16`: False
|
228 |
+
- `fp16_opt_level`: O1
|
229 |
+
- `half_precision_backend`: auto
|
230 |
+
- `bf16_full_eval`: False
|
231 |
+
- `fp16_full_eval`: False
|
232 |
+
- `tf32`: None
|
233 |
+
- `local_rank`: 0
|
234 |
+
- `ddp_backend`: None
|
235 |
+
- `tpu_num_cores`: None
|
236 |
+
- `tpu_metrics_debug`: False
|
237 |
+
- `debug`: []
|
238 |
+
- `dataloader_drop_last`: False
|
239 |
+
- `dataloader_num_workers`: 0
|
240 |
+
- `dataloader_prefetch_factor`: None
|
241 |
+
- `past_index`: -1
|
242 |
+
- `disable_tqdm`: False
|
243 |
+
- `remove_unused_columns`: True
|
244 |
+
- `label_names`: None
|
245 |
+
- `load_best_model_at_end`: False
|
246 |
+
- `ignore_data_skip`: False
|
247 |
+
- `fsdp`: []
|
248 |
+
- `fsdp_min_num_params`: 0
|
249 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
250 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
251 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
252 |
+
- `deepspeed`: None
|
253 |
+
- `label_smoothing_factor`: 0.0
|
254 |
+
- `optim`: adamw_torch
|
255 |
+
- `optim_args`: None
|
256 |
+
- `adafactor`: False
|
257 |
+
- `group_by_length`: False
|
258 |
+
- `length_column_name`: length
|
259 |
+
- `ddp_find_unused_parameters`: None
|
260 |
+
- `ddp_bucket_cap_mb`: None
|
261 |
+
- `ddp_broadcast_buffers`: False
|
262 |
+
- `dataloader_pin_memory`: True
|
263 |
+
- `dataloader_persistent_workers`: False
|
264 |
+
- `skip_memory_metrics`: True
|
265 |
+
- `use_legacy_prediction_loop`: False
|
266 |
+
- `push_to_hub`: False
|
267 |
+
- `resume_from_checkpoint`: None
|
268 |
+
- `hub_model_id`: None
|
269 |
+
- `hub_strategy`: every_save
|
270 |
+
- `hub_private_repo`: False
|
271 |
+
- `hub_always_push`: False
|
272 |
+
- `gradient_checkpointing`: False
|
273 |
+
- `gradient_checkpointing_kwargs`: None
|
274 |
+
- `include_inputs_for_metrics`: False
|
275 |
+
- `eval_do_concat_batches`: True
|
276 |
+
- `fp16_backend`: auto
|
277 |
+
- `push_to_hub_model_id`: None
|
278 |
+
- `push_to_hub_organization`: None
|
279 |
+
- `mp_parameters`:
|
280 |
+
- `auto_find_batch_size`: False
|
281 |
+
- `full_determinism`: False
|
282 |
+
- `torchdynamo`: None
|
283 |
+
- `ray_scope`: last
|
284 |
+
- `ddp_timeout`: 1800
|
285 |
+
- `torch_compile`: False
|
286 |
+
- `torch_compile_backend`: None
|
287 |
+
- `torch_compile_mode`: None
|
288 |
+
- `dispatch_batches`: None
|
289 |
+
- `split_batches`: None
|
290 |
+
- `include_tokens_per_second`: False
|
291 |
+
- `include_num_input_tokens_seen`: False
|
292 |
+
- `neftune_noise_alpha`: None
|
293 |
+
- `optim_target_modules`: None
|
294 |
+
- `batch_eval_metrics`: False
|
295 |
+
- `eval_on_start`: False
|
296 |
+
- `use_liger_kernel`: False
|
297 |
+
- `eval_use_gather_object`: False
|
298 |
+
- `batch_sampler`: batch_sampler
|
299 |
+
- `multi_dataset_batch_sampler`: round_robin
|
300 |
+
|
301 |
+
</details>
|
302 |
+
|
303 |
+
### Training Logs
|
304 |
+
| Epoch | Step | Training Loss |
|
305 |
+
|:------:|:----:|:-------------:|
|
306 |
+
| 1.8248 | 500 | 0.0056 |
|
307 |
+
|
308 |
+
|
309 |
+
### Framework Versions
|
310 |
+
- Python: 3.10.14
|
311 |
+
- Sentence Transformers: 3.2.0
|
312 |
+
- Transformers: 4.45.1
|
313 |
+
- PyTorch: 2.4.0
|
314 |
+
- Accelerate: 0.34.2
|
315 |
+
- Datasets: 3.0.1
|
316 |
+
- Tokenizers: 0.20.0
|
317 |
+
|
318 |
+
## Citation
|
319 |
+
|
320 |
+
### BibTeX
|
321 |
+
|
322 |
+
#### Sentence Transformers
|
323 |
+
```bibtex
|
324 |
+
@inproceedings{reimers-2019-sentence-bert,
|
325 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
326 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
327 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
328 |
+
month = "11",
|
329 |
+
year = "2019",
|
330 |
+
publisher = "Association for Computational Linguistics",
|
331 |
+
url = "https://arxiv.org/abs/1908.10084",
|
332 |
+
}
|
333 |
+
```
|
334 |
+
|
335 |
+
<!--
|
336 |
+
## Glossary
|
337 |
+
|
338 |
+
*Clearly define terms in order to be accessible across audiences.*
|
339 |
+
-->
|
340 |
+
|
341 |
+
<!--
|
342 |
+
## Model Card Authors
|
343 |
+
|
344 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
345 |
+
-->
|
346 |
+
|
347 |
+
<!--
|
348 |
+
## Model Card Contact
|
349 |
+
|
350 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
351 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "BAAI/bge-large-en-v1.5",
|
3 |
+
"architectures": [
|
4 |
+
"BertModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 1024,
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0"
|
14 |
+
},
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 4096,
|
17 |
+
"label2id": {
|
18 |
+
"LABEL_0": 0
|
19 |
+
},
|
20 |
+
"layer_norm_eps": 1e-12,
|
21 |
+
"max_position_embeddings": 512,
|
22 |
+
"model_type": "bert",
|
23 |
+
"num_attention_heads": 16,
|
24 |
+
"num_hidden_layers": 24,
|
25 |
+
"pad_token_id": 0,
|
26 |
+
"position_embedding_type": "absolute",
|
27 |
+
"torch_dtype": "float32",
|
28 |
+
"transformers_version": "4.45.1",
|
29 |
+
"type_vocab_size": 2,
|
30 |
+
"use_cache": true,
|
31 |
+
"vocab_size": 30522
|
32 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "3.2.0",
|
4 |
+
"transformers": "4.45.1",
|
5 |
+
"pytorch": "2.4.0"
|
6 |
+
},
|
7 |
+
"prompts": {},
|
8 |
+
"default_prompt_name": null,
|
9 |
+
"similarity_fn_name": null
|
10 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:417e32bf703ddc5712e57b38c73b2740f23f8dc01c795c3a577360b688639ffa
|
3 |
+
size 1340612432
|
modules.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"idx": 0,
|
4 |
+
"name": "0",
|
5 |
+
"path": "",
|
6 |
+
"type": "sentence_transformers.models.Transformer"
|
7 |
+
},
|
8 |
+
{
|
9 |
+
"idx": 1,
|
10 |
+
"name": "1",
|
11 |
+
"path": "1_Pooling",
|
12 |
+
"type": "sentence_transformers.models.Pooling"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"idx": 2,
|
16 |
+
"name": "2",
|
17 |
+
"path": "2_Normalize",
|
18 |
+
"type": "sentence_transformers.models.Normalize"
|
19 |
+
}
|
20 |
+
]
|
sentence_bert_config.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"max_seq_length": 512,
|
3 |
+
"do_lower_case": true
|
4 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": {
|
3 |
+
"content": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"mask_token": {
|
10 |
+
"content": "[MASK]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "[PAD]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"sep_token": {
|
24 |
+
"content": "[SEP]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"unk_token": {
|
31 |
+
"content": "[UNK]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
}
|
37 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 512,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "BertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|