DigitalAsocial commited on
Commit
2505d27
·
verified ·
1 Parent(s): 6c3db1a

Upload 10 files

Browse files
README.md CHANGED
@@ -1,84 +1,447 @@
1
- ---
2
- license: apache-2.0
3
- language:
4
- - en
5
- base_model:
6
- - sentence-transformers/all-MiniLM-L6-v2
7
- tags:
8
- - data science
9
- - Machine Learning
10
- metrics:
11
- - spearmanr
12
- - pearsonr
13
- library_name: sentence-transformers
14
- ---
15
- # Fine-tuned all-MiniLM-L6-v2 for Data Science
16
-
17
- ## Model Details
18
- - **Base model:** [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2)
19
- - **Architecture:** Transformer-based sentence embedding model
20
- - **License:** Apache 2.0
21
- - **Fine-tuned by:** Digital Asocial
22
- - **Languages:** English
23
-
24
- This model is a fine-tuned version of all-MiniLM-L6-v2, optimized for semantic embeddings in the domain of Data Science and Machine Learning.
25
-
26
- ---
27
-
28
- ## Intended Uses
29
- - Semantic search in Data Science and Machine Learning literature
30
- - Embedding generation for academic projects, research, and applied ML tasks
31
- - Document clustering, similarity search, and retrieval-augmented generation (RAG) pipelines
32
-
33
- ⚠️ **Not intended for:** verbatim reproduction of copyrighted texts.
34
-
35
- ---
36
-
37
- ## Training Data
38
- The model was fine-tuned using 17 reference books in Data Science and Machine Learning, including:
39
-
40
- 1. Aßenmacher, Matthias. *Multimodal Deep Learning*. Self-published, 2023.
41
- 2. Bertsekas, Dimitri P. *A Course in Reinforcement Learning*. Arizona State University.
42
- 3. Boykis, Vicki. *What are Embeddings*. Self-published, 2023.
43
- 4. Bruce, Peter, and Andrew Bruce. *Practical Statistics for Data Scientists: 50 Essential Concepts*. O’Reilly Media, 2017.
44
- 5. Daumé III, Hal. *A Course in Machine Learning*. Self-published.
45
- 6. Deisenroth, Marc Peter, A. Aldo Faisal, and Cheng Soon Ong. *Mathematics for Machine Learning*. Cambridge University Press, 2020.
46
- 7. Devlin, Hannah, Guo Kunin, Xiang Tian. *Seeing Theory*. Self-published.
47
- 8. Gutmann, Michael U. *Pen & Paper: Exercises in Machine Learning*. Self-published.
48
- 9. Jung, Alexander. *Machine Learning: The Basics*. Springer, 2022.
49
- 10. Langr, Jakub, and Vladimir Bok. *Deep Learning with Generative Adversarial Networks*. Manning Publications, 2019.
50
- 11. MacKay, David J.C. *Information Theory, Inference, and Learning Algorithms*. Cambridge University Press, 2003.
51
- 12. Montgomery, Douglas C., Cheryl L. Jennings, and Murat Kulahci. *Introduction to Time Series Analysis and Forecasting*. 2nd Edition, Wiley, 2015.
52
- 13. Nilsson, Nils J. *Introduction to Machine Learning: An Early Draft of a Proposed Textbook*. Stanford University, 1996.
53
- 14. Prince, Simon J.D. *Understanding Deep Learning*. Draft Edition, 2024.
54
- 15. Shashua, Amnon. *Introduction to Machine Learning*. The Hebrew University of Jerusalem, 2008.
55
- 16. Sutton, Richard S., and Andrew G. Barto. *Reinforcement Learning: An Introduction*. 2nd Edition, MIT Press, 2018.
56
- 17. Alpaydin, Ethem. *Introduction to Machine Learning*. 3rd Edition, MIT Press, 2014.
57
-
58
- ⚠️ **Note:** Due to copyright restrictions, the full text of these books is **not included** in this repository. Only the fine-tuned model weights are shared.
59
-
60
- ---
61
-
62
- ## Limitations
63
- - The model may reflect biases present in the training material.
64
- - It should not be used to regenerate or distribute copyrighted content.
65
- - Performance is optimized for Data Science texts; results may vary in other domains.
66
-
67
- ---
68
-
69
- ## License
70
- - Base model: Apache 2.0 (Microsoft)
71
- - Fine-tuned model: distributed under Apache 2.0
72
- - Training data: proprietary or mixed-license sources. Not redistributed.
73
-
74
- ---
75
-
76
- ## Citation
77
- If you use this model, please cite:
78
- @misc{digitalasocial2025rag,
79
- author = {digitalasocial},
80
- title = {Fine-tuned all-mpnet-base-v2 for Data Science RAG},
81
- year = {2025},
82
- howpublished = {\url{https://huggingface.co/your-hf-username/all-mpnet-base-v2-ds-rag}}
83
- }
84
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:167112
9
+ - loss:MultipleNegativesRankingLoss
10
+ widget:
11
+ - source_sentence: Our final beliefs about θ combine both the relevant information
12
+ we had a priori and the knowledge we gained a posteriori by observing data.
13
+ sentences:
14
+ - To get an understanding of what the Bayesian machinery looks like in action, let
15
+ us return to our coin toss example.
16
+ - In each case, the model returns a vector of size N that contains the probabilities
17
+ of the N categories.
18
+ - For the moment, in fact, let us consider draws and losses to be equally bad for
19
+ us.
20
+ - source_sentence: 57, 58, 62, 63, 77, 87, 91, 104, 137, 159, 261 logistic regression
21
+ Logistic regression aims at learning a linear hypothesis map to predict a binary
22
+ label based on numeric features of a data point.
23
+ sentences:
24
+ - Transfer learning is enabled by constructing regularization terms for a learning
25
+ task by using the result of a previous leaning task.
26
+ - Propose a tree induction algorithm with backtracking.
27
+ - The quality of a linear hypothesis map (classifier) is measured using its average
28
+ logistic loss on some labeled datapoints (the training set).
29
+ - source_sentence: The fourth column in table 2 .9 shows the Shannon information
30
+ content of the 27 possible outcomes when a random character is picked from an
31
+ English document.
32
+ sentences:
33
+ - 'If you are ready, let''s load up ye olde, trusty machine learning libraries and
34
+ get cracking: import tensorflow as tf import keras as K
35
+
36
+
37
+ In the code, progressive smoothing in may look something like the following listing.'
38
+ - The test set, which is constructed in step 3 of Algorithm 7, consists of data
39
+ points that are neither contained in the training set (6.9) nor the validation
40
+ set (6.11) used for training and validating the candidate models H (1) , .
41
+ - 'The entropy of an ensemble X is defined to be the average Shannon information
42
+ content of an outcome:
43
+
44
+
45
+ with the convention for P (x) = 0 that 0 × log 1/0 0, since lim θ→0 + θ log
46
+ 1/θ = 0.'
47
+ - source_sentence: where β is known as the Lipschitz constant and determines the maximum
48
+ gradient of the function (i.e., how fast the function can change) with respect
49
+ to the distance metric.
50
+ sentences:
51
+ - First, let's consider the evidence that depth is required.
52
+ - 'By hand side of equation 7.17, we have:
53
+
54
+
55
+ The derivative ∂ℓ i /∂f 3 of the loss i with respect to the network output
56
+ f 3 will depend on the loss function but usually has a simple form.'
57
+ - If the Lipschitz constant is less than one, the function is a contraction mapping,
58
+ and we can use Banach's theorem to find the inverse for any point (see figure 16
59
+ .9).
60
+ - source_sentence: Can you explain why this might have been so?
61
+ sentences:
62
+ - See http://www.cs.utexas.edu/~ikarpov/Classes/RL/RandomWalk/ for an attempt
63
+ at a thorough answer by Igor Karpov.
64
+ - We describe methods to choose the initial weights k and biases β k so that training
65
+ is stable.
66
+ - (3.42) is used widely in practice.
67
+ pipeline_tag: sentence-similarity
68
+ library_name: sentence-transformers
69
+ metrics:
70
+ - pearson_cosine
71
+ - spearman_cosine
72
+ model-index:
73
+ - name: SentenceTransformer
74
+ results:
75
+ - task:
76
+ type: semantic-similarity
77
+ name: Semantic Similarity
78
+ dataset:
79
+ name: val
80
+ type: val
81
+ metrics:
82
+ - type: pearson_cosine
83
+ value: .nan
84
+ name: Pearson Cosine
85
+ - type: spearman_cosine
86
+ value: .nan
87
+ name: Spearman Cosine
88
+ ---
89
+
90
+ # SentenceTransformer
91
+
92
+ This is a [sentence-transformers](https://www.SBERT.net) model trained. It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
93
+
94
+ ## Model Details
95
+
96
+ ### Model Description
97
+ - **Model Type:** Sentence Transformer
98
+ <!-- - **Base model:** [Unknown](https://huggingface.co/unknown) -->
99
+ - **Maximum Sequence Length:** 256 tokens
100
+ - **Output Dimensionality:** 384 dimensions
101
+ - **Similarity Function:** Cosine Similarity
102
+ <!-- - **Training Dataset:** Unknown -->
103
+ <!-- - **Language:** Unknown -->
104
+ <!-- - **License:** Unknown -->
105
+
106
+ ### Model Sources
107
+
108
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
109
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
110
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
111
+
112
+ ### Full Model Architecture
113
+
114
+ ```
115
+ SentenceTransformer(
116
+ (0): Transformer({'max_seq_length': 256, 'do_lower_case': False, 'architecture': 'BertModel'})
117
+ (1): Pooling({'word_embedding_dimension': 384, '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})
118
+ (2): Normalize()
119
+ )
120
+ ```
121
+
122
+ ## Usage
123
+
124
+ ### Direct Usage (Sentence Transformers)
125
+
126
+ First install the Sentence Transformers library:
127
+
128
+ ```bash
129
+ pip install -U sentence-transformers
130
+ ```
131
+
132
+ Then you can load this model and run inference.
133
+ ```python
134
+ from sentence_transformers import SentenceTransformer
135
+
136
+ # Download from the 🤗 Hub
137
+ model = SentenceTransformer("sentence_transformers_model_id")
138
+ # Run inference
139
+ sentences = [
140
+ 'Can you explain why this might have been so?',
141
+ 'See http://www.cs.utexas.edu/~ikarpov/Classes/RL/RandomWalk/ for an attempt at a thorough answer by Igor Karpov.',
142
+ 'We describe methods to choose the initial weights Ω k and biases β k so that training is stable.',
143
+ ]
144
+ embeddings = model.encode(sentences)
145
+ print(embeddings.shape)
146
+ # [3, 384]
147
+
148
+ # Get the similarity scores for the embeddings
149
+ similarities = model.similarity(embeddings, embeddings)
150
+ print(similarities)
151
+ # tensor([[1.0000, 0.3878, 0.2539],
152
+ # [0.3878, 1.0000, 0.2993],
153
+ # [0.2539, 0.2993, 1.0000]])
154
+ ```
155
+
156
+ <!--
157
+ ### Direct Usage (Transformers)
158
+
159
+ <details><summary>Click to see the direct usage in Transformers</summary>
160
+
161
+ </details>
162
+ -->
163
+
164
+ <!--
165
+ ### Downstream Usage (Sentence Transformers)
166
+
167
+ You can finetune this model on your own dataset.
168
+
169
+ <details><summary>Click to expand</summary>
170
+
171
+ </details>
172
+ -->
173
+
174
+ <!--
175
+ ### Out-of-Scope Use
176
+
177
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
178
+ -->
179
+
180
+ ## Evaluation
181
+
182
+ ### Metrics
183
+
184
+ #### Semantic Similarity
185
+
186
+ * Dataset: `val`
187
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
188
+
189
+ | Metric | Value |
190
+ |:--------------------|:--------|
191
+ | pearson_cosine | nan |
192
+ | **spearman_cosine** | **nan** |
193
+
194
+ <!--
195
+ ## Bias, Risks and Limitations
196
+
197
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
198
+ -->
199
+
200
+ <!--
201
+ ### Recommendations
202
+
203
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
204
+ -->
205
+
206
+ ## Training Details
207
+
208
+ ### Training Dataset
209
+
210
+ #### Unnamed Dataset
211
+
212
+ * Size: 167,112 training samples
213
+ * Columns: <code>sentence_0</code> and <code>sentence_1</code>
214
+ * Approximate statistics based on the first 1000 samples:
215
+ | | sentence_0 | sentence_1 |
216
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
217
+ | type | string | string |
218
+ | details | <ul><li>min: 7 tokens</li><li>mean: 31.92 tokens</li><li>max: 256 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 33.66 tokens</li><li>max: 256 tokens</li></ul> |
219
+ * Samples:
220
+ | sentence_0 | sentence_1 |
221
+ |:-------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------|
222
+ | <code>On the other hand, squared loss thinks it's just as bad to predict +3 on a positive example as it is to predict -1 on a positive example.</code> | <code>If you replace to zero/one loss with a surrogate loss, you obtain the following objective:<br><br>The question is: what should R(w, b) look like?</code> |
223
+ | <code>Why does the update step set the 'mean' to the mean of the assigned points?</code> | <code>Where did the distance d come from?</code> |
224
+ | <code>We start with a training set {x i } of real 1D examples.</code> | <code>A different batch of ten of these examples {x i } 10 i=1 is shown in each panel (cyan arrows).</code> |
225
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
226
+ ```json
227
+ {
228
+ "scale": 20.0,
229
+ "similarity_fct": "cos_sim",
230
+ "gather_across_devices": false
231
+ }
232
+ ```
233
+
234
+ ### Training Hyperparameters
235
+ #### Non-Default Hyperparameters
236
+
237
+ - `per_device_train_batch_size`: 16
238
+ - `per_device_eval_batch_size`: 16
239
+ - `num_train_epochs`: 15
240
+ - `multi_dataset_batch_sampler`: round_robin
241
+
242
+ #### All Hyperparameters
243
+ <details><summary>Click to expand</summary>
244
+
245
+ - `overwrite_output_dir`: False
246
+ - `do_predict`: False
247
+ - `eval_strategy`: no
248
+ - `prediction_loss_only`: True
249
+ - `per_device_train_batch_size`: 16
250
+ - `per_device_eval_batch_size`: 16
251
+ - `per_gpu_train_batch_size`: None
252
+ - `per_gpu_eval_batch_size`: None
253
+ - `gradient_accumulation_steps`: 1
254
+ - `eval_accumulation_steps`: None
255
+ - `torch_empty_cache_steps`: None
256
+ - `learning_rate`: 5e-05
257
+ - `weight_decay`: 0.0
258
+ - `adam_beta1`: 0.9
259
+ - `adam_beta2`: 0.999
260
+ - `adam_epsilon`: 1e-08
261
+ - `max_grad_norm`: 1
262
+ - `num_train_epochs`: 15
263
+ - `max_steps`: -1
264
+ - `lr_scheduler_type`: linear
265
+ - `lr_scheduler_kwargs`: {}
266
+ - `warmup_ratio`: 0.0
267
+ - `warmup_steps`: 0
268
+ - `log_level`: passive
269
+ - `log_level_replica`: warning
270
+ - `log_on_each_node`: True
271
+ - `logging_nan_inf_filter`: True
272
+ - `save_safetensors`: True
273
+ - `save_on_each_node`: False
274
+ - `save_only_model`: False
275
+ - `restore_callback_states_from_checkpoint`: False
276
+ - `no_cuda`: False
277
+ - `use_cpu`: False
278
+ - `use_mps_device`: False
279
+ - `seed`: 42
280
+ - `data_seed`: None
281
+ - `jit_mode_eval`: False
282
+ - `bf16`: False
283
+ - `fp16`: False
284
+ - `fp16_opt_level`: O1
285
+ - `half_precision_backend`: auto
286
+ - `bf16_full_eval`: False
287
+ - `fp16_full_eval`: False
288
+ - `tf32`: None
289
+ - `local_rank`: 0
290
+ - `ddp_backend`: None
291
+ - `tpu_num_cores`: None
292
+ - `tpu_metrics_debug`: False
293
+ - `debug`: []
294
+ - `dataloader_drop_last`: False
295
+ - `dataloader_num_workers`: 0
296
+ - `dataloader_prefetch_factor`: None
297
+ - `past_index`: -1
298
+ - `disable_tqdm`: False
299
+ - `remove_unused_columns`: True
300
+ - `label_names`: None
301
+ - `load_best_model_at_end`: False
302
+ - `ignore_data_skip`: False
303
+ - `fsdp`: []
304
+ - `fsdp_min_num_params`: 0
305
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
306
+ - `fsdp_transformer_layer_cls_to_wrap`: None
307
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
308
+ - `parallelism_config`: None
309
+ - `deepspeed`: None
310
+ - `label_smoothing_factor`: 0.0
311
+ - `optim`: adamw_torch
312
+ - `optim_args`: None
313
+ - `adafactor`: False
314
+ - `group_by_length`: False
315
+ - `length_column_name`: length
316
+ - `project`: huggingface
317
+ - `trackio_space_id`: trackio
318
+ - `ddp_find_unused_parameters`: None
319
+ - `ddp_bucket_cap_mb`: None
320
+ - `ddp_broadcast_buffers`: False
321
+ - `dataloader_pin_memory`: True
322
+ - `dataloader_persistent_workers`: False
323
+ - `skip_memory_metrics`: True
324
+ - `use_legacy_prediction_loop`: False
325
+ - `push_to_hub`: False
326
+ - `resume_from_checkpoint`: None
327
+ - `hub_model_id`: None
328
+ - `hub_strategy`: every_save
329
+ - `hub_private_repo`: None
330
+ - `hub_always_push`: False
331
+ - `hub_revision`: None
332
+ - `gradient_checkpointing`: False
333
+ - `gradient_checkpointing_kwargs`: None
334
+ - `include_inputs_for_metrics`: False
335
+ - `include_for_metrics`: []
336
+ - `eval_do_concat_batches`: True
337
+ - `fp16_backend`: auto
338
+ - `push_to_hub_model_id`: None
339
+ - `push_to_hub_organization`: None
340
+ - `mp_parameters`:
341
+ - `auto_find_batch_size`: False
342
+ - `full_determinism`: False
343
+ - `torchdynamo`: None
344
+ - `ray_scope`: last
345
+ - `ddp_timeout`: 1800
346
+ - `torch_compile`: False
347
+ - `torch_compile_backend`: None
348
+ - `torch_compile_mode`: None
349
+ - `include_tokens_per_second`: False
350
+ - `include_num_input_tokens_seen`: no
351
+ - `neftune_noise_alpha`: None
352
+ - `optim_target_modules`: None
353
+ - `batch_eval_metrics`: False
354
+ - `eval_on_start`: False
355
+ - `use_liger_kernel`: False
356
+ - `liger_kernel_config`: None
357
+ - `eval_use_gather_object`: False
358
+ - `average_tokens_across_devices`: True
359
+ - `prompts`: None
360
+ - `batch_sampler`: batch_sampler
361
+ - `multi_dataset_batch_sampler`: round_robin
362
+ - `router_mapping`: {}
363
+ - `learning_rate_mapping`: {}
364
+
365
+ </details>
366
+
367
+ ### Training Logs
368
+ | Epoch | Step | Training Loss | val_spearman_cosine |
369
+ |:------:|:-----:|:-------------:|:-------------------:|
370
+ | 0.0479 | 500 | 1.5544 | - |
371
+ | 0.0957 | 1000 | 1.5054 | - |
372
+ | 0.1436 | 1500 | 1.4649 | - |
373
+ | 0.1915 | 2000 | 1.4132 | - |
374
+ | 0.2393 | 2500 | 1.3963 | - |
375
+ | 0.2872 | 3000 | 1.3248 | - |
376
+ | 0.3351 | 3500 | 1.3158 | - |
377
+ | 0.3830 | 4000 | 1.2871 | - |
378
+ | 0.4308 | 4500 | 1.2491 | - |
379
+ | 0.4787 | 5000 | 1.1982 | - |
380
+ | 0.5266 | 5500 | 1.1764 | - |
381
+ | 0.5744 | 6000 | 1.1958 | - |
382
+ | 0.6223 | 6500 | 1.1286 | - |
383
+ | 0.6702 | 7000 | 1.1255 | - |
384
+ | 0.7180 | 7500 | 1.0662 | - |
385
+ | 0.7659 | 8000 | 1.0896 | - |
386
+ | 0.8138 | 8500 | 1.0574 | - |
387
+ | 0.8617 | 9000 | 1.0571 | - |
388
+ | 0.9095 | 9500 | 1.0138 | - |
389
+ | 0.9574 | 10000 | 0.9956 | - |
390
+ | 1.0 | 10445 | - | nan |
391
+
392
+
393
+ ### Framework Versions
394
+ - Python: 3.11.7
395
+ - Sentence Transformers: 5.1.1
396
+ - Transformers: 4.57.0
397
+ - PyTorch: 2.5.1+cu121
398
+ - Accelerate: 1.10.1
399
+ - Datasets: 4.2.0
400
+ - Tokenizers: 0.22.1
401
+
402
+ ## Citation
403
+
404
+ ### BibTeX
405
+
406
+ #### Sentence Transformers
407
+ ```bibtex
408
+ @inproceedings{reimers-2019-sentence-bert,
409
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
410
+ author = "Reimers, Nils and Gurevych, Iryna",
411
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
412
+ month = "11",
413
+ year = "2019",
414
+ publisher = "Association for Computational Linguistics",
415
+ url = "https://arxiv.org/abs/1908.10084",
416
+ }
417
+ ```
418
+
419
+ #### MultipleNegativesRankingLoss
420
+ ```bibtex
421
+ @misc{henderson2017efficient,
422
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
423
+ author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
424
+ year={2017},
425
+ eprint={1705.00652},
426
+ archivePrefix={arXiv},
427
+ primaryClass={cs.CL}
428
+ }
429
+ ```
430
+
431
+ <!--
432
+ ## Glossary
433
+
434
+ *Clearly define terms in order to be accessible across audiences.*
435
+ -->
436
+
437
+ <!--
438
+ ## Model Card Authors
439
+
440
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
441
+ -->
442
+
443
+ <!--
444
+ ## Model Card Contact
445
+
446
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
447
+ -->
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "dtype": "float32",
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 384,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 1536,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 6,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "transformers_version": "4.57.0",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 30522
25
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "5.1.1",
4
+ "transformers": "4.57.0",
5
+ "pytorch": "2.5.1+cu121"
6
+ },
7
+ "model_type": "SentenceTransformer",
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:752e9b710420fc2732918c4e295f8e68d561ccd673602d7ec7f16b0ba0fe06e7
3
+ size 90864192
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": 256,
3
+ "do_lower_case": false
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,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 128,
51
+ "model_max_length": 256,
52
+ "never_split": null,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "[PAD]",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "[SEP]",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "[UNK]"
65
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff