Lauther commited on
Commit
4a82566
·
verified ·
1 Parent(s): 694e8a6

Add new SentenceTransformer model

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 1024,
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,607 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:3630
8
+ - loss:CoSENTLoss
9
+ base_model: intfloat/multilingual-e5-large-instruct
10
+ widget:
11
+ - source_sentence: equipment database
12
+ sentences:
13
+ - "What is uncertainty?\nUncertainty is a measure of confidence in the precision\
14
+ \ and reliability of results obtained from equipment or measurement systems. It\
15
+ \ quantifies the potential error or margin of error in measurements.\n\nTypes\
16
+ \ of uncertainty:\nThere are two main types of uncertainty:\n1. Uncertainty of\
17
+ \ magnitudes (variables):\n - Refers to the uncertainty of specific variables,\
18
+ \ such as temperature or pressure.\n - It is calculated after calibrating a\
19
+ \ device or obtained from the **equipment** manufacturer's manual.\n - This\
20
+ \ uncertainty serves as a starting point for further calculations related to the\
21
+ \ equipment.\n\n2. Uncertainty of the measurement system:\n - Refers to the\
22
+ \ uncertainty calculated for the overall flow measurement.\n - It depends on\
23
+ \ the uncertainties of the individual variables (magnitudes) and represents the\
24
+ \ combined margin of error for the entire system.\n\nKey points:\n- The uncertainties\
25
+ \ of magnitudes (variables) are the foundation for calculating the uncertainty\
26
+ \ of the measurement system. Think of them as the \"building blocks.\"\n- Do not\
27
+ \ confuse the two types of uncertainty:\n - **Uncertainty of magnitudes/variables**:\
28
+ \ Specific to individual variables (e.g., temperature, pressure).\n - **Uncertainty\
29
+ \ of the measurement system**: Specific to the overall flow measurement."
30
+ - 'What is a flow computer?
31
+
32
+ A flow computer is a device used in measurement engineering. It collects analog
33
+ and digital data from flow meters and other sensors.
34
+
35
+
36
+ Key features of a flow computer:
37
+
38
+ - It has a unique name, firmware version, and manufacturer information.
39
+
40
+ - It is designed to record and process data such as temperature, pressure, and
41
+ fluid volume (for gases or oils).'
42
+ - 'What is an Equipment Type?
43
+
44
+ An Equipment Type defines a category of measurement or monitoring devices used
45
+ in a system. Each type of equipment is classified based on its function, the physical
46
+ magnitude it measures, and its associated measurement unit.
47
+
48
+
49
+ Key Aspects of Equipment Types:
50
+
51
+ - Categorization: Equipment types include devices like transmitters, thermometers,
52
+ and other measurement instruments.
53
+
54
+ - Classification: Equipment can be primary (directly involved in measurement)
55
+ or secondary (supporting measurement processes).
56
+
57
+ - Measurement Unit: Each equipment type is linked to a unit of measure (e.g.,
58
+ °C for temperature, psi for pressure).
59
+
60
+ - Measured Magnitude: Defines what the equipment measures (e.g., temperature,
61
+ pressure, volume).
62
+
63
+ Understanding equipment types ensures correct data interpretation, proper calibration,
64
+ and accurate measurement within a system.'
65
+ - source_sentence: transmitter calibration record
66
+ sentences:
67
+ - "What is a Measurement Type?\nMeasurement types define the classification of measurements\
68
+ \ used within a system based on their purpose and regulatory requirements. These\
69
+ \ types include **fiscal**, **appropriation**, **operational**, and **custody**\
70
+ \ measurements. \n\n- **Fiscal measurements** are used for tax and regulatory\
71
+ \ reporting, ensuring accurate financial transactions based on measured quantities.\
72
+ \ \n- **Appropriation measurements** track resource allocation and ownership\
73
+ \ distribution among stakeholders. \n- **Operational measurements** support real-time\
74
+ \ monitoring and process optimization within industrial operations. \n- **Custody\
75
+ \ measurements** are essential for legal and contractual transactions, ensuring\
76
+ \ precise handover of fluids between parties. \n\nThese classifications play\
77
+ \ a crucial role in compliance, financial accuracy, and operational efficiency\
78
+ \ across industries such as oil and gas, water management, and energy distribution.\
79
+ \ "
80
+ - 'What is a Fluid?
81
+
82
+ A Fluid is the substance measured within a measurement system. It can be a gas
83
+ or liquid, such as hydrocarbons, water, or other industrial fluids. Proper classification
84
+ of fluids is essential for ensuring measurement accuracy, regulatory compliance,
85
+ and operational efficiency. By identifying fluids correctly, the system applies
86
+ the appropriate measurement techniques, processing methods, and reporting standards.'
87
+ - 'What is a measurement system?
88
+
89
+ **Measurement systems** are essential components in industrial measurement and
90
+ processing. They are identified by a unique **Tag** and are associated with a
91
+ specific **installation** and **fluid type**. These systems utilize different
92
+ **measurement technologies**, including **differential (DIF)** and **linear (LIN)**,
93
+ depending on the application. Measurement systems can be classified based on their
94
+ **application type**, such as **fiscal** or **custody transfer**. '
95
+ - source_sentence: most recent calibration
96
+ sentences:
97
+ - 'What is a Fluid?
98
+
99
+ A Fluid is the substance measured within a measurement system. It can be a gas
100
+ or liquid, such as hydrocarbons, water, or other industrial fluids. Proper classification
101
+ of fluids is essential for ensuring measurement accuracy, regulatory compliance,
102
+ and operational efficiency. By identifying fluids correctly, the system applies
103
+ the appropriate measurement techniques, processing methods, and reporting standards.'
104
+ - 'What is a Calibration Record?
105
+
106
+ A Calibration Record documents the calibration process of a specific equipment
107
+ tag, ensuring that its measurements remain accurate and reliable. Calibration
108
+ is a critical process in maintaining measurement precision and compliance with
109
+ standards.
110
+
111
+
112
+ Key Aspects of a Calibration Record:
113
+
114
+ - Calibration Date: The exact date when the calibration was performed, crucial
115
+ for tracking maintenance schedules.
116
+
117
+ - Certification Number: A unique identifier for the calibration certificate, providing
118
+ traceability and verification of compliance.
119
+
120
+ - Range Values: The minimum and maximum measurement values covered during the
121
+ calibration process.
122
+
123
+ - Calibration Status: Indicates whether the calibration was approved or saved
124
+ for further review.
125
+
126
+ - Associated Units: Specifies the measurement units used in calibration (e.g.,
127
+ °C, psi).
128
+
129
+ - Associated Equipment Tag ID: Links the calibration record to a specific equipment
130
+ tag, ensuring traceability of measurement instruments.
131
+
132
+ Calibration records play a fundamental role in quality assurance, helping maintain
133
+ measurement integrity and regulatory compliance.'
134
+ - "What is a report index or historic index?\nIndexes represent the recorded reports\
135
+ \ generated by flow computers, classified into two types: \n- **Hourly reports\
136
+ \ Index**: Store data for hourly events.\n- **Daily reports Index**: Strore data\
137
+ \ for daily events.\n\nThese reports, also referred to as historical data or flow\
138
+ \ computer historical records, contain raw, first-hand measurements directly collected\
139
+ \ from the flow computer. The data has not been processed or used in any calculations,\
140
+ \ preserving its original state for analysis or validation.\n\nThe index is essential\
141
+ \ for locating specific values within the report."
142
+ - source_sentence: measurement system tag EMED-3102-02-010
143
+ sentences:
144
+ - "What is a report index or historic index?\nIndexes represent the recorded reports\
145
+ \ generated by flow computers, classified into two types: \n- **Hourly reports\
146
+ \ Index**: Store data for hourly events.\n- **Daily reports Index**: Strore data\
147
+ \ for daily events.\n\nThese reports, also referred to as historical data or flow\
148
+ \ computer historical records, contain raw, first-hand measurements directly collected\
149
+ \ from the flow computer. The data has not been processed or used in any calculations,\
150
+ \ preserving its original state for analysis or validation.\n\nThe index is essential\
151
+ \ for locating specific values within the report."
152
+ - "What is uncertainty?\nUncertainty is a measure of confidence in the precision\
153
+ \ and reliability of results obtained from equipment or measurement systems. It\
154
+ \ quantifies the potential error or margin of error in measurements.\n\nTypes\
155
+ \ of uncertainty:\nThere are two main types of uncertainty:\n1. Uncertainty of\
156
+ \ magnitudes (variables):\n - Refers to the uncertainty of specific variables,\
157
+ \ such as temperature or pressure.\n - It is calculated after calibrating a\
158
+ \ device or obtained from the **equipment** manufacturer's manual.\n - This\
159
+ \ uncertainty serves as a starting point for further calculations related to the\
160
+ \ equipment.\n\n2. Uncertainty of the measurement system:\n - Refers to the\
161
+ \ uncertainty calculated for the overall flow measurement.\n - It depends on\
162
+ \ the uncertainties of the individual variables (magnitudes) and represents the\
163
+ \ combined margin of error for the entire system.\n\nKey points:\n- The uncertainties\
164
+ \ of magnitudes (variables) are the foundation for calculating the uncertainty\
165
+ \ of the measurement system. Think of them as the \"building blocks.\"\n- Do not\
166
+ \ confuse the two types of uncertainty:\n - **Uncertainty of magnitudes/variables**:\
167
+ \ Specific to individual variables (e.g., temperature, pressure).\n - **Uncertainty\
168
+ \ of the measurement system**: Specific to the overall flow measurement."
169
+ - 'What is a Magnitude?
170
+
171
+ A magnitude/variable represents a physical magnitude measured by the system, such
172
+ as temperature, pressure, or volume. It plays a crucial role in monitoring and
173
+ analyzing system performance. Each variable has a status that indicates whether
174
+ it is active (ACT) or inactive (INA), ensuring proper identification and usage
175
+ within measurement processes.'
176
+ - source_sentence: list of measurement systems
177
+ sentences:
178
+ - 'What is a Calibration Record?
179
+
180
+ A Calibration Record documents the calibration process of a specific equipment
181
+ tag, ensuring that its measurements remain accurate and reliable. Calibration
182
+ is a critical process in maintaining measurement precision and compliance with
183
+ standards.
184
+
185
+
186
+ Key Aspects of a Calibration Record:
187
+
188
+ - Calibration Date: The exact date when the calibration was performed, crucial
189
+ for tracking maintenance schedules.
190
+
191
+ - Certification Number: A unique identifier for the calibration certificate, providing
192
+ traceability and verification of compliance.
193
+
194
+ - Range Values: The minimum and maximum measurement values covered during the
195
+ calibration process.
196
+
197
+ - Calibration Status: Indicates whether the calibration was approved or saved
198
+ for further review.
199
+
200
+ - Associated Units: Specifies the measurement units used in calibration (e.g.,
201
+ °C, psi).
202
+
203
+ - Associated Equipment Tag ID: Links the calibration record to a specific equipment
204
+ tag, ensuring traceability of measurement instruments.
205
+
206
+ Calibration records play a fundamental role in quality assurance, helping maintain
207
+ measurement integrity and regulatory compliance.'
208
+ - 'What is a measurement system?
209
+
210
+ **Measurement systems** are essential components in industrial measurement and
211
+ processing. They are identified by a unique **Tag** and are associated with a
212
+ specific **installation** and **fluid type**. These systems utilize different
213
+ **measurement technologies**, including **differential (DIF)** and **linear (LIN)**,
214
+ depending on the application. Measurement systems can be classified based on their
215
+ **application type**, such as **fiscal** or **custody transfer**. '
216
+ - 'What is a Calibration Point?
217
+
218
+ A Calibration Point represents a specific data entry in a calibration process,
219
+ comparing an expected reference value to an actual measured value. These points
220
+ are fundamental in ensuring measurement accuracy and identifying deviations.
221
+
222
+
223
+ Key Aspects of Calibration Points:
224
+
225
+ - Calibration Report Association: Each calibration point belongs to a specific
226
+ calibration report, linking it to a broader calibration procedure.
227
+
228
+ - Reference Values: Theoretical or expected values used as a benchmark for measurement
229
+ validation.
230
+
231
+ - Measured Values: The actual recorded values during calibration, reflecting the
232
+ instrument’s response.
233
+
234
+ - Errors: The difference between reference and measured values, indicating possible
235
+ measurement inaccuracies.
236
+
237
+ Calibration points are essential for evaluating instrument performance, ensuring
238
+ compliance with standards, and maintaining measurement reliability.'
239
+ datasets:
240
+ - Lauther/measuring-embeddings-v5
241
+ pipeline_tag: sentence-similarity
242
+ library_name: sentence-transformers
243
+ ---
244
+
245
+ # SentenceTransformer based on intfloat/multilingual-e5-large-instruct
246
+
247
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [intfloat/multilingual-e5-large-instruct](https://huggingface.co/intfloat/multilingual-e5-large-instruct) on the [measuring-embeddings-v5](https://huggingface.co/datasets/Lauther/measuring-embeddings-v5) dataset. 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.
248
+
249
+ ## Model Details
250
+
251
+ ### Model Description
252
+ - **Model Type:** Sentence Transformer
253
+ - **Base model:** [intfloat/multilingual-e5-large-instruct](https://huggingface.co/intfloat/multilingual-e5-large-instruct) <!-- at revision 84344a23ee1820ac951bc365f1e91d094a911763 -->
254
+ - **Maximum Sequence Length:** 512 tokens
255
+ - **Output Dimensionality:** 1024 dimensions
256
+ - **Similarity Function:** Cosine Similarity
257
+ - **Training Dataset:**
258
+ - [measuring-embeddings-v5](https://huggingface.co/datasets/Lauther/measuring-embeddings-v5)
259
+ <!-- - **Language:** Unknown -->
260
+ <!-- - **License:** Unknown -->
261
+
262
+ ### Model Sources
263
+
264
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
265
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
266
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
267
+
268
+ ### Full Model Architecture
269
+
270
+ ```
271
+ SentenceTransformer(
272
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
273
+ (1): Pooling({'word_embedding_dimension': 1024, '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})
274
+ (2): Normalize()
275
+ )
276
+ ```
277
+
278
+ ## Usage
279
+
280
+ ### Direct Usage (Sentence Transformers)
281
+
282
+ First install the Sentence Transformers library:
283
+
284
+ ```bash
285
+ pip install -U sentence-transformers
286
+ ```
287
+
288
+ Then you can load this model and run inference.
289
+ ```python
290
+ from sentence_transformers import SentenceTransformer
291
+
292
+ # Download from the 🤗 Hub
293
+ model = SentenceTransformer("Lauther/measuring-embeddings-v5.1")
294
+ # Run inference
295
+ sentences = [
296
+ 'list of measurement systems',
297
+ 'What is a Calibration Point?\nA Calibration Point represents a specific data entry in a calibration process, comparing an expected reference value to an actual measured value. These points are fundamental in ensuring measurement accuracy and identifying deviations.\n\nKey Aspects of Calibration Points:\n- Calibration Report Association: Each calibration point belongs to a specific calibration report, linking it to a broader calibration procedure.\n- Reference Values: Theoretical or expected values used as a benchmark for measurement validation.\n- Measured Values: The actual recorded values during calibration, reflecting the instrument’s response.\n- Errors: The difference between reference and measured values, indicating possible measurement inaccuracies.\nCalibration points are essential for evaluating instrument performance, ensuring compliance with standards, and maintaining measurement reliability.',
298
+ 'What is a Calibration Record?\nA Calibration Record documents the calibration process of a specific equipment tag, ensuring that its measurements remain accurate and reliable. Calibration is a critical process in maintaining measurement precision and compliance with standards.\n\nKey Aspects of a Calibration Record:\n- Calibration Date: The exact date when the calibration was performed, crucial for tracking maintenance schedules.\n- Certification Number: A unique identifier for the calibration certificate, providing traceability and verification of compliance.\n- Range Values: The minimum and maximum measurement values covered during the calibration process.\n- Calibration Status: Indicates whether the calibration was approved or saved for further review.\n- Associated Units: Specifies the measurement units used in calibration (e.g., °C, psi).\n- Associated Equipment Tag ID: Links the calibration record to a specific equipment tag, ensuring traceability of measurement instruments.\nCalibration records play a fundamental role in quality assurance, helping maintain measurement integrity and regulatory compliance.',
299
+ ]
300
+ embeddings = model.encode(sentences)
301
+ print(embeddings.shape)
302
+ # [3, 1024]
303
+
304
+ # Get the similarity scores for the embeddings
305
+ similarities = model.similarity(embeddings, embeddings)
306
+ print(similarities.shape)
307
+ # [3, 3]
308
+ ```
309
+
310
+ <!--
311
+ ### Direct Usage (Transformers)
312
+
313
+ <details><summary>Click to see the direct usage in Transformers</summary>
314
+
315
+ </details>
316
+ -->
317
+
318
+ <!--
319
+ ### Downstream Usage (Sentence Transformers)
320
+
321
+ You can finetune this model on your own dataset.
322
+
323
+ <details><summary>Click to expand</summary>
324
+
325
+ </details>
326
+ -->
327
+
328
+ <!--
329
+ ### Out-of-Scope Use
330
+
331
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
332
+ -->
333
+
334
+ <!--
335
+ ## Bias, Risks and Limitations
336
+
337
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
338
+ -->
339
+
340
+ <!--
341
+ ### Recommendations
342
+
343
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
344
+ -->
345
+
346
+ ## Training Details
347
+
348
+ ### Training Dataset
349
+
350
+ #### measuring-embeddings-v5
351
+
352
+ * Dataset: [measuring-embeddings-v5](https://huggingface.co/datasets/Lauther/measuring-embeddings-v5) at [90b5410](https://huggingface.co/datasets/Lauther/measuring-embeddings-v5/tree/90b5410f6050bbea9cde1fa30323b08505996cb7)
353
+ * Size: 3,630 training samples
354
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
355
+ * Approximate statistics based on the first 1000 samples:
356
+ | | sentence1 | sentence2 | score |
357
+ |:--------|:---------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:----------------------------------------------------------------|
358
+ | type | string | string | float |
359
+ | details | <ul><li>min: 3 tokens</li><li>mean: 7.46 tokens</li><li>max: 17 tokens</li></ul> | <ul><li>min: 80 tokens</li><li>mean: 181.99 tokens</li><li>max: 406 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.23</li><li>max: 0.95</li></ul> |
360
+ * Samples:
361
+ | sentence1 | sentence2 | score |
362
+ |:-----------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------|
363
+ | <code>measurement technology name</code> | <code>What is uncertainty?<br>Uncertainty is a measure of confidence in the precision and reliability of results obtained from equipment or measurement systems. It quantifies the potential error or margin of error in measurements.<br><br>Types of uncertainty:<br>There are two main types of uncertainty:<br>1. Uncertainty of magnitudes (variables):<br> - Refers to the uncertainty of specific variables, such as temperature or pressure.<br> - It is calculated after calibrating a device or obtained from the **equipment** manufacturer's manual.<br> - This uncertainty serves as a starting point for further calculations related to the equipment.<br><br>2. Uncertainty of the measurement system:<br> - Refers to the uncertainty calculated for the overall flow measurement.<br> - It depends on the uncertainties of the individual variables (magnitudes) and represents the combined margin of error for the entire system.<br><br>Key points:<br>- The uncertainties of magnitudes (variables) are the foundation for calculating the uncertainty...</code> | <code>0.001</code> |
364
+ | <code>transmitter calibration record</code> | <code>What is an Uncertainty Curve Point?<br>An Uncertainty Curve Point represents a data point used to construct the uncertainty curve of a measurement system. These curves help analyze how measurement uncertainty behaves under different flow rate conditions, ensuring accuracy and reliability in uncertainty assessments.<br><br>Key Aspects of an Uncertainty Curve Point:<br>- Uncertainty File ID: Links the point to the specific uncertainty dataset, ensuring traceability.<br>Equipment Tag ID: Identifies the equipment associated with the uncertainty measurement, crucial for system validation.<br>- Uncertainty Points: Represent uncertainty values recorded at specific conditions, forming part of the overall uncertainty curve.<br>- Flow Rate Points: Corresponding flow rate values at which the uncertainty was measured, essential for evaluating performance under varying operational conditions.<br>These points are fundamental for generating uncertainty curves, which are used in calibration, validation, and compliance assess...</code> | <code>0.001</code> |
365
+ | <code>measurement magnitude uncertainty</code> | <code>What is uncertainty?<br>Uncertainty is a measure of confidence in the precision and reliability of results obtained from equipment or measurement systems. It quantifies the potential error or margin of error in measurements.<br><br>Types of uncertainty:<br>There are two main types of uncertainty:<br>1. Uncertainty of magnitudes (variables):<br> - Refers to the uncertainty of specific variables, such as temperature or pressure.<br> - It is calculated after calibrating a device or obtained from the **equipment** manufacturer's manual.<br> - This uncertainty serves as a starting point for further calculations related to the equipment.<br><br>2. Uncertainty of the measurement system:<br> - Refers to the uncertainty calculated for the overall flow measurement.<br> - It depends on the uncertainties of the individual variables (magnitudes) and represents the combined margin of error for the entire system.<br><br>Key points:<br>- The uncertainties of magnitudes (variables) are the foundation for calculating the uncertainty...</code> | <code>0.95</code> |
366
+ * Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
367
+ ```json
368
+ {
369
+ "scale": 20.0,
370
+ "similarity_fct": "pairwise_cos_sim"
371
+ }
372
+ ```
373
+
374
+ ### Evaluation Dataset
375
+
376
+ #### measuring-embeddings-v5
377
+
378
+ * Dataset: [measuring-embeddings-v5](https://huggingface.co/datasets/Lauther/measuring-embeddings-v5) at [90b5410](https://huggingface.co/datasets/Lauther/measuring-embeddings-v5/tree/90b5410f6050bbea9cde1fa30323b08505996cb7)
379
+ * Size: 778 evaluation samples
380
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
381
+ * Approximate statistics based on the first 778 samples:
382
+ | | sentence1 | sentence2 | score |
383
+ |:--------|:---------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:----------------------------------------------------------------|
384
+ | type | string | string | float |
385
+ | details | <ul><li>min: 3 tokens</li><li>mean: 7.44 tokens</li><li>max: 17 tokens</li></ul> | <ul><li>min: 80 tokens</li><li>mean: 184.77 tokens</li><li>max: 406 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.23</li><li>max: 0.95</li></ul> |
386
+ * Samples:
387
+ | sentence1 | sentence2 | score |
388
+ |:--------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------|
389
+ | <code>measurement type</code> | <code>What is an Equipment Class?<br>An Equipment Class categorizes different types of equipment based on their function or role within a measurement system. This classification helps in organizing and distinguishing equipment types for operational, maintenance, and analytical purposes.<br><br>Each Equipment Class groups related equipment under a common category. Examples include:<br><br>Primary → Main measurement device in a system.<br>Secondary → Supporting measurement device, often used for verification.<br>Tertiary → Additional measurement equipment.<br>Valves → Flow control devices used in the system.<br>By defining Equipment Classes, the system ensures proper identification, tracking, and management of measurement-related assets.</code> | <code>0.001</code> |
390
+ | <code>latest uncertainty result</code> | <code>What is an Uncertainty Composition?<br>An Uncertainty Composition represents a specific factor that contributes to the overall uncertainty of a measurement system. These components are essential for evaluating the accuracy and reliability of measurements by identifying and quantifying the sources of uncertainty.<br><br>Key Aspects of an Uncertainty Component:<br>- Component Name: Defines the uncertainty factor (e.g., diameter, density, variance, covariance) influencing the measurement system.<br>- Value of Composition: Quantifies the component’s contribution to the total uncertainty, helping to analyze which factors have the greatest impact.<br>- Uncertainty File ID: Links the component to a specific uncertainty dataset for traceability and validation.<br>Understanding these components is critical for uncertainty analysis, ensuring compliance with industry standards and improving measurement precision.</code> | <code>0.75</code> |
391
+ | <code>uncertainty calculation ID 593</code> | <code>What is an Uncertainty Composition?<br>An Uncertainty Composition represents a specific factor that contributes to the overall uncertainty of a measurement system. These components are essential for evaluating the accuracy and reliability of measurements by identifying and quantifying the sources of uncertainty.<br><br>Key Aspects of an Uncertainty Component:<br>- Component Name: Defines the uncertainty factor (e.g., diameter, density, variance, covariance) influencing the measurement system.<br>- Value of Composition: Quantifies the component’s contribution to the total uncertainty, helping to analyze which factors have the greatest impact.<br>- Uncertainty File ID: Links the component to a specific uncertainty dataset for traceability and validation.<br>Understanding these components is critical for uncertainty analysis, ensuring compliance with industry standards and improving measurement precision.</code> | <code>0.95</code> |
392
+ * Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
393
+ ```json
394
+ {
395
+ "scale": 20.0,
396
+ "similarity_fct": "pairwise_cos_sim"
397
+ }
398
+ ```
399
+
400
+ ### Training Hyperparameters
401
+ #### Non-Default Hyperparameters
402
+
403
+ - `eval_strategy`: steps
404
+ - `gradient_accumulation_steps`: 8
405
+ - `learning_rate`: 5e-06
406
+ - `weight_decay`: 0.01
407
+ - `max_grad_norm`: 0.5
408
+ - `num_train_epochs`: 20
409
+ - `lr_scheduler_type`: cosine
410
+ - `warmup_ratio`: 0.1
411
+
412
+ #### All Hyperparameters
413
+ <details><summary>Click to expand</summary>
414
+
415
+ - `overwrite_output_dir`: False
416
+ - `do_predict`: False
417
+ - `eval_strategy`: steps
418
+ - `prediction_loss_only`: True
419
+ - `per_device_train_batch_size`: 8
420
+ - `per_device_eval_batch_size`: 8
421
+ - `per_gpu_train_batch_size`: None
422
+ - `per_gpu_eval_batch_size`: None
423
+ - `gradient_accumulation_steps`: 8
424
+ - `eval_accumulation_steps`: None
425
+ - `torch_empty_cache_steps`: None
426
+ - `learning_rate`: 5e-06
427
+ - `weight_decay`: 0.01
428
+ - `adam_beta1`: 0.9
429
+ - `adam_beta2`: 0.999
430
+ - `adam_epsilon`: 1e-08
431
+ - `max_grad_norm`: 0.5
432
+ - `num_train_epochs`: 20
433
+ - `max_steps`: -1
434
+ - `lr_scheduler_type`: cosine
435
+ - `lr_scheduler_kwargs`: {}
436
+ - `warmup_ratio`: 0.1
437
+ - `warmup_steps`: 0
438
+ - `log_level`: passive
439
+ - `log_level_replica`: warning
440
+ - `log_on_each_node`: True
441
+ - `logging_nan_inf_filter`: True
442
+ - `save_safetensors`: True
443
+ - `save_on_each_node`: False
444
+ - `save_only_model`: False
445
+ - `restore_callback_states_from_checkpoint`: False
446
+ - `no_cuda`: False
447
+ - `use_cpu`: False
448
+ - `use_mps_device`: False
449
+ - `seed`: 42
450
+ - `data_seed`: None
451
+ - `jit_mode_eval`: False
452
+ - `use_ipex`: False
453
+ - `bf16`: False
454
+ - `fp16`: False
455
+ - `fp16_opt_level`: O1
456
+ - `half_precision_backend`: auto
457
+ - `bf16_full_eval`: False
458
+ - `fp16_full_eval`: False
459
+ - `tf32`: None
460
+ - `local_rank`: 0
461
+ - `ddp_backend`: None
462
+ - `tpu_num_cores`: None
463
+ - `tpu_metrics_debug`: False
464
+ - `debug`: []
465
+ - `dataloader_drop_last`: False
466
+ - `dataloader_num_workers`: 0
467
+ - `dataloader_prefetch_factor`: None
468
+ - `past_index`: -1
469
+ - `disable_tqdm`: False
470
+ - `remove_unused_columns`: True
471
+ - `label_names`: None
472
+ - `load_best_model_at_end`: False
473
+ - `ignore_data_skip`: False
474
+ - `fsdp`: []
475
+ - `fsdp_min_num_params`: 0
476
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
477
+ - `fsdp_transformer_layer_cls_to_wrap`: None
478
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
479
+ - `deepspeed`: None
480
+ - `label_smoothing_factor`: 0.0
481
+ - `optim`: adamw_torch
482
+ - `optim_args`: None
483
+ - `adafactor`: False
484
+ - `group_by_length`: False
485
+ - `length_column_name`: length
486
+ - `ddp_find_unused_parameters`: None
487
+ - `ddp_bucket_cap_mb`: None
488
+ - `ddp_broadcast_buffers`: False
489
+ - `dataloader_pin_memory`: True
490
+ - `dataloader_persistent_workers`: False
491
+ - `skip_memory_metrics`: True
492
+ - `use_legacy_prediction_loop`: False
493
+ - `push_to_hub`: False
494
+ - `resume_from_checkpoint`: None
495
+ - `hub_model_id`: None
496
+ - `hub_strategy`: every_save
497
+ - `hub_private_repo`: None
498
+ - `hub_always_push`: False
499
+ - `gradient_checkpointing`: False
500
+ - `gradient_checkpointing_kwargs`: None
501
+ - `include_inputs_for_metrics`: False
502
+ - `include_for_metrics`: []
503
+ - `eval_do_concat_batches`: True
504
+ - `fp16_backend`: auto
505
+ - `push_to_hub_model_id`: None
506
+ - `push_to_hub_organization`: None
507
+ - `mp_parameters`:
508
+ - `auto_find_batch_size`: False
509
+ - `full_determinism`: False
510
+ - `torchdynamo`: None
511
+ - `ray_scope`: last
512
+ - `ddp_timeout`: 1800
513
+ - `torch_compile`: False
514
+ - `torch_compile_backend`: None
515
+ - `torch_compile_mode`: None
516
+ - `dispatch_batches`: None
517
+ - `split_batches`: None
518
+ - `include_tokens_per_second`: False
519
+ - `include_num_input_tokens_seen`: False
520
+ - `neftune_noise_alpha`: None
521
+ - `optim_target_modules`: None
522
+ - `batch_eval_metrics`: False
523
+ - `eval_on_start`: False
524
+ - `use_liger_kernel`: False
525
+ - `eval_use_gather_object`: False
526
+ - `average_tokens_across_devices`: False
527
+ - `prompts`: None
528
+ - `batch_sampler`: batch_sampler
529
+ - `multi_dataset_batch_sampler`: proportional
530
+
531
+ </details>
532
+
533
+ ### Training Logs
534
+ | Epoch | Step | Training Loss | Validation Loss |
535
+ |:-------:|:----:|:-------------:|:---------------:|
536
+ | 6.2467 | 350 | 5.4993 | - |
537
+ | 7.1233 | 400 | 5.1991 | - |
538
+ | 8.0 | 450 | 4.7573 | 0.6509 |
539
+ | 8.8811 | 500 | 4.8783 | - |
540
+ | 9.7577 | 550 | 4.4897 | - |
541
+ | 10.6344 | 600 | 3.9524 | 0.6758 |
542
+ | 11.5110 | 650 | 3.679 | - |
543
+ | 12.3877 | 700 | 3.4076 | - |
544
+ | 13.2643 | 750 | 3.8909 | 0.6588 |
545
+ | 14.1410 | 800 | 3.1191 | - |
546
+ | 15.0176 | 850 | 3.5478 | - |
547
+ | 15.8987 | 900 | 3.2201 | 0.6553 |
548
+ | 16.7753 | 950 | 3.3027 | - |
549
+ | 17.6520 | 1000 | 2.4874 | - |
550
+ | 18.5286 | 1050 | 2.9745 | 0.6615 |
551
+ | 19.4053 | 1100 | 2.8649 | - |
552
+
553
+
554
+ ### Framework Versions
555
+ - Python: 3.11.0
556
+ - Sentence Transformers: 3.4.1
557
+ - Transformers: 4.49.0
558
+ - PyTorch: 2.6.0+cu124
559
+ - Accelerate: 1.4.0
560
+ - Datasets: 3.3.2
561
+ - Tokenizers: 0.21.0
562
+
563
+ ## Citation
564
+
565
+ ### BibTeX
566
+
567
+ #### Sentence Transformers
568
+ ```bibtex
569
+ @inproceedings{reimers-2019-sentence-bert,
570
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
571
+ author = "Reimers, Nils and Gurevych, Iryna",
572
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
573
+ month = "11",
574
+ year = "2019",
575
+ publisher = "Association for Computational Linguistics",
576
+ url = "https://arxiv.org/abs/1908.10084",
577
+ }
578
+ ```
579
+
580
+ #### CoSENTLoss
581
+ ```bibtex
582
+ @online{kexuefm-8847,
583
+ title={CoSENT: A more efficient sentence vector scheme than Sentence-BERT},
584
+ author={Su Jianlin},
585
+ year={2022},
586
+ month={Jan},
587
+ url={https://kexue.fm/archives/8847},
588
+ }
589
+ ```
590
+
591
+ <!--
592
+ ## Glossary
593
+
594
+ *Clearly define terms in order to be accessible across audiences.*
595
+ -->
596
+
597
+ <!--
598
+ ## Model Card Authors
599
+
600
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
601
+ -->
602
+
603
+ <!--
604
+ ## Model Card Contact
605
+
606
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
607
+ -->
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/home/azureuser/projects/embeddings-train/.models/finetuned--measuring-embeddings-v5.3/checkpoint-1120",
3
+ "architectures": [
4
+ "XLMRobertaModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.2,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.2,
12
+ "hidden_size": 1024,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 4096,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "xlm-roberta",
18
+ "num_attention_heads": 16,
19
+ "num_hidden_layers": 24,
20
+ "output_past": true,
21
+ "pad_token_id": 1,
22
+ "position_embedding_type": "absolute",
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.49.0",
25
+ "type_vocab_size": 1,
26
+ "use_cache": true,
27
+ "vocab_size": 250002
28
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.4.1",
4
+ "transformers": "4.49.0",
5
+ "pytorch": "2.6.0+cu124"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f2a107a04b189e405828a6a5156f9ab77a467c4c820483c0a7d11186185f9be
3
+ size 2239607176
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,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:883b037111086fd4dfebbbc9b7cee11e1517b5e0c0514879478661440f137085
3
+ size 17082987
tokenizer_config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "additional_special_tokens": [],
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": true,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "extra_special_tokens": {},
50
+ "mask_token": "<mask>",
51
+ "max_length": 512,
52
+ "model_max_length": 512,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "<pad>",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "</s>",
58
+ "stride": 0,
59
+ "tokenizer_class": "XLMRobertaTokenizerFast",
60
+ "truncation_side": "right",
61
+ "truncation_strategy": "longest_first",
62
+ "unk_token": "<unk>"
63
+ }