Downloads · 30 days
4
4% of all-time downloads
Jimmy-Ooi/Tyrisonase_test_model_800_8epoch_wd_0.0005
Tyrisonase_test_model_800_8epoch_wd_0.0005 is a sentence similarity model from Jimmy-Ooi. Use it when you need a score for how close two texts are. It is set up for sentence-transformers.
This is a sentence-transformers model finetuned from google-bert/bert-base-cased on the csv dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similari…
Downloads · 30 days
4
4% of all-time downloads
All-time downloads
111
Public
Parameters
108M
433 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors433 MB · 100%
From the Hugging Face model README
This is a sentence-transformers model finetuned from google-bert/bert-base-cased on the csv dataset. 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.
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'BertModel'})
(1): Pooling({'word_embedding_dimension': 768, '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})
)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("Jimmy-Ooi/Tyrisonase_test_model_800_8epoch_wd_0.0005")
# Run inference
sentences = [
'O=C(NCc1ccc(O)cc1O)c1ccc(O)c(O)c1',
'CC(C)C(=O)N1CCC(Cc2ccc(F)cc2)CC1',
'O=C(c1ccccc1O)N1CCN(Cc2ccc(F)cc2)CC1',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[ 1.0000, 0.0227, 0.8878],
# [ 0.0227, 1.0000, -0.3557],
# [ 0.8878, -0.3557, 1.0000]])
<!--
### Direct Usage (Transformers)
<details><summary>Click to see the direct usage in Transformers</summary>
</details>
-->
<!--
### Downstream Usage (Sentence Transformers)
You can finetune this model on your own dataset.
<details><summary>Click to expand</summary>
</details>
-->
<!--
### Out-of-Scope Use
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
-->
<!--
## Bias, Risks and Limitations
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
-->
<!--
### Recommendations
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
-->
| premise | hypothesis | label | |
|---|---|---|---|
| type | string | string | int |
| details | <ul><li>min: 11 tokens</li><li>mean: 39.48 tokens</li><li>max: 106 tokens</li></ul> | <ul><li>min: 11 tokens</li><li>mean: 39.65 tokens</li><li>max: 106 tokens</li></ul> | <ul><li>0: ~51.20%</li><li>2: ~48.80%</li></ul> |
| premise | hypothesis | label |
|---|---|---|
| <code>O=C(c1ccc(C(F)(F)F)cc1)N1CCN(Cc2ccc(F)cc2)CC1</code> | <code>COc1ccc(C(=O)N/N=C/c2ccc(O)cc2O)cc1OC</code> | <code>0</code> |
| <code>O=C(c1ccccc1F)N1CCN(Cc2ccc(F)cc2)CC1</code> | <code>CCCCCCCCCCCCCCC(=O)OCC(O)CO</code> | <code>0</code> |
| <code>COc1ccc(/C=C/C(=O)NCCCNC(=O)/C=C/c2ccc(OC)c(O)c2)cc1O</code> | <code>O=C(O)c1ccc(S)nc1</code> | <code>2</code> |
| premise | hypothesis | label | |
|---|---|---|---|
| type | string | string | int |
| details | <ul><li>min: 11 tokens</li><li>mean: 38.84 tokens</li><li>max: 106 tokens</li></ul> | <ul><li>min: 11 tokens</li><li>mean: 39.28 tokens</li><li>max: 106 tokens</li></ul> | <ul><li>0: ~47.80%</li><li>2: ~52.20%</li></ul> |
| premise | hypothesis | label |
|---|---|---|
| <code>NC(=S)N/N=C/c1ccc[nH]1</code> | <code>Cn1c2ccccc2c2cc(/C=C/C(=O)c3cccc(NC(=O)c4ccc(Cl)cc4)c3)ccc21</code> | <code>0</code> |
| <code>COc1cc2c(c(OC)c1OC)[C@@H]1OC@HC@@HC@H[C@H]1OC2=O</code> | <code>COc1cc(/C=N/n2cnnc2SCc2cc(=O)c(O)co2)ccc1O</code> | <code>2</code> |
| <code>CC(=O)Nc1cccc(/C(C)=N/NC(N)=S)c1</code> | <code>COc1cc(C=O)ccc1OC(=O)CN1CCN(C)CC1</code> | <code>0</code> |
per_device_train_batch_size: 64per_device_eval_batch_size: 64weight_decay: 0.0005num_train_epochs: 8warmup_steps: 100fp16: Trueoverwrite_output_dir: Falsedo_predict: Falseeval_strategy: noprediction_loss_only: Trueper_device_train_batch_size: 64per_device_eval_batch_size: 64per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 1eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 5e-05weight_decay: 0.0005adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 8max_steps: -1lr_scheduler_type: linearlr_scheduler_kwargs: {}warmup_ratio: 0.0warmup_steps: 100log_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: Falsebf16: Falsefp16: Truefp16_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}parallelism_config: Nonedeepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torch_fusedoptim_args: Noneadafactor: Falsegroup_by_length: Falselength_column_name: lengthproject: huggingfacetrackio_space_id: trackioddp_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: Falsehub_revision: Nonegradient_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: Noneinclude_tokens_per_second: Falseinclude_num_input_tokens_seen: noneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseliger_kernel_config: Noneeval_use_gather_object: Falseaverage_tokens_across_devices: Trueprompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}| Epoch | Step | Training Loss |
|---|---|---|
| 0.0533 | 100 | 0.7477 |
| 0.1066 | 200 | 0.6771 |
| 0.1599 | 300 | 0.6393 |
| 0.2132 | 400 | 0.6056 |
| 0.2665 | 500 | 0.5962 |
| 0.3198 | 600 | 0.5866 |
| 0.3731 | 700 | 0.578 |
| 0.4264 | 800 | 0.578 |
| 0.4797 | 900 | 0.5564 |
| 0.5330 | 1000 | 0.5592 |
| 0.5864 | 1100 | 0.5553 |
| 0.6397 | 1200 | 0.5637 |
| 0.6930 | 1300 | 0.5575 |
| 0.7463 | 1400 | 0.5498 |
| 0.7996 | 1500 | 0.557 |
| 0.8529 | 1600 | 0.5499 |
| 0.9062 | 1700 | 0.5491 |
| 0.9595 | 1800 | 0.5477 |
| 1.0128 | 1900 | 0.545 |
| 1.0661 | 2000 | 0.5307 |
| 1.1194 | 2100 | 0.5344 |
| 1.1727 | 2200 | 0.5357 |
| 1.2260 | 2300 | 0.5351 |
| 1.2793 | 2400 | 0.5375 |
| 1.3326 | 2500 | 0.5406 |
| 1.3859 | 2600 | 0.5376 |
| 1.4392 | 2700 | 0.5368 |
| 1.4925 | 2800 | 0.5325 |
| 1.5458 | 2900 | 0.5284 |
| 1.5991 | 3000 | 0.5241 |
| 1.6525 | 3100 | 0.5355 |
| 1.7058 | 3200 | 0.5265 |
| 1.7591 | 3300 | 0.5328 |
| 1.8124 | 3400 | 0.5272 |
| 1.8657 | 3500 | 0.531 |
| 1.9190 | 3600 | 0.5238 |
| 1.9723 | 3700 | 0.5337 |
| 2.0256 | 3800 | 0.5192 |
| 2.0789 | 3900 | 0.5166 |
| 2.1322 | 4000 | 0.5162 |
| 2.1855 | 4100 | 0.5137 |
| 2.2388 | 4200 | 0.5158 |
| 2.2921 | 4300 | 0.5271 |
| 2.3454 | 4400 | 0.5283 |
| 2.3987 | 4500 | 0.5295 |
| 2.4520 | 4600 | 0.5236 |
| 2.5053 | 4700 | 0.5074 |
| 2.5586 | 4800 | 0.5193 |
| 2.6119 | 4900 | 0.518 |
| 2.6652 | 5000 | 0.5187 |
| 2.7186 | 5100 | 0.514 |
| 2.7719 | 5200 | 0.5176 |
| 2.8252 | 5300 | 0.5161 |
| 2.8785 | 5400 | 0.5129 |
| 2.9318 | 5500 | 0.5113 |
| 2.9851 | 5600 | 0.5143 |
| 3.0384 | 5700 | 0.5045 |
| 3.0917 | 5800 | 0.5136 |
| 3.1450 | 5900 | 0.5214 |
| 3.1983 | 6000 | 0.5113 |
| 3.2516 | 6100 | 0.5095 |
| 3.3049 | 6200 | 0.5103 |
| 3.3582 | 6300 | 0.5089 |
| 3.4115 | 6400 | 0.5051 |
| 3.4648 | 6500 | 0.5125 |
| 3.5181 | 6600 | 0.5138 |
| 3.5714 | 6700 | 0.5111 |
| 3.6247 | 6800 | 0.5105 |
| 3.6780 | 6900 | 0.5024 |
| 3.7313 | 7000 | 0.513 |
| 3.7846 | 7100 | 0.5047 |
| 3.8380 | 7200 | 0.5039 |
| 3.8913 | 7300 | 0.5161 |
| 3.9446 | 7400 | 0.5021 |
| 3.9979 | 7500 | 0.5078 |
| 4.0512 | 7600 | 0.5083 |
| 4.1045 | 7700 | 0.5062 |
| 4.1578 | 7800 | 0.5047 |
| 4.2111 | 7900 | 0.5115 |
| 4.2644 | 8000 | 0.5028 |
| 4.3177 | 8100 | 0.5017 |
| 4.3710 | 8200 | 0.516 |
| 4.4243 | 8300 | 0.5002 |
| 4.4776 | 8400 | 0.5031 |
| 4.5309 | 8500 | 0.5047 |
| 4.5842 | 8600 | 0.4955 |
| 4.6375 | 8700 | 0.5044 |
| 4.6908 | 8800 | 0.5066 |
| 4.7441 | 8900 | 0.5055 |
| 4.7974 | 9000 | 0.5037 |
| 4.8507 | 9100 | 0.4973 |
| 4.9041 | 9200 | 0.5065 |
| 4.9574 | 9300 | 0.4924 |
| 5.0107 | 9400 | 0.497 |
| 5.0640 | 9500 | 0.5026 |
| 5.1173 | 9600 | 0.4991 |
| 5.1706 | 9700 | 0.5003 |
| 5.2239 | 9800 | 0.5019 |
| 5.2772 | 9900 | 0.5051 |
| 5.3305 | 10000 | 0.4985 |
| 5.3838 | 10100 | 0.5042 |
| 5.4371 | 10200 | 0.5008 |
| 5.4904 | 10300 | 0.497 |
| 5.5437 | 10400 | 0.504 |
| 5.5970 | 10500 | 0.5003 |
| 5.6503 | 10600 | 0.4956 |
| 5.7036 | 10700 | 0.5 |
| 5.7569 | 10800 | 0.5022 |
| 5.8102 | 10900 | 0.4989 |
| 5.8635 | 11000 | 0.5003 |
| 5.9168 | 11100 | 0.5046 |
| 5.9701 | 11200 | 0.4964 |
| 6.0235 | 11300 | 0.4965 |
| 6.0768 | 11400 | 0.5001 |
| 6.1301 | 11500 | 0.493 |
| 6.1834 | 11600 | 0.502 |
| 6.2367 | 11700 | 0.4972 |
| 6.2900 | 11800 | 0.4911 |
| 6.3433 | 11900 | 0.5005 |
| 6.3966 | 12000 | 0.4992 |
| 6.4499 | 12100 | 0.5033 |
| 6.5032 | 12200 | 0.497 |
| 6.5565 | 12300 | 0.4925 |
| 6.6098 | 12400 | 0.5087 |
| 6.6631 | 12500 | 0.4883 |
| 6.7164 | 12600 | 0.4921 |
| 6.7697 | 12700 | 0.4991 |
| 6.8230 | 12800 | 0.5032 |
| 6.8763 | 12900 | 0.4994 |
| 6.9296 | 13000 | 0.4993 |
| 6.9829 | 13100 | 0.4938 |
| 7.0362 | 13200 | 0.5035 |
| 7.0896 | 13300 | 0.4962 |
| 7.1429 | 13400 | 0.484 |
| 7.1962 | 13500 | 0.4978 |
| 7.2495 | 13600 | 0.4918 |
| 7.3028 | 13700 | 0.4997 |
| 7.3561 | 13800 | 0.5 |
| 7.4094 | 13900 | 0.5001 |
| 7.4627 | 14000 | 0.4941 |
| 7.5160 | 14100 | 0.4896 |
| 7.5693 | 14200 | 0.498 |
| 7.6226 | 14300 | 0.4967 |
| 7.6759 | 14400 | 0.4954 |
| 7.7292 | 14500 | 0.4966 |
| 7.7825 | 14600 | 0.487 |
| 7.8358 | 14700 | 0.4946 |
| 7.8891 | 14800 | 0.4981 |
| 7.9424 | 14900 | 0.5037 |
| 7.9957 | 15000 | 0.498 |
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
<!--
## Glossary
*Clearly define terms in order to be accessible across audiences.*
-->
<!--
## Model Card Authors
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
-->
<!--
## Model Card Contact
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
-->