achapman commited on
Commit
e77855f
1 Parent(s): d52f231

Upload folder using huggingface_hub

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
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,636 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Snowflake/snowflake-arctic-embed-m
3
+ library_name: sentence-transformers
4
+ metrics:
5
+ - cosine_accuracy@1
6
+ - cosine_accuracy@3
7
+ - cosine_accuracy@5
8
+ - cosine_accuracy@10
9
+ - cosine_precision@1
10
+ - cosine_precision@3
11
+ - cosine_precision@5
12
+ - cosine_precision@10
13
+ - cosine_recall@1
14
+ - cosine_recall@3
15
+ - cosine_recall@5
16
+ - cosine_recall@10
17
+ - cosine_ndcg@10
18
+ - cosine_mrr@10
19
+ - cosine_map@100
20
+ - dot_accuracy@1
21
+ - dot_accuracy@3
22
+ - dot_accuracy@5
23
+ - dot_accuracy@10
24
+ - dot_precision@1
25
+ - dot_precision@3
26
+ - dot_precision@5
27
+ - dot_precision@10
28
+ - dot_recall@1
29
+ - dot_recall@3
30
+ - dot_recall@5
31
+ - dot_recall@10
32
+ - dot_ndcg@10
33
+ - dot_mrr@10
34
+ - dot_map@100
35
+ pipeline_tag: sentence-similarity
36
+ tags:
37
+ - sentence-transformers
38
+ - sentence-similarity
39
+ - feature-extraction
40
+ - generated_from_trainer
41
+ - dataset_size:600
42
+ - loss:MatryoshkaLoss
43
+ - loss:MultipleNegativesRankingLoss
44
+ widget:
45
+ - source_sentence: What considerations should be taken into account regarding the
46
+ specific set or types of users for the AI system?
47
+ sentences:
48
+ - "46 \nMG-4.3-003 \nReport GAI incidents in compliance with legal and regulatory\
49
+ \ requirements (e.g., \nHIPAA breach reporting, e.g., OCR (2023) or NHTSA (2022)\
50
+ \ autonomous vehicle \ncrash reporting requirements. \nInformation Security; Data\
51
+ \ Privacy \nAI Actor Tasks: AI Deployment, Affected Individuals and Communities,\
52
+ \ Domain Experts, End-Users, Human Factors, Operation and \nMonitoring"
53
+ - "reporting, data protection, data privacy, or other laws. \nData Privacy; Human-AI\
54
+ \ \nConfiguration; Information \nSecurity; Value Chain and \nComponent Integration;\
55
+ \ Harmful \nBias and Homogenization \nGV-6.2-004 \nEstablish policies and procedures\
56
+ \ for continuous monitoring of third-party GAI \nsystems in deployment. \nValue\
57
+ \ Chain and Component \nIntegration \nGV-6.2-005 \nEstablish policies and procedures\
58
+ \ that address GAI data redundancy, including \nmodel weights and other system\
59
+ \ artifacts."
60
+ - "times, and availability of critical support. \nHuman-AI Configuration; \nInformation\
61
+ \ Security; Value Chain \nand Component Integration \nAI Actor Tasks: AI Deployment,\
62
+ \ Operation and Monitoring, TEVV, Third-party entities \n \nMAP 1.1: Intended\
63
+ \ purposes, potentially beneficial uses, context specific laws, norms and expectations,\
64
+ \ and prospective settings in \nwhich the AI system will be deployed are understood\
65
+ \ and documented. Considerations include: the specific set or types of users"
66
+ - source_sentence: What should organizations leverage when deploying GAI applications
67
+ and using third-party pre-trained models?
68
+ sentences:
69
+ - "external use, narrow vs. broad application scope, fine-tuning, and varieties of\
70
+ \ \ndata sources (e.g., grounding, retrieval-augmented generation). \nData Privacy;\
71
+ \ Intellectual \nProperty"
72
+ - "44 \nMG-3.2-007 \nLeverage feedback and recommendations from organizational boards\
73
+ \ or \ncommittees related to the deployment of GAI applications and content \n\
74
+ provenance when using third-party pre-trained models. \nInformation Integrity;\
75
+ \ Value Chain \nand Component Integration \nMG-3.2-008 \nUse human moderation\
76
+ \ systems where appropriate to review generated content \nin accordance with human-AI\
77
+ \ configuration policies established in the Govern"
78
+ - "Security \nMS-2.7-003 \nConduct user surveys to gather user satisfaction with\
79
+ \ the AI-generated content \nand user perceptions of content authenticity. Analyze\
80
+ \ user feedback to identify \nconcerns and/or current literacy levels related\
81
+ \ to content provenance and \nunderstanding of labels on content. \nHuman-AI Configuration;\
82
+ \ \nInformation Integrity \nMS-2.7-004 \nIdentify metrics that reflect the effectiveness\
83
+ \ of security measures, such as data"
84
+ - source_sentence: What are the potential positive and negative impacts of AI system
85
+ uses on individuals and communities?
86
+ sentences:
87
+ - "and Homogenization \nAI Actor Tasks: AI Deployment, Affected Individuals and Communities,\
88
+ \ End-Users, Operation and Monitoring, TEVV \n \nMEASURE 4.2: Measurement results\
89
+ \ regarding AI system trustworthiness in deployment context(s) and across the\
90
+ \ AI lifecycle are \ninformed by input from domain experts and relevant AI Actors\
91
+ \ to validate whether the system is performing consistently as \nintended. Results\
92
+ \ are documented. \nAction ID \nSuggested Action \nGAI Risks \nMS-4.2-001"
93
+ - "bias based on race, gender, disability, or other protected classes. \nHarmful\
94
+ \ bias in GAI systems can also lead to harms via disparities between how a model\
95
+ \ performs for \ndifferent subgroups or languages (e.g., an LLM may perform less\
96
+ \ well for non-English languages or \ncertain dialects). Such disparities can\
97
+ \ contribute to discriminatory decision-making or amplification of \nexisting societal\
98
+ \ biases. In addition, GAI systems may be inappropriately trusted to perform similarly"
99
+ - "along with their expectations; potential positive and negative impacts of system\
100
+ \ uses to individuals, communities, organizations, \nsociety, and the planet;\
101
+ \ assumptions and related limitations about AI system purposes, uses, and risks\
102
+ \ across the development or \nproduct AI lifecycle; and related TEVV and system\
103
+ \ metrics. \nAction ID \nSuggested Action \nGAI Risks \nMP-1.1-001 \nWhen identifying\
104
+ \ intended purposes, consider factors such as internal vs."
105
+ - source_sentence: How does the suggested action MG-41-001 aim to address GAI risks?
106
+ sentences:
107
+ - "most appropriate baseline is to compare against, which can result in divergent\
108
+ \ views on when a disparity between \nAI behaviors for different subgroups constitutes\
109
+ \ a harm. In discussing harms from disparities such as biased \nbehavior, this\
110
+ \ document highlights examples where someone’s situation is worsened relative\
111
+ \ to what it would have \nbeen in the absence of any AI system, making the outcome\
112
+ \ unambiguously a harm of the system."
113
+ - "Harmful Bias Managed, Privacy Enhanced, Safe, Secure and Resilient, Valid and\
114
+ \ Reliable \n3. \nSuggested Actions to Manage GAI Risks \nThe following suggested\
115
+ \ actions target risks unique to or exacerbated by GAI. \nIn addition to the suggested\
116
+ \ actions below, AI risk management activities and actions set forth in the AI\
117
+ \ \nRMF 1.0 and Playbook are already applicable for managing GAI risks. Organizations\
118
+ \ are encouraged to"
119
+ - "MANAGE 4.1: Post-deployment AI system monitoring plans are implemented, including\
120
+ \ mechanisms for capturing and evaluating \ninput from users and other relevant\
121
+ \ AI Actors, appeal and override, decommissioning, incident response, recovery,\
122
+ \ and change \nmanagement. \nAction ID \nSuggested Action \nGAI Risks \nMG-4.1-001\
123
+ \ \nCollaborate with external researchers, industry experts, and community \n\
124
+ representatives to maintain awareness of emerging best practices and"
125
+ - source_sentence: What are some examples of input data features that may serve as
126
+ proxies for demographic group membership in GAI systems?
127
+ sentences:
128
+ - "data privacy violations, obscenity, extremism, violence, or CBRN information\
129
+ \ in \nsystem training data. \nData Privacy; Intellectual Property; \nObscene,\
130
+ \ Degrading, and/or \nAbusive Content; Harmful Bias and \nHomogenization; Dangerous,\
131
+ \ \nViolent, or Hateful Content; CBRN \nInformation or Capabilities \nMS-2.6-003\
132
+ \ Re-evaluate safety features of fine-tuned models when the negative risk exceeds\
133
+ \ \norganizational risk tolerance. \nDangerous, Violent, or Hateful \nContent"
134
+ - "GAI. \nInformation Integrity; Intellectual \nProperty \nAI Actor Tasks: Governance\
135
+ \ and Oversight, Operation and Monitoring \n \nGOVERN 1.6: Mechanisms are in place\
136
+ \ to inventory AI systems and are resourced according to organizational risk priorities.\
137
+ \ \nAction ID \nSuggested Action \nGAI Risks \nGV-1.6-001 Enumerate organizational\
138
+ \ GAI systems for incorporation into AI system inventory \nand adjust AI system\
139
+ \ inventory requirements to account for GAI risks. \nInformation Security"
140
+ - "complex or unstructured data; Input data features that may serve as proxies for\
141
+ \ \ndemographic group membership (i.e., image metadata, language dialect) or \n\
142
+ otherwise give rise to emergent bias within GAI systems; The extent to which \n\
143
+ the digital divide may negatively impact representativeness in GAI system \ntraining\
144
+ \ and TEVV data; Filtering of hate speech or content in GAI system \ntraining\
145
+ \ data; Prevalence of GAI-generated data in GAI system training data. \nHarmful\
146
+ \ Bias and Homogenization"
147
+ model-index:
148
+ - name: SentenceTransformer based on Snowflake/snowflake-arctic-embed-m
149
+ results:
150
+ - task:
151
+ type: information-retrieval
152
+ name: Information Retrieval
153
+ dataset:
154
+ name: Unknown
155
+ type: unknown
156
+ metrics:
157
+ - type: cosine_accuracy@1
158
+ value: 0.85
159
+ name: Cosine Accuracy@1
160
+ - type: cosine_accuracy@3
161
+ value: 0.975
162
+ name: Cosine Accuracy@3
163
+ - type: cosine_accuracy@5
164
+ value: 1.0
165
+ name: Cosine Accuracy@5
166
+ - type: cosine_accuracy@10
167
+ value: 1.0
168
+ name: Cosine Accuracy@10
169
+ - type: cosine_precision@1
170
+ value: 0.85
171
+ name: Cosine Precision@1
172
+ - type: cosine_precision@3
173
+ value: 0.325
174
+ name: Cosine Precision@3
175
+ - type: cosine_precision@5
176
+ value: 0.19999999999999998
177
+ name: Cosine Precision@5
178
+ - type: cosine_precision@10
179
+ value: 0.09999999999999999
180
+ name: Cosine Precision@10
181
+ - type: cosine_recall@1
182
+ value: 0.85
183
+ name: Cosine Recall@1
184
+ - type: cosine_recall@3
185
+ value: 0.975
186
+ name: Cosine Recall@3
187
+ - type: cosine_recall@5
188
+ value: 1.0
189
+ name: Cosine Recall@5
190
+ - type: cosine_recall@10
191
+ value: 1.0
192
+ name: Cosine Recall@10
193
+ - type: cosine_ndcg@10
194
+ value: 0.9341754705038519
195
+ name: Cosine Ndcg@10
196
+ - type: cosine_mrr@10
197
+ value: 0.911875
198
+ name: Cosine Mrr@10
199
+ - type: cosine_map@100
200
+ value: 0.9118749999999999
201
+ name: Cosine Map@100
202
+ - type: dot_accuracy@1
203
+ value: 0.85
204
+ name: Dot Accuracy@1
205
+ - type: dot_accuracy@3
206
+ value: 0.975
207
+ name: Dot Accuracy@3
208
+ - type: dot_accuracy@5
209
+ value: 1.0
210
+ name: Dot Accuracy@5
211
+ - type: dot_accuracy@10
212
+ value: 1.0
213
+ name: Dot Accuracy@10
214
+ - type: dot_precision@1
215
+ value: 0.85
216
+ name: Dot Precision@1
217
+ - type: dot_precision@3
218
+ value: 0.325
219
+ name: Dot Precision@3
220
+ - type: dot_precision@5
221
+ value: 0.19999999999999998
222
+ name: Dot Precision@5
223
+ - type: dot_precision@10
224
+ value: 0.09999999999999999
225
+ name: Dot Precision@10
226
+ - type: dot_recall@1
227
+ value: 0.85
228
+ name: Dot Recall@1
229
+ - type: dot_recall@3
230
+ value: 0.975
231
+ name: Dot Recall@3
232
+ - type: dot_recall@5
233
+ value: 1.0
234
+ name: Dot Recall@5
235
+ - type: dot_recall@10
236
+ value: 1.0
237
+ name: Dot Recall@10
238
+ - type: dot_ndcg@10
239
+ value: 0.9341754705038519
240
+ name: Dot Ndcg@10
241
+ - type: dot_mrr@10
242
+ value: 0.911875
243
+ name: Dot Mrr@10
244
+ - type: dot_map@100
245
+ value: 0.9118749999999999
246
+ name: Dot Map@100
247
+ ---
248
+
249
+ # SentenceTransformer based on Snowflake/snowflake-arctic-embed-m
250
+
251
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Snowflake/snowflake-arctic-embed-m](https://huggingface.co/Snowflake/snowflake-arctic-embed-m). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
252
+
253
+ ## Model Details
254
+
255
+ ### Model Description
256
+ - **Model Type:** Sentence Transformer
257
+ - **Base model:** [Snowflake/snowflake-arctic-embed-m](https://huggingface.co/Snowflake/snowflake-arctic-embed-m) <!-- at revision e2b128b9fa60c82b4585512b33e1544224ffff42 -->
258
+ - **Maximum Sequence Length:** 512 tokens
259
+ - **Output Dimensionality:** 768 tokens
260
+ - **Similarity Function:** Cosine Similarity
261
+ <!-- - **Training Dataset:** Unknown -->
262
+ <!-- - **Language:** Unknown -->
263
+ <!-- - **License:** Unknown -->
264
+
265
+ ### Model Sources
266
+
267
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
268
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
269
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
270
+
271
+ ### Full Model Architecture
272
+
273
+ ```
274
+ SentenceTransformer(
275
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
276
+ (1): Pooling({'word_embedding_dimension': 768, '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})
277
+ (2): Normalize()
278
+ )
279
+ ```
280
+
281
+ ## Usage
282
+
283
+ ### Direct Usage (Sentence Transformers)
284
+
285
+ First install the Sentence Transformers library:
286
+
287
+ ```bash
288
+ pip install -U sentence-transformers
289
+ ```
290
+
291
+ Then you can load this model and run inference.
292
+ ```python
293
+ from sentence_transformers import SentenceTransformer
294
+
295
+ # Download from the 🤗 Hub
296
+ model = SentenceTransformer("sentence_transformers_model_id")
297
+ # Run inference
298
+ sentences = [
299
+ 'What are some examples of input data features that may serve as proxies for demographic group membership in GAI systems?',
300
+ 'complex or unstructured data; Input data features that may serve as proxies for \ndemographic group membership (i.e., image metadata, language dialect) or \notherwise give rise to emergent bias within GAI systems; The extent to which \nthe digital divide may negatively impact representativeness in GAI system \ntraining and TEVV data; Filtering of hate speech or content in GAI system \ntraining data; Prevalence of GAI-generated data in GAI system training data. \nHarmful Bias and Homogenization',
301
+ 'GAI. \nInformation Integrity; Intellectual \nProperty \nAI Actor Tasks: Governance and Oversight, Operation and Monitoring \n \nGOVERN 1.6: Mechanisms are in place to inventory AI systems and are resourced according to organizational risk priorities. \nAction ID \nSuggested Action \nGAI Risks \nGV-1.6-001 Enumerate organizational GAI systems for incorporation into AI system inventory \nand adjust AI system inventory requirements to account for GAI risks. \nInformation Security',
302
+ ]
303
+ embeddings = model.encode(sentences)
304
+ print(embeddings.shape)
305
+ # [3, 768]
306
+
307
+ # Get the similarity scores for the embeddings
308
+ similarities = model.similarity(embeddings, embeddings)
309
+ print(similarities.shape)
310
+ # [3, 3]
311
+ ```
312
+
313
+ <!--
314
+ ### Direct Usage (Transformers)
315
+
316
+ <details><summary>Click to see the direct usage in Transformers</summary>
317
+
318
+ </details>
319
+ -->
320
+
321
+ <!--
322
+ ### Downstream Usage (Sentence Transformers)
323
+
324
+ You can finetune this model on your own dataset.
325
+
326
+ <details><summary>Click to expand</summary>
327
+
328
+ </details>
329
+ -->
330
+
331
+ <!--
332
+ ### Out-of-Scope Use
333
+
334
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
335
+ -->
336
+
337
+ ## Evaluation
338
+
339
+ ### Metrics
340
+
341
+ #### Information Retrieval
342
+
343
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
344
+
345
+ | Metric | Value |
346
+ |:--------------------|:-----------|
347
+ | cosine_accuracy@1 | 0.85 |
348
+ | cosine_accuracy@3 | 0.975 |
349
+ | cosine_accuracy@5 | 1.0 |
350
+ | cosine_accuracy@10 | 1.0 |
351
+ | cosine_precision@1 | 0.85 |
352
+ | cosine_precision@3 | 0.325 |
353
+ | cosine_precision@5 | 0.2 |
354
+ | cosine_precision@10 | 0.1 |
355
+ | cosine_recall@1 | 0.85 |
356
+ | cosine_recall@3 | 0.975 |
357
+ | cosine_recall@5 | 1.0 |
358
+ | cosine_recall@10 | 1.0 |
359
+ | cosine_ndcg@10 | 0.9342 |
360
+ | cosine_mrr@10 | 0.9119 |
361
+ | **cosine_map@100** | **0.9119** |
362
+ | dot_accuracy@1 | 0.85 |
363
+ | dot_accuracy@3 | 0.975 |
364
+ | dot_accuracy@5 | 1.0 |
365
+ | dot_accuracy@10 | 1.0 |
366
+ | dot_precision@1 | 0.85 |
367
+ | dot_precision@3 | 0.325 |
368
+ | dot_precision@5 | 0.2 |
369
+ | dot_precision@10 | 0.1 |
370
+ | dot_recall@1 | 0.85 |
371
+ | dot_recall@3 | 0.975 |
372
+ | dot_recall@5 | 1.0 |
373
+ | dot_recall@10 | 1.0 |
374
+ | dot_ndcg@10 | 0.9342 |
375
+ | dot_mrr@10 | 0.9119 |
376
+ | dot_map@100 | 0.9119 |
377
+
378
+ <!--
379
+ ## Bias, Risks and Limitations
380
+
381
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
382
+ -->
383
+
384
+ <!--
385
+ ### Recommendations
386
+
387
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
388
+ -->
389
+
390
+ ## Training Details
391
+
392
+ ### Training Dataset
393
+
394
+ #### Unnamed Dataset
395
+
396
+
397
+ * Size: 600 training samples
398
+ * Columns: <code>sentence_0</code> and <code>sentence_1</code>
399
+ * Approximate statistics based on the first 600 samples:
400
+ | | sentence_0 | sentence_1 |
401
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
402
+ | type | string | string |
403
+ | details | <ul><li>min: 11 tokens</li><li>mean: 20.85 tokens</li><li>max: 35 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 89.39 tokens</li><li>max: 335 tokens</li></ul> |
404
+ * Samples:
405
+ | sentence_0 | sentence_1 |
406
+ |:-------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
407
+ | <code>What is the title of the publication related to Artificial Intelligence Risk Management by NIST?</code> | <code>NIST Trustworthy and Responsible AI <br>NIST AI 600-1 <br>Artificial Intelligence Risk Management <br>Framework: Generative Artificial <br>Intelligence Profile <br> <br> <br> <br>This publication is available free of charge from: <br>https://doi.org/10.6028/NIST.AI.600-1</code> |
408
+ | <code>Where can the NIST AI 600-1 publication be accessed for free?</code> | <code>NIST Trustworthy and Responsible AI <br>NIST AI 600-1 <br>Artificial Intelligence Risk Management <br>Framework: Generative Artificial <br>Intelligence Profile <br> <br> <br> <br>This publication is available free of charge from: <br>https://doi.org/10.6028/NIST.AI.600-1</code> |
409
+ | <code>What is the title of the publication released by NIST in July 2024 regarding artificial intelligence?</code> | <code>NIST Trustworthy and Responsible AI <br>NIST AI 600-1 <br>Artificial Intelligence Risk Management <br>Framework: Generative Artificial <br>Intelligence Profile <br> <br> <br> <br>This publication is available free of charge from: <br>https://doi.org/10.6028/NIST.AI.600-1 <br> <br>July 2024 <br> <br> <br> <br> <br>U.S. Department of Commerce <br>Gina M. Raimondo, Secretary <br>National Institute of Standards and Technology <br>Laurie E. Locascio, NIST Director and Under Secretary of Commerce for Standards and Technology</code> |
410
+ * Loss: [<code>MatryoshkaLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters:
411
+ ```json
412
+ {
413
+ "loss": "MultipleNegativesRankingLoss",
414
+ "matryoshka_dims": [
415
+ 768,
416
+ 512,
417
+ 256,
418
+ 128,
419
+ 64
420
+ ],
421
+ "matryoshka_weights": [
422
+ 1,
423
+ 1,
424
+ 1,
425
+ 1,
426
+ 1
427
+ ],
428
+ "n_dims_per_step": -1
429
+ }
430
+ ```
431
+
432
+ ### Training Hyperparameters
433
+ #### Non-Default Hyperparameters
434
+
435
+ - `eval_strategy`: steps
436
+ - `per_device_train_batch_size`: 20
437
+ - `per_device_eval_batch_size`: 20
438
+ - `num_train_epochs`: 5
439
+ - `multi_dataset_batch_sampler`: round_robin
440
+
441
+ #### All Hyperparameters
442
+ <details><summary>Click to expand</summary>
443
+
444
+ - `overwrite_output_dir`: False
445
+ - `do_predict`: False
446
+ - `eval_strategy`: steps
447
+ - `prediction_loss_only`: True
448
+ - `per_device_train_batch_size`: 20
449
+ - `per_device_eval_batch_size`: 20
450
+ - `per_gpu_train_batch_size`: None
451
+ - `per_gpu_eval_batch_size`: None
452
+ - `gradient_accumulation_steps`: 1
453
+ - `eval_accumulation_steps`: None
454
+ - `torch_empty_cache_steps`: None
455
+ - `learning_rate`: 5e-05
456
+ - `weight_decay`: 0.0
457
+ - `adam_beta1`: 0.9
458
+ - `adam_beta2`: 0.999
459
+ - `adam_epsilon`: 1e-08
460
+ - `max_grad_norm`: 1
461
+ - `num_train_epochs`: 5
462
+ - `max_steps`: -1
463
+ - `lr_scheduler_type`: linear
464
+ - `lr_scheduler_kwargs`: {}
465
+ - `warmup_ratio`: 0.0
466
+ - `warmup_steps`: 0
467
+ - `log_level`: passive
468
+ - `log_level_replica`: warning
469
+ - `log_on_each_node`: True
470
+ - `logging_nan_inf_filter`: True
471
+ - `save_safetensors`: True
472
+ - `save_on_each_node`: False
473
+ - `save_only_model`: False
474
+ - `restore_callback_states_from_checkpoint`: False
475
+ - `no_cuda`: False
476
+ - `use_cpu`: False
477
+ - `use_mps_device`: False
478
+ - `seed`: 42
479
+ - `data_seed`: None
480
+ - `jit_mode_eval`: False
481
+ - `use_ipex`: False
482
+ - `bf16`: False
483
+ - `fp16`: False
484
+ - `fp16_opt_level`: O1
485
+ - `half_precision_backend`: auto
486
+ - `bf16_full_eval`: False
487
+ - `fp16_full_eval`: False
488
+ - `tf32`: None
489
+ - `local_rank`: 0
490
+ - `ddp_backend`: None
491
+ - `tpu_num_cores`: None
492
+ - `tpu_metrics_debug`: False
493
+ - `debug`: []
494
+ - `dataloader_drop_last`: False
495
+ - `dataloader_num_workers`: 0
496
+ - `dataloader_prefetch_factor`: None
497
+ - `past_index`: -1
498
+ - `disable_tqdm`: False
499
+ - `remove_unused_columns`: True
500
+ - `label_names`: None
501
+ - `load_best_model_at_end`: False
502
+ - `ignore_data_skip`: False
503
+ - `fsdp`: []
504
+ - `fsdp_min_num_params`: 0
505
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
506
+ - `fsdp_transformer_layer_cls_to_wrap`: None
507
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
508
+ - `deepspeed`: None
509
+ - `label_smoothing_factor`: 0.0
510
+ - `optim`: adamw_torch
511
+ - `optim_args`: None
512
+ - `adafactor`: False
513
+ - `group_by_length`: False
514
+ - `length_column_name`: length
515
+ - `ddp_find_unused_parameters`: None
516
+ - `ddp_bucket_cap_mb`: None
517
+ - `ddp_broadcast_buffers`: False
518
+ - `dataloader_pin_memory`: True
519
+ - `dataloader_persistent_workers`: False
520
+ - `skip_memory_metrics`: True
521
+ - `use_legacy_prediction_loop`: False
522
+ - `push_to_hub`: False
523
+ - `resume_from_checkpoint`: None
524
+ - `hub_model_id`: None
525
+ - `hub_strategy`: every_save
526
+ - `hub_private_repo`: False
527
+ - `hub_always_push`: False
528
+ - `gradient_checkpointing`: False
529
+ - `gradient_checkpointing_kwargs`: None
530
+ - `include_inputs_for_metrics`: False
531
+ - `eval_do_concat_batches`: True
532
+ - `fp16_backend`: auto
533
+ - `push_to_hub_model_id`: None
534
+ - `push_to_hub_organization`: None
535
+ - `mp_parameters`:
536
+ - `auto_find_batch_size`: False
537
+ - `full_determinism`: False
538
+ - `torchdynamo`: None
539
+ - `ray_scope`: last
540
+ - `ddp_timeout`: 1800
541
+ - `torch_compile`: False
542
+ - `torch_compile_backend`: None
543
+ - `torch_compile_mode`: None
544
+ - `dispatch_batches`: None
545
+ - `split_batches`: None
546
+ - `include_tokens_per_second`: False
547
+ - `include_num_input_tokens_seen`: False
548
+ - `neftune_noise_alpha`: None
549
+ - `optim_target_modules`: None
550
+ - `batch_eval_metrics`: False
551
+ - `eval_on_start`: False
552
+ - `eval_use_gather_object`: False
553
+ - `batch_sampler`: batch_sampler
554
+ - `multi_dataset_batch_sampler`: round_robin
555
+
556
+ </details>
557
+
558
+ ### Training Logs
559
+ | Epoch | Step | cosine_map@100 |
560
+ |:------:|:----:|:--------------:|
561
+ | 1.0 | 30 | 0.9271 |
562
+ | 1.6667 | 50 | 0.9306 |
563
+ | 2.0 | 60 | 0.9187 |
564
+ | 3.0 | 90 | 0.9244 |
565
+ | 3.3333 | 100 | 0.9244 |
566
+ | 4.0 | 120 | 0.9244 |
567
+ | 5.0 | 150 | 0.9119 |
568
+
569
+
570
+ ### Framework Versions
571
+ - Python: 3.10.12
572
+ - Sentence Transformers: 3.1.1
573
+ - Transformers: 4.44.2
574
+ - PyTorch: 2.4.1+cu121
575
+ - Accelerate: 0.34.2
576
+ - Datasets: 3.0.0
577
+ - Tokenizers: 0.19.1
578
+
579
+ ## Citation
580
+
581
+ ### BibTeX
582
+
583
+ #### Sentence Transformers
584
+ ```bibtex
585
+ @inproceedings{reimers-2019-sentence-bert,
586
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
587
+ author = "Reimers, Nils and Gurevych, Iryna",
588
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
589
+ month = "11",
590
+ year = "2019",
591
+ publisher = "Association for Computational Linguistics",
592
+ url = "https://arxiv.org/abs/1908.10084",
593
+ }
594
+ ```
595
+
596
+ #### MatryoshkaLoss
597
+ ```bibtex
598
+ @misc{kusupati2024matryoshka,
599
+ title={Matryoshka Representation Learning},
600
+ author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
601
+ year={2024},
602
+ eprint={2205.13147},
603
+ archivePrefix={arXiv},
604
+ primaryClass={cs.LG}
605
+ }
606
+ ```
607
+
608
+ #### MultipleNegativesRankingLoss
609
+ ```bibtex
610
+ @misc{henderson2017efficient,
611
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
612
+ 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},
613
+ year={2017},
614
+ eprint={1705.00652},
615
+ archivePrefix={arXiv},
616
+ primaryClass={cs.CL}
617
+ }
618
+ ```
619
+
620
+ <!--
621
+ ## Glossary
622
+
623
+ *Clearly define terms in order to be accessible across audiences.*
624
+ -->
625
+
626
+ <!--
627
+ ## Model Card Authors
628
+
629
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
630
+ -->
631
+
632
+ <!--
633
+ ## Model Card Contact
634
+
635
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
636
+ -->
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Snowflake/snowflake-arctic-embed-m",
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": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.44.2",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 30522
26
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.1.1",
4
+ "transformers": "4.44.2",
5
+ "pytorch": "2.4.1+cu121"
6
+ },
7
+ "prompts": {
8
+ "query": "Represent this sentence for searching relevant passages: "
9
+ },
10
+ "default_prompt_name": null,
11
+ "similarity_fn_name": null
12
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fa5f54dac2d81eb7dd8f0a39be92c55bb2322e601c15e674b1565465fab4517
3
+ size 435588776
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": 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,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "max_length": 512,
49
+ "model_max_length": 512,
50
+ "pad_to_multiple_of": null,
51
+ "pad_token": "[PAD]",
52
+ "pad_token_type_id": 0,
53
+ "padding_side": "right",
54
+ "sep_token": "[SEP]",
55
+ "stride": 0,
56
+ "strip_accents": null,
57
+ "tokenize_chinese_chars": true,
58
+ "tokenizer_class": "BertTokenizer",
59
+ "truncation_side": "right",
60
+ "truncation_strategy": "longest_first",
61
+ "unk_token": "[UNK]"
62
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff