Views
No views yet
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: MPNetModel
(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})
)pip install -U sentence-transformers1from sentence_transformers import SentenceTransformer
2
3# Download from the 🤗 Hub
4model = SentenceTransformer("Saideepthi55/sentencetransformer-ft")
5# Run inference
6sentences = [
7 'With a molecule represented by the SMILES string CNNNCC(=O)N[C@H](C)C[C@@H](C)NCc1ccc2c(c1)CCC2, propose adjustments that can increase its logP value while keeping the output molecule structurally related to the input molecule.',
8 'Given a molecule expressed in SMILES string, help me optimize it according to my requirements.',
9 'In line with your criteria, I\'ve optimized the molecule and present it as "C[C@H](C[C@@H](C)NC(=O)COC(C)(C)C)NCc1ccc2c(c1)CCC2".',
10]
11embeddings = model.encode(sentences)
12print(embeddings.shape)
13# [3, 768]
14
15# Get the similarity scores for the embeddings
16similarities = model.similarity(embeddings, embeddings)
17print(similarities.shape)
18# [3, 3]all-nli-devTripletEvaluator| Metric | Value |
|---|---|
| cosine_accuracy | 0.6562 |
| dot_accuracy | 0.5342 |
| manhattan_accuracy | 0.7076 |
| euclidean_accuracy | 0.6584 |
| max_accuracy | 0.7076 |
all-nli-devTripletEvaluator| Metric | Value |
|---|---|
| cosine_accuracy | 0.9804 |
| dot_accuracy | 0.0189 |
| manhattan_accuracy | 0.9811 |
| euclidean_accuracy | 0.9802 |
| max_accuracy | 0.9811 |
input, instruction, and output| input | instruction | output | |
|---|---|---|---|
| type | string | string | string |
| details |
|
|
|
| input | instruction | output |
|---|---|---|
| List the countries of the Middle East | Egypt, Israel, Iran, Iraq, Jordan, Kuwait, Lebanon, Qatar, Saudi Arabia, Syria, Turkey, The United Arab Emirates, Oman, and Yemen. |
Support me in refining the molecule CCC(C)=C(CC)c1ccc(Nc2nc3nonc3nc2N2CCC(Oc3ccc(Cl)cc3)CC2)cc1 to have a more drug-like nature, ensuring it remains close to the input molecule. Please inform me of the QED value of the optimized molecule. | Help me adapt a molecular structure denoted in SMILES string based on my preferences. | I've optimized the molecule according to your requirements, yielding the structure "COC(=O)c1ccc(Nc2nc3nonc3nc2N2CCC(Oc3ccc(Cl)cc3)CC2)cc1" and an estimated QED value of 0.4. |
| Create a social media strategy to attract followers on Twitter. | The social media strategy for Twitter should involve Tweeting on a regular basis, with content that is engaging and relevant to the target audience. This can include retweetable quotes, links to videos and articles, sharing photos/images, polls, and so on. It is also beneficial for the information to include hashtags relevant to the content and any relevant topics of the industry. [object Object][object Object]It is also important to leverage Twitter influencers and accounts, as well as engaging with potential followers regularly and DM them when necessary. Additionally, running campaigns, contests and giveaways to gain more followers should also be part of the strategy. Finally, hashtag research should be conducted to increase the reach of the tweets. |
MultipleNegativesRankingLoss with these parameters:
1{
2 "scale": 20.0,
3 "similarity_fct": "cos_sim"
4}input, instruction, and output| input | instruction | output | |
|---|---|---|---|
| type | string | string | string |
| details |
|
|
|
| input | instruction | output |
|---|---|---|
With a molecule represented by the SMILES string COc1ccc(CN(C(=O)Nc2ccc([object Object]c3ccccc3)c(Cl)c2)C2CC2)cc1, propose adjustments that can decrease its blood-brain barrier permeability (BBBP) value by at least 0.1 compared to the pre-optimized value while keeping the output molecule structurally related to the input molecule. Please inform me of the BBBP value of the optimized molecule. | Help me adapt a molecular structure denoted in SMILES string based on my preferences. | I've optimized the molecule according to your requirements, yielding the structure "CC(C)c1cccc(Oc2ccc(CN(C(=O)Nc3ccc([object Object]c4ccccc4)c(Cl)c3)C3CC3)cc2)c1" and an estimated BBBP value of 0.34. |
Which modifications can be applied to the molecule Cc1nn(-c2cc3cc(F)ccc3s2)c2ncc(C(=O)N3CCCC3c3nnc4n3CCCCC4)cc12 to increase its water solubility value while ensuring it remains similar to the original molecule? | Aid me in refining a molecular structure written in SMILES notation based on my criteria. | I've optimized the molecule according to your requirements, resulting in the following structure: "Cc1nn(C)c2ncc(C(=O)N3CCCC3c3nnc4n3CCCCC4)cc12". |
| Describe the benefits of having a mentor. | Having a mentor can provide tremendous benefits, including guidance, advice, support and connection to a network of contacts. Mentors can offer valuable feedback, help to create goals and strategies, and provide the accountability necessary to carry out the desired goals. They can also provide a fresh perspective which can help to create new ideas and solutions. |
MultipleNegativesRankingLoss with these parameters:
1{
2 "scale": 20.0,
3 "similarity_fct": "cos_sim"
4}eval_strategy: stepslearning_rate: 2e-05num_train_epochs: 1warmup_ratio: 0.1fp16: Trueoverwrite_output_dir: Falsedo_predict: Falseeval_strategy: stepsprediction_loss_only: Trueper_device_train_batch_size: 8per_device_eval_batch_size: 8per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 1eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 2e-05weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 1max_steps: -1lr_scheduler_type: linearlr_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: 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}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: Falsehub_always_push: Falsegradient_checkpointing: Falsegradient_checkpointing_kwargs: Noneinclude_inputs_for_metrics: Falseeval_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: Falseeval_use_gather_object: Falsebatch_sampler: batch_samplermulti_dataset_batch_sampler: proportional| Epoch | Step | Training Loss | loss | all-nli-dev_max_accuracy |
|---|---|---|---|---|
| 0 | 0 | - | - | 0.7076 |
| 0.0174 | 64 | - | - | 0.7156 |
| 0.0068 | 100 | 2.7336 | 2.6486 | 0.7524 |
| 0.0136 | 200 | 2.4965 | 1.9213 | 0.8162 |
| 0.0204 | 300 | 1.9042 | 1.7761 | 0.822 |
| 0.0272 | 400 | 1.6856 | 1.7172 | 0.8371 |
| 0.0340 | 500 | 1.6117 | 1.6916 | 0.8507 |
| 0.0408 | 600 | 1.5673 | 1.6809 | 0.8976 |
| 0.0477 | 700 | 1.5984 | 1.7052 | 0.9329 |
| 0.0545 | 800 | 1.5828 | 1.6841 | 0.9391 |
| 0.0613 | 900 | 1.5375 | 1.6534 | 0.9267 |
| 0.0681 | 1000 | 1.5561 | 1.6619 | 0.9509 |
| 0.0749 | 1100 | 1.4911 | 1.6538 | 0.9556 |
| 0.0817 | 1200 | 1.5075 | 1.6498 | 0.966 |
| 0.0885 | 1300 | 1.4722 | 1.6468 | 0.946 |
| 0.0953 | 1400 | 1.4806 | 1.6981 | 0.9631 |
| 0.1021 | 1500 | 1.4788 | 1.6335 | 0.9662 |
| 0.1089 | 1600 | 1.4668 | 1.6668 | 0.9731 |
| 0.1157 | 1700 | 1.4383 | 1.6473 | 0.9711 |
| 0.1225 | 1800 | 1.4549 | 1.6462 | 0.9713 |
| 0.1294 | 1900 | 1.4394 | 1.6184 | 0.9718 |
| 0.1362 | 2000 | 1.3861 | 1.6156 | 0.9676 |
| 0.1430 | 2100 | 1.4111 | 1.6045 | 0.9711 |
| 0.1498 | 2200 | 1.4286 | 1.6056 | 0.9782 |
| 0.1566 | 2300 | 1.4669 | 1.6174 | 0.9764 |
| 0.1634 | 2400 | 1.3761 | 1.6182 | 0.9776 |
| 0.1702 | 2500 | 1.4119 | 1.6150 | 0.9738 |
| 0.1770 | 2600 | 1.3625 | 1.5984 | 0.9776 |
| 0.1838 | 2700 | 1.3726 | 1.6092 | 0.9807 |
| 0.1906 | 2800 | 1.3265 | 1.6059 | 0.9789 |
| 0.1974 | 2900 | 1.3925 | 1.6004 | 0.978 |
| 0.2042 | 3000 | 1.3524 | 1.5964 | 0.9773 |
| 0.2111 | 3100 | 1.342 | 1.6213 | 0.9787 |
| 0.2179 | 3200 | 1.3478 | 1.6016 | 0.9822 |
| 0.2247 | 3300 | 1.3888 | 1.6038 | 0.9793 |
| 0.2315 | 3400 | 1.3328 | 1.5977 | 0.9813 |
| 0.2383 | 3500 | 1.372 | 1.6114 | 0.9824 |
| 0.2451 | 3600 | 1.3046 | 1.6082 | 0.9824 |
| 0.2519 | 3700 | 1.3857 | 1.5922 | 0.9824 |
| 0.2587 | 3800 | 1.3236 | 1.6127 | 0.9809 |
| 0.2655 | 3900 | 1.2929 | 1.5935 | 0.9824 |
| 0.2723 | 4000 | 1.3889 | 1.6047 | 0.9831 |
| 0.2791 | 4100 | 1.3509 | 1.6030 | 0.9844 |
| 0.2859 | 4200 | 1.3455 | 1.6099 | 0.9824 |
| 0.2928 | 4300 | 1.337 | 1.5939 | 0.984 |
| 0.2996 | 4400 | 1.3302 | 1.6057 | 0.9827 |
| 0.3064 | 4500 | 1.3377 | 1.6254 | 0.9833 |
| 0.3132 | 4600 | 1.3221 | 1.6020 | 0.9849 |
| 0.3200 | 4700 | 1.3209 | 1.6146 | 0.9824 |
| 0.3268 | 4800 | 1.354 | 1.6022 | 0.9824 |
| 0.3336 | 4900 | 1.3213 | 1.6136 | 0.9822 |
| 0.3404 | 5000 | 1.3484 | 1.5920 | 0.9807 |
| 0.3472 | 5100 | 1.3412 | 1.6106 | 0.978 |
| 0.3540 | 5200 | 1.3532 | 1.6001 | 0.9784 |
| 0.3608 | 5300 | 1.2984 | 1.6192 | 0.9762 |
| 0.3676 | 5400 | 1.3621 | 1.5850 | 0.98 |
| 0.3745 | 5500 | 1.2839 | 1.6158 | 0.9807 |
| 0.3813 | 5600 | 1.3664 | 1.6030 | 0.9831 |
| 0.3881 | 5700 | 1.327 | 1.6168 | 0.9822 |
| 0.3949 | 5800 | 1.3123 | 1.6040 | 0.982 |
| 0.4017 | 5900 | 1.3019 | 1.6092 | 0.9824 |
| 0.4085 | 6000 | 1.3908 | 1.5935 | 0.9829 |
| 0.4153 | 6100 | 1.3136 | 1.5916 | 0.9791 |
| 0.4221 | 6200 | 1.32 | 1.6091 | 0.9807 |
| 0.4289 | 6300 | 1.3018 | 1.6052 | 0.9827 |
| 0.4357 | 6400 | 1.3144 | 1.6083 | 0.9816 |
| 0.4425 | 6500 | 1.2865 | 1.6015 | 0.9829 |
| 0.4493 | 6600 | 1.2946 | 1.5882 | 0.9818 |
| 0.4562 | 6700 | 1.3245 | 1.5949 | 0.9824 |
| 0.4630 | 6800 | 1.3278 | 1.6081 | 0.9831 |
| 0.4698 | 6900 | 1.2842 | 1.6086 | 0.9836 |
| 0.4766 | 7000 | 1.3231 | 1.6170 | 0.9811 |
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@misc{henderson2017efficient,
2 title={Efficient Natural Language Response Suggestion for Smart Reply},
3 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},
4 year={2017},
5 eprint={1705.00652},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL}
8}