Views
No views yet
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
(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})
(2): Normalize()
)pip install -U sentence-transformers1from sentence_transformers import SentenceTransformer
2
3# Download from the 🤗 Hub
4model = SentenceTransformer("Lauther/d4-embeddings-v2.0")
5# Run inference
6sentences = [
7 'PTE SUZANO',
8 '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.',
9 'What is a flow computer?\nA flow computer is a device used in measurement engineering. It collects analog and digital data from flow meters and other sensors.\n\nKey features of a flow computer:\n- It has a unique name, firmware version, and manufacturer information.\n- It is designed to record and process data such as temperature, pressure, and fluid volume (for gases or oils).',
10]
11embeddings = model.encode(sentences)
12print(embeddings.shape)
13# [3, 1024]
14
15# Get the similarity scores for the embeddings
16similarities = model.similarity(embeddings, embeddings)
17print(similarities.shape)
18# [3, 3]sentence1, sentence2, and label| sentence1 | sentence2 | label | |
|---|---|---|---|
| type | string | string | int |
| details |
|
|
|
| sentence1 | sentence2 | label |
|---|---|---|
Ramal ESVOL - TEVOL (GASVOL 14") | What is Equipment?[object Object]An Equipment represents a physical device that may be used within a measurement system. Equipment can be active or inactive and is classified by type, such as transmitters, thermometers, or other measurement-related devices.[object Object][object Object]Key Aspects of Equipment:[object Object]- Serial Number: A unique identifier assigned to each equipment unit for tracking and reference.[object Object]- Current State: Indicates whether the equipment is currently in use (ACT) or inactive (INA).[object Object]- Associated Equipment Type: Defines the category of the equipment (e.g., transmitter, thermometer), allowing classification and management.[object Object]Equipment plays a critical role in measurement systems, ensuring accuracy and reliability in data collection and processing. | 0 |
Mol (%) CO | What is an Equipment Tag?[object Object]An Equipment Tag is a unique label string identifier assigned to equipment that is actively installed and in use within a measurement system. It differentiates between equipment in general (which may be in storage or inactive) and equipment that is currently operational in a system.[object Object][object Object]Key Aspects of Equipment Tags:[object Object]- Equipment-Tag: A distinct label or identifier that uniquely marks the equipment in operation.[object Object]- Equipment ID: Links the tag to the corresponding equipment unit.[object Object]- Belonging Measurement System: Specifies which measurement system the tagged equipment is part of.[object Object]- Equipment Type Name: Classifies the equipment (e.g., transmitter, thermometer), aiding in organization and system integration.[object Object]The Equipment Tag is essential for tracking and managing operational equipment within a measurement system, ensuring proper identification, monitoring, and maintenance. | 0 |
FQI-4715-1411 | What is a flow computer?[object Object]A flow computer is a device used in measurement engineering. It collects analog and digital data from flow meters and other sensors.[object Object][object Object]Key features of a flow computer:[object Object]- It has a unique name, firmware version, and manufacturer information.[object Object]- It is designed to record and process data such as temperature, pressure, and fluid volume (for gases or oils). | 0 |
ContrastiveLoss with these parameters:
1{
2 "distance_metric": "SiameseDistanceMetric.COSINE_DISTANCE",
3 "margin": 0.5,
4 "size_average": true
5}sentence1, sentence2, and label| sentence1 | sentence2 | label | |
|---|---|---|---|
| type | string | string | int |
| details |
|
|
|
| sentence1 | sentence2 | label |
|---|---|---|
PTE UTE JUIZ DE FORA (IGREJINHA) B | What is uncertainty?[object Object]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.[object Object][object Object]Types of uncertainty:[object Object]There are two main types of uncertainty:[object Object]1. Uncertainty of magnitudes (variables):[object Object] - Refers to the uncertainty of specific variables, such as temperature or pressure.[object Object] - It is calculated after calibrating a device or obtained from the equipment manufacturer's manual.[object Object] - This uncertainty serves as a starting point for further calculations related to the equipment.[object Object][object Object]2. Uncertainty of the measurement system:[object Object] - Refers to the uncertainty calculated for the overall flow measurement.[object Object] - It depends on the uncertainties of the individual variables (magnitudes) and represents the combined margin of error for the entire system.[object Object][object Object]Key points:[object Object]- The uncertainties of magnitudes (variables) are the foundation for calculating the uncertainty of ... | 1 |
measure type | What is a Calibration Record?[object Object]A 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.[object Object][object Object]Key Aspects of a Calibration Record:[object Object]- Calibration Date: The exact date when the calibration was performed, crucial for tracking maintenance schedules.[object Object]- Certification Number: A unique identifier for the calibration certificate, providing traceability and verification of compliance.[object Object]- Range Values: The minimum and maximum measurement values covered during the calibration process.[object Object]- Calibration Status: Indicates whether the calibration was approved or saved for further review.[object Object]- Associated Units: Specifies the measurement units used in calibration (e.g., °C, psi).[object Object]- Associated Equipment Tag ID: Links the calibration record to a specific equipment tag, ensuring traceability of measurement instruments.[object Object]Calibration r... | 0 |
daily flow rate | What is a Measured Magnitude Value?[object Object]A Measured Magnitude Value represents a [object Object] recorded physical measurement of a variable within a monitored fluid. These values are essential for tracking system performance, analyzing trends, and ensuring accurate monitoring of fluid properties.[object Object][object Object]Key Aspects of a Measured Magnitude Value:[object Object]- Measurement Date: The timestamp indicating when the measurement was recorded.[object Object]- Measured Value: The daily numeric result of the recorded physical magnitude.[object Object]- Measurement System Association: Links the measured value to a specific measurement system responsible for capturing the data.[object Object]- Variable Association: Identifies the specific variable (e.g., temperature, pressure, flow rate) corresponding to the recorded value.[object Object]Measured magnitude values are crucial for real-time monitoring, historical analysis, and calibration processes within measurement systems.[object Object][object Object]Database advices:[object Object]This values also are in [object Object]. Although, to go directl... | 1 |
ContrastiveLoss with these parameters:
1{
2 "distance_metric": "SiameseDistanceMetric.COSINE_DISTANCE",
3 "margin": 0.5,
4 "size_average": true
5}eval_strategy: stepsper_device_train_batch_size: 12per_device_eval_batch_size: 12gradient_accumulation_steps: 8weight_decay: 0.01max_grad_norm: 0.5num_train_epochs: 5lr_scheduler_type: cosinewarmup_ratio: 0.1overwrite_output_dir: Falsedo_predict: Falseeval_strategy: stepsprediction_loss_only: Trueper_device_train_batch_size: 12per_device_eval_batch_size: 12per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 8eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 5e-05weight_decay: 0.01adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 0.5num_train_epochs: 5max_steps: -1lr_scheduler_type: cosinelr_scheduler_kwargs: {}warmup_ratio: 0.1warmup_steps: 0log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Truesave_safetensors: Truesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseno_cuda: Falseuse_cpu: Falseuse_mps_device: Falseseed: 42data_seed: Nonejit_mode_eval: Falseuse_ipex: Falsebf16: Falsefp16: Falsefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: 0ddp_backend: Nonetpu_num_cores: Nonetpu_metrics_debug: Falsedebug: []dataloader_drop_last: Falsedataloader_num_workers: 0dataloader_prefetch_factor: Nonepast_index: -1disable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Falseignore_data_skip: Falsefsdp: []fsdp_min_num_params: 0fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}fsdp_transformer_layer_cls_to_wrap: Noneaccelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}deepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torchoptim_args: Noneadafactor: Falsegroup_by_length: Falselength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Truedataloader_persistent_workers: Falseskip_memory_metrics: Trueuse_legacy_prediction_loop: Falsepush_to_hub: Falseresume_from_checkpoint: Nonehub_model_id: Nonehub_strategy: every_savehub_private_repo: Nonehub_always_push: Falsegradient_checkpointing: Falsegradient_checkpointing_kwargs: Noneinclude_inputs_for_metrics: Falseinclude_for_metrics: []eval_do_concat_batches: Truefp16_backend: autopush_to_hub_model_id: Nonepush_to_hub_organization: Nonemp_parameters:auto_find_batch_size: Falsefull_determinism: Falsetorchdynamo: Noneray_scope: lastddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Nonedispatch_batches: Nonesplit_batches: Noneinclude_tokens_per_second: Falseinclude_num_input_tokens_seen: Falseneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseeval_use_gather_object: Falseaverage_tokens_across_devices: Falseprompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: proportional| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.4296 | 50 | 0.1345 | - |
| 0.8593 | 100 | 0.0512 | - |
| 1.2836 | 150 | 0.041 | 0.0051 |
| 1.7132 | 200 | 0.0344 | - |
| 2.1375 | 250 | 0.0324 | - |
| 2.5671 | 300 | 0.0284 | 0.0038 |
| 2.9968 | 350 | 0.0296 | - |
| 3.4211 | 400 | 0.0261 | - |
| 3.8507 | 450 | 0.0268 | 0.0035 |
| 4.2750 | 500 | 0.0244 | - |
| 4.7046 | 550 | 0.0249 | - |
1@inproceedings{reimers-2019-sentence-bert,
2 title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
3 author = "Reimers, Nils and Gurevych, Iryna",
4 booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
5 month = "11",
6 year = "2019",
7 publisher = "Association for Computational Linguistics",
8 url = "https://arxiv.org/abs/1908.10084",
9}1@inproceedings{hadsell2006dimensionality,
2 author={Hadsell, R. and Chopra, S. and LeCun, Y.},
3 booktitle={2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'06)},
4 title={Dimensionality Reduction by Learning an Invariant Mapping},
5 year={2006},
6 volume={2},
7 number={},
8 pages={1735-1742},
9 doi={10.1109/CVPR.2006.100}
10}