Views
No views yet
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
(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})
(2): Normalize()
)pip install -U sentence-transformers1from sentence_transformers import SentenceTransformer
2
3# Download from the 🤗 Hub
4model = SentenceTransformer("potsu-potsu/bge-base-mrl-train40k")
5# Run inference
6sentences = [
7 'What is known about the Digit Ratio (2D:4D) cancer?',
8 'BACKGROUND: The ratio of the lengths of index and ring fingers (2D:4D) is a \nmarker of prenatal exposure to sex hormones, with low 2D:4D being indicative of \nhigh prenatal androgen action. Recent studies have reported a strong association \nbetween 2D:4D and risk of prostate cancer.\nMETHODS: A total of 6258 men participating in the Melbourne Collaborative Cohort \nStudy had 2D:4D assessed. Of these men, we identified 686 incident prostate \ncancer cases. Hazard ratios (HRs) and confidence intervals (CIs) were estimated \nfor a standard deviation increase in 2D:4D.\nRESULTS: No association was observed between 2D:4D and prostate cancer risk \noverall (HRs 1.00; 95% CIs, 0.92-1.08 for right, 0.93-1.08 for left). We \nobserved a weak inverse association between 2D:4D and risk of prostate cancer \nfor age <60, however 95% CIs included unity for all observed ages.\nCONCLUSION: Our results are not consistent with an association between 2D:4D and \noverall prostate cancer risk, but we cannot exclude a weak inverse association \nbetween 2D:4D and early onset prostate cancer risk.',
9 "Proteins undergo conformational changes during their biological function. As \nsuch, a high-resolution structure of a protein's resting conformation provides a \nstarting point for elucidating its reaction mechanism, but provides no direct \ninformation concerning the protein's conformational dynamics. Several X-ray \nmethods have been developed to elucidate those conformational changes that occur \nduring a protein's reaction, including time-resolved Laue diffraction and \nintermediate trapping studies on three-dimensional protein crystals, and \ntime-resolved wide-angle X-ray scattering and X-ray absorption studies on \nproteins in the solution phase. This review emphasizes the scope and limitations \nof these complementary experimental approaches when seeking to understand \nprotein conformational dynamics. These methods are illustrated using a limited \nset of examples including myoglobin and haemoglobin in complex with carbon \nmonoxide, the simple light-driven proton pump bacteriorhodopsin, and the \nsuperoxide scavenger superoxide reductase. In conclusion, likely future \ndevelopments of these methods at synchrotron X-ray sources and the potential \nimpact of emerging X-ray free-electron laser facilities are speculated upon.",
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]dim_768InformationRetrievalEvaluator with these parameters:
1{
2 "truncate_dim": 768
3}| Metric | Value |
|---|---|
| cosine_accuracy@1 | 0.7397 |
| cosine_accuracy@3 | 0.8472 |
| cosine_accuracy@5 | 0.8925 |
| cosine_accuracy@10 | 0.9293 |
| cosine_precision@1 | 0.7397 |
| cosine_precision@3 | 0.6058 |
| cosine_precision@5 | 0.5296 |
| cosine_precision@10 | 0.411 |
| cosine_recall@1 | 0.2276 |
| cosine_recall@3 | 0.3939 |
| cosine_recall@5 | 0.4954 |
| cosine_recall@10 | 0.6262 |
| cosine_ndcg@10 | 0.7037 |
| cosine_mrr@10 | 0.8042 |
| cosine_map@100 | 0.65 |
dim_512InformationRetrievalEvaluator with these parameters:
1{
2 "truncate_dim": 512
3}| Metric | Value |
|---|---|
| cosine_accuracy@1 | 0.7327 |
| cosine_accuracy@3 | 0.843 |
| cosine_accuracy@5 | 0.8883 |
| cosine_accuracy@10 | 0.9151 |
| cosine_precision@1 | 0.7327 |
| cosine_precision@3 | 0.5964 |
| cosine_precision@5 | 0.5279 |
| cosine_precision@10 | 0.4099 |
| cosine_recall@1 | 0.2192 |
| cosine_recall@3 | 0.3867 |
| cosine_recall@5 | 0.4915 |
| cosine_recall@10 | 0.623 |
| cosine_ndcg@10 | 0.6971 |
| cosine_mrr@10 | 0.7969 |
| cosine_map@100 | 0.6403 |
dim_256InformationRetrievalEvaluator with these parameters:
1{
2 "truncate_dim": 256
3}| Metric | Value |
|---|---|
| cosine_accuracy@1 | 0.7228 |
| cosine_accuracy@3 | 0.8373 |
| cosine_accuracy@5 | 0.8769 |
| cosine_accuracy@10 | 0.9109 |
| cosine_precision@1 | 0.7228 |
| cosine_precision@3 | 0.5893 |
| cosine_precision@5 | 0.5132 |
| cosine_precision@10 | 0.4048 |
| cosine_recall@1 | 0.2165 |
| cosine_recall@3 | 0.3844 |
| cosine_recall@5 | 0.4707 |
| cosine_recall@10 | 0.6082 |
| cosine_ndcg@10 | 0.6857 |
| cosine_mrr@10 | 0.7889 |
| cosine_map@100 | 0.6255 |
dim_128InformationRetrievalEvaluator with these parameters:
1{
2 "truncate_dim": 128
3}| Metric | Value |
|---|---|
| cosine_accuracy@1 | 0.7072 |
| cosine_accuracy@3 | 0.8076 |
| cosine_accuracy@5 | 0.8458 |
| cosine_accuracy@10 | 0.8967 |
| cosine_precision@1 | 0.7072 |
| cosine_precision@3 | 0.5606 |
| cosine_precision@5 | 0.4877 |
| cosine_precision@10 | 0.3819 |
| cosine_recall@1 | 0.2132 |
| cosine_recall@3 | 0.3572 |
| cosine_recall@5 | 0.4428 |
| cosine_recall@10 | 0.5764 |
| cosine_ndcg@10 | 0.652 |
| cosine_mrr@10 | 0.7681 |
| cosine_map@100 | 0.5861 |
dim_64InformationRetrievalEvaluator with these parameters:
1{
2 "truncate_dim": 64
3}| Metric | Value |
|---|---|
| cosine_accuracy@1 | 0.6436 |
| cosine_accuracy@3 | 0.7666 |
| cosine_accuracy@5 | 0.8048 |
| cosine_accuracy@10 | 0.8416 |
| cosine_precision@1 | 0.6436 |
| cosine_precision@3 | 0.5116 |
| cosine_precision@5 | 0.4501 |
| cosine_precision@10 | 0.3511 |
| cosine_recall@1 | 0.1851 |
| cosine_recall@3 | 0.3181 |
| cosine_recall@5 | 0.3926 |
| cosine_recall@10 | 0.5118 |
| cosine_ndcg@10 | 0.5894 |
| cosine_mrr@10 | 0.7115 |
| cosine_map@100 | 0.5197 |
anchor and positive| anchor | positive | |
|---|---|---|
| type | string | string |
| details |
|
|
| anchor | positive |
|---|---|
What is the implication of histone lysine methylation in medulloblastoma? | Aberrant patterns of H3K4, H3K9, and H3K27 histone lysine methylation were shown to result in histone code alterations, which induce changes in gene expression, and affect the proliferation rate of cells in medulloblastoma. |
What is the implication of histone lysine methylation in medulloblastoma? | Recent studies showed frequent mutations in histone H3 lysine 27 (H3K27) [object Object]demethylases in medulloblastomas of Group 3 and Group 4, suggesting a role for [object Object]H3K27 methylation in these tumors. Indeed, trimethylated H3K27 (H3K27me3) levels [object Object]were shown to be higher in Group 3 and 4 tumors compared to WNT and SHH [object Object]medulloblastomas, also in tumors without detectable mutations in demethylases. [object Object]Here, we report that polycomb genes, required for H3K27 methylation, are [object Object]consistently upregulated in Group 3 and 4 tumors. These tumors show high [object Object]expression of the homeobox transcription factor OTX2. Silencing of OTX2 in D425 [object Object]medulloblastoma cells resulted in downregulation of polycomb genes such as EZH2, [object Object]EED, SUZ12 and RBBP4 and upregulation of H3K27 demethylases KDM6A, KDM6B, JARID2 [object Object]and KDM7A. This was accompanied by decreased H3K27me3 and increased H3K27me1 [object Object]levels in promoter regions. Strikingly, the decrease of H3K27me3 was most [object Object]prominent in promoters that bind OTX2. OTX2-bound promoters showe... |
What is the implication of histone lysine methylation in medulloblastoma? | We used high-resolution SNP genotyping to identify regions of genomic gain and [object Object]loss in the genomes of 212 medulloblastomas, malignant pediatric brain tumors. [object Object]We found focal amplifications of 15 known oncogenes and focal deletions of 20 [object Object]known tumor suppressor genes (TSG), most not previously implicated in [object Object]medulloblastoma. Notably, we identified previously unknown amplifications and [object Object]homozygous deletions, including recurrent, mutually exclusive, highly focal [object Object]genetic events in genes targeting histone lysine methylation, particularly that [object Object]of histone 3, lysine 9 (H3K9). Post-translational modification of histone [object Object]proteins is critical for regulation of gene expression, can participate in [object Object]determination of stem cell fates and has been implicated in carcinogenesis. [object Object]Consistent with our genetic data, restoration of expression of genes controlling [object Object]H3K9 methylation greatly diminishes proliferation of medulloblastoma in vitro. [object Object]Copy number aberrations of genes with critical roles in writing... |
MatryoshkaLoss with these parameters:
1{
2 "loss": "MultipleNegativesRankingLoss",
3 "matryoshka_dims": [
4 768,
5 512,
6 256,
7 128,
8 64
9 ],
10 "matryoshka_weights": [
11 1,
12 1,
13 1,
14 1,
15 1
16 ],
17 "n_dims_per_step": -1
18}eval_strategy: epochper_device_train_batch_size: 32per_device_eval_batch_size: 16gradient_accumulation_steps: 16learning_rate: 2e-05num_train_epochs: 4lr_scheduler_type: cosinewarmup_ratio: 0.1bf16: Truetf32: Trueload_best_model_at_end: Trueoptim: adamw_torch_fusedbatch_sampler: no_duplicatesoverwrite_output_dir: Falsedo_predict: Falseeval_strategy: epochprediction_loss_only: Trueper_device_train_batch_size: 32per_device_eval_batch_size: 16per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 16eval_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: 4max_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: Truefp16: Falsefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Truelocal_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: Trueignore_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_torch_fusedoptim_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: 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: no_duplicatesmulti_dataset_batch_sampler: proportional| Epoch | Step | Training Loss | dim_768_cosine_ndcg@10 | dim_512_cosine_ndcg@10 | dim_256_cosine_ndcg@10 | dim_128_cosine_ndcg@10 | dim_64_cosine_ndcg@10 |
|---|---|---|---|---|---|---|---|
| 0.1264 | 10 | 65.1116 | - | - | - | - | - |
| 0.2528 | 20 | 52.0541 | - | - | - | - | - |
| 0.3791 | 30 | 36.0158 | - | - | - | - | - |
| 0.5055 | 40 | 26.0258 | - | - | - | - | - |
| 0.6319 | 50 | 24.2254 | - | - | - | - | - |
| 0.7583 | 60 | 21.8763 | - | - | - | - | - |
| 0.8847 | 70 | 18.0685 | - | - | - | - | - |
| 1.0 | 80 | 17.7443 | 0.7094 | 0.7054 | 0.6895 | 0.6487 | 0.5783 |
| 1.1264 | 90 | 14.5363 | - | - | - | - | - |
| 1.2528 | 100 | 14.1097 | - | - | - | - | - |
| 1.3791 | 110 | 13.5251 | - | - | - | - | - |
| 1.5055 | 120 | 13.3574 | - | - | - | - | - |
| 1.6319 | 130 | 13.3079 | - | - | - | - | - |
| 1.7583 | 140 | 12.926 | - | - | - | - | - |
| 1.8847 | 150 | 12.0388 | - | - | - | - | - |
| 2.0 | 160 | 10.9161 | 0.7063 | 0.7005 | 0.6880 | 0.6514 | 0.5886 |
| 2.1264 | 170 | 10.7059 | - | - | - | - | - |
| 2.2528 | 180 | 10.1178 | - | - | - | - | - |
| 2.3791 | 190 | 10.4664 | - | - | - | - | - |
| 2.5055 | 200 | 10.4824 | - | - | - | - | - |
| 2.6319 | 210 | 10.2784 | - | - | - | - | - |
| 2.7583 | 220 | 9.2031 | - | - | - | - | - |
| 2.8847 | 230 | 8.9788 | - | - | - | - | - |
| 3.0 | 240 | 7.5905 | 0.7027 | 0.6964 | 0.6855 | 0.6515 | 0.5881 |
| 3.1264 | 250 | 8.4637 | - | - | - | - | - |
| 3.2528 | 260 | 9.4921 | - | - | - | - | - |
| 3.3791 | 270 | 9.0615 | - | - | - | - | - |
| 3.5055 | 280 | 9.0181 | - | - | - | - | - |
| 3.6319 | 290 | 8.6193 | - | - | - | - | - |
| 3.7583 | 300 | 8.3741 | - | - | - | - | - |
| 3.8847 | 310 | 8.9504 | - | - | - | - | - |
| 4.0 | 320 | 7.4761 | 0.7037 | 0.6971 | 0.6857 | 0.652 | 0.5894 |
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{kusupati2024matryoshka,
2 title={Matryoshka Representation Learning},
3 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},
4 year={2024},
5 eprint={2205.13147},
6 archivePrefix={arXiv},
7 primaryClass={cs.LG}
8}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}