metadata
base_model: Alibaba-NLP/gte-large-en-v1.5
datasets: []
language: []
library_name: sentence-transformers
metrics:
- cosine_accuracy
- dot_accuracy
- manhattan_accuracy
- euclidean_accuracy
- max_accuracy
pipeline_tag: sentence-similarity
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:7075
- loss:MultipleNegativesRankingLoss
widget:
- source_sentence: What is the name of the monastery founded by Karma Rolpai Dorje?
sentences:
- >-
Amid the splendor of this natural beauty stood the monastery called
Karma Shar Tsong Ridro, which is a famous place in the religious history
of Tibet. It was founded by Karma Rolpai Dorje, the fourth reincarnation
of Karmapa, who himself was the first incarnation recognized in Tibet;
and it was at this monastery that our great reformer Tsongkhapa was
initiated as a monk in the fourteenth century of the Christian era.
- >-
In the Year of the Water Bird (1933), Thupten Gyatso, the Thirteenth
Dalai Lama, departed from this world. This event left the people of
Tibet desolate, as he had done much for the peace and welfare of Tibet.
Following his death, the people decided to build a golden mausoleum of
special magnificence as a token of their homage and respect, which was
erected inside the Potala Palace in Lhasa.
- >-
Mr. Nehru's personality had impressed me very much. Although the mantle
of Mahatma Gandhi had fallen on him, I could not catch any glimpse of
spiritual fervor in him; but I saw him as a brilliant practical
statesman, with a masterly grasp of international politics, and he
showed me that he had a profound love for his country and faith in his
people. For their welfare and progress, he was firm in the pursuit of
peace.
- source_sentence: >-
How did the Dalai Lama describe the period of darkness for Tibetan
refugees?
sentences:
- >-
The Dalai Lama was appalled and filled with consternation upon learning
the terms of the agreement. He described the agreement as a mixture of
'Communist clichés, vainglorious assertions which were completely false,
and bold statements which were only partly true.' The terms were far
worse and more oppressive than anything he had imagined, and he felt
that Tibet was expected to 'hand ourselves and our country over to China
and cease to exist as a nation.' Despite their strong opposition, they
felt helpless and abandoned, with no choice but to acquiesce and submit
to the Chinese dictates, hoping that the Chinese would keep their side
of the forced, one-sided bargain.
- >-
Thus, for almost fifteen years, the Tibetan refugees entered a period of
darkness. The prospect of returning to our homeland seemed further off
then when we had first come into exile. But of course night is the time
for regeneration and during these years the resettlement programme was
brought to fruition. Gradually, more and more people were taken off the
roads and put into the new settlements around India. Also, a few of the
refugees left India to found small communities around the world.
- >-
The Dalai Lama felt a sense of loss and nostalgia regarding the Chinese
road in Tibet. Although he acknowledged that the road made travel faster
and more convenient, he preferred the traditional way of travel. He
expressed this sentiment by stating, 'It was certainly ten times faster
and more convenient, but like all Tibetans, I preferred it as it had
always been before.'
- source_sentence: >-
What reforms did the Dalai Lama establish after the forced resignations of
his Prime Ministers?
sentences:
- >-
The Chinese requisitioned houses, and bought or rented others; and
beyond the Ngabo, in the pleasant land beside the river which had always
been the favorite place for summer picnics, they took possession of an
enormous area for a camp. They demanded a loan of 2000 tons of barley.
This huge amount could not be met from the state granaries at that time
because of heavy expenditure, and the government had to borrow from
monasteries and private owners. Other kinds of food were also demanded,
and the humble resources of the city began to be strained, and prices
began to rise.
- >-
After the forced resignations of his Prime Ministers, the Dalai Lama
established the Reform Committee. One of his main ambitions was to
establish an independent judiciary. He also focused on education,
instructing the Kashag to develop a good educational program.
Additionally, he aimed to improve communications by considering the
development of a system of roads and transportation. Furthermore, he
abolished the principle of hereditary debt and wrote off all government
loans that could not be repaid. These reforms were disseminated widely
to ensure their implementation.
- >-
The Dalai Lama's brother, Taktser Rinpoche, managed to escape to Lhasa
by pretending to go along with the Chinese authorities' demands. The
Chinese had put him under duress, restricted his activities, and tried
to indoctrinate him. They proposed that he would be set free to go to
Lhasa if he agreed to persuade the Dalai Lama to accept Chinese rule,
and if the Dalai Lama resisted, he was to kill him. Taktser Rinpoche
pretended to agree to this plan in order to escape and warn the Dalai
Lama and the Tibetan Government of the impending danger from the
Chinese. He eventually decided to renounce his monastic vows, disrobe,
and go abroad as an emissary for Tibet to seek foreign support against
the Chinese invasion.
- source_sentence: How did Tibet maintain its independence from 1912 to 1950?
sentences:
- >-
Throughout this period Tibetans never took any active steps to prove
their independence to the outside world, because it never seemed to be
necessary.
- >-
For example, there were now factories where there had been none before,
but all that they produced went to China. And the factories themselves
were sited with no regard for anything other than utility, with
predictably detrimental results to the environment.
- >-
In Tantric practices, the chakras and nadis hold significant importance
as they are central to the practitioner's ability to control and
suppress the grosser levels of consciousness, thereby allowing access to
subtler levels. This process is crucial for experiencing profound
spiritual realizations, particularly those that occur at the point of
death. By meditating on these energy centers and channels, practitioners
can demonstrate remarkable physiological phenomena, such as raising body
temperatures and reducing oxygen intake, which have been observed and
measured in scientific studies.The chakras are described as energy
centers, while the nadis are energy channels. The practice of focusing
on these elements enables the practitioner to temporarily prevent the
activity of grosser levels of consciousness, facilitating the experience
of subtler levels. This is aligned with the Buddhist understanding that
the most powerful spiritual realizations can occur when the grosser
levels of consciousness are suppressed, such as at the moment of death.
- source_sentence: >-
Who gave the Dalai Lama a lecture before he left Lhasa, and what was it
about?
sentences:
- >-
The settlement of Mangmang held significant importance in the Dalai
Lama's journey as it was the last settlement in Tibet before crossing
into India. It was here that the Dalai Lama received the crucial news
that the Indian government was willing to grant asylum, providing a
sense of safety and relief. Despite the harsh weather and his own
illness, Mangmang served as a pivotal point where final decisions were
made about who would accompany him into India and who would stay behind
to continue the fight. The Dalai Lama's departure from Mangmang marked
the end of his journey within Tibet and the beginning of his exile.
- >-
Before the Dalai Lama left Lhasa, he was given a long lecture by General
Chang Chin-wu, the permanent representative of China. The lecture
covered several topics, including recent events in Hungary and Poland,
the solidarity of socialist powers, the Dalai Lama's visit to India, and
specific instructions on how to handle questions about the Indo-Tibetan
frontier and the situation in Tibet. General Chang Chin-wu also
suggested that the Dalai Lama prepare his speeches in advance.
- >-
Everywhere I went, I was accompanied by a retinue of servants. I was
surrounded by government ministers and advisors clad in sumptuous silk
robes, men drawn from the most exalted and aristocratic families in the
land.
model-index:
- name: SentenceTransformer based on Alibaba-NLP/gte-large-en-v1.5
results:
- task:
type: triplet
name: Triplet
dataset:
name: all nli dev
type: all-nli-dev
metrics:
- type: cosine_accuracy
value: 0.9923664122137404
name: Cosine Accuracy
- type: dot_accuracy
value: 0.007633587786259542
name: Dot Accuracy
- type: manhattan_accuracy
value: 0.9923664122137404
name: Manhattan Accuracy
- type: euclidean_accuracy
value: 0.989821882951654
name: Euclidean Accuracy
- type: max_accuracy
value: 0.9923664122137404
name: Max Accuracy
SentenceTransformer based on Alibaba-NLP/gte-large-en-v1.5
This is a sentence-transformers model finetuned from Alibaba-NLP/gte-large-en-v1.5. 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.
Model Details
Model Description
- Model Type: Sentence Transformer
- Base model: Alibaba-NLP/gte-large-en-v1.5
- Maximum Sequence Length: 8192 tokens
- Output Dimensionality: 1024 tokens
- Similarity Function: Cosine Similarity
Model Sources
- Documentation: Sentence Transformers Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Sentence Transformers on Hugging Face
Full Model Architecture
SentenceTransformer(
(0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: NewModel
(1): Pooling({'word_embedding_dimension': 1024, '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})
)
Usage
Direct Usage (Sentence Transformers)
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("sentence_transformers_model_id")
# Run inference
sentences = [
'Who gave the Dalai Lama a lecture before he left Lhasa, and what was it about?',
"Before the Dalai Lama left Lhasa, he was given a long lecture by General Chang Chin-wu, the permanent representative of China. The lecture covered several topics, including recent events in Hungary and Poland, the solidarity of socialist powers, the Dalai Lama's visit to India, and specific instructions on how to handle questions about the Indo-Tibetan frontier and the situation in Tibet. General Chang Chin-wu also suggested that the Dalai Lama prepare his speeches in advance.",
'Everywhere I went, I was accompanied by a retinue of servants. I was surrounded by government ministers and advisors clad in sumptuous silk robes, men drawn from the most exalted and aristocratic families in the land.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
Evaluation
Metrics
Triplet
- Dataset:
all-nli-dev
- Evaluated with
TripletEvaluator
Metric | Value |
---|---|
cosine_accuracy | 0.9924 |
dot_accuracy | 0.0076 |
manhattan_accuracy | 0.9924 |
euclidean_accuracy | 0.9898 |
max_accuracy | 0.9924 |
Training Details
Training Dataset
Unnamed Dataset
- Size: 7,075 training samples
- Columns:
anchor
,positive
, andnegative
- Approximate statistics based on the first 1000 samples:
anchor positive negative type string string string details - min: 6 tokens
- mean: 17.9 tokens
- max: 33 tokens
- min: 10 tokens
- mean: 96.59 tokens
- max: 810 tokens
- min: 8 tokens
- mean: 90.43 tokens
- max: 810 tokens
- Samples:
anchor positive negative What was the Dalai Lama's plan for the senior members of the Government if the situation worsened?
Shortly afterwards, with the Chinese consolidating their forces in the east, we decided that I should move to southern Tibet with the most senior members of Government. That way, if the situation deteriorated, I could easily seek exile across the border with India. Meanwhile, Lobsang Tashi and Lukhangwa were to remain in Lhasa in an acting capacity: I would take the seals of state with me.
The Dalai Lama's press conference on 20 June had a significant impact on the international perception of the Tibetan issue. By formally repudiating the Seventeen-Point Agreement and detailing the atrocities committed against Tibetans, the Dalai Lama aimed to present a truthful account of the situation in Tibet. This press conference received wide coverage and helped to counter the Chinese government's narrative. However, despite the extensive media attention, the Dalai Lama acknowledged the challenges in overcoming the Chinese government's efficient public relations campaign and the general reluctance of the international community to face the truth about the situation in Tibet. The press conference marked an important step in raising global awareness about the Tibetan struggle and the injustices faced by its people.
What did the young Dalai Lama enjoy about the opera festival?
They gave their performances on a paved area situated on the far side of, but adjacent to, the Yellow Wall. I myself watched the proceedings from a makeshift enclosure erected on the top of one of the buildings that abutted the wall on the inside.
This man had become notorious in Lhasa because of his close association with the Chinese occupation forces. Earlier that morning he had attended a daily congregation of monastic officials called the Trungcha Ceremony, and for some unknown reason, about eleven o'clock, he rode towards the Norbulingka on a bicycle, wearing a semi-Chinese dress, dark glasses and a motorcyclist's dust mask, and carrying a pistol unconcealed in his belt. Some of the crowd took him for a Chinese in disguise; others thought he was bringing a message from the Chinese headquarters. Their anger and resentment against everything Chinese suddenly burst into fury, and murder was the tragic result.
What is the Tibetan term "Lama" equivalent to in Indian terminology?
Actually, Dalai is a Mongolian word meaning 'ocean' and Lama is a Tibetan term corresponding to the Indian word guru, which denotes a teacher.
The Chinese authorities handled the issue of Tibetan language and culture with a systematic and ruthless approach aimed at eradicating Tibetan identity. They implemented policies that severely suppressed Tibetan culture and language. For instance, the education provided to Tibetans was primarily conducted in Chinese, with a stated goal of eradicating the Tibetan language within fifteen years. Many schools were essentially labor camps for children, and only a select few Tibetan students received proper education, which was conducted in China to foster 'unity'. Additionally, the Chinese authorities brutally suppressed Tibetan culture by banning formal religion, desecrating thousands of monasteries and nunneries, and enforcing policies that controlled the Tibetan population through measures such as forced abortions and sterilizations. The Chinese also exploited Tibet's natural resources and transformed its economy in ways that primarily benefited China, leaving Tibetans in a state of abject poverty and environmental degradation.
- Loss:
MultipleNegativesRankingLoss
with these parameters:{ "scale": 20.0, "similarity_fct": "cos_sim" }
Evaluation Dataset
Unnamed Dataset
- Size: 393 evaluation samples
- Columns:
anchor
,positive
, andnegative
- Approximate statistics based on the first 1000 samples:
anchor positive negative type string string string details - min: 6 tokens
- mean: 18.13 tokens
- max: 30 tokens
- min: 10 tokens
- mean: 99.75 tokens
- max: 810 tokens
- min: 10 tokens
- mean: 99.99 tokens
- max: 810 tokens
- Samples:
anchor positive negative What was the role of the Dalai Lama in the feudal system of Tibet?
The Dalai Lama held a unique and central role in the feudal system of Tibet, combining both lay and monastic authority. He had two prime ministers, one a monk and one a layman, and most other offices were duplicated to reflect this dual nature. The Dalai Lama was the ultimate source of justice and was regarded with the highest reverence by the people, who saw him as the incarnation of Chenresi. This reverence ensured that the Dalai Lama could not become an unjust tyrant, providing a final appeal to a source of justice that the people could absolutely trust.
The Dalai Lama and his companions faced numerous challenges while crossing the high mountains. They had to traverse slippery and muddy tracks, often leading to heights of over 19,000 feet where snow and ice were still present. The journey involved crossing particularly high and steep passes, such as the Yarto Tag-la, where some ponies could not climb the track, necessitating dismounting and leading them. They endured long hours of hard riding and climbing, often becoming very tired and saddle-sore. The weather posed significant difficulties, including snowstorms, snow glare, torrential rain, and strong winds that picked up snow and whirled it into their faces. The cold was intense, numbing their fingers and hands, and causing ice to form on their eyebrows and moustaches. Additionally, they had to deal with the threat of being spotted by Chinese aircraft, which added to their unease and forced them to divide into smaller parties. The journey was further complicated by a duststorm and the glare from the snow, which was particularly hard on those without goggles. Finally, the weather did its worst when they reached Mangmang, where they experienced heavy rain that leaked into their tents, causing discomfort and illness.
What was the Dalai Lama's impression of Prime Minister Shastri?
The Dalai Lama held Prime Minister Lal Bahadur Shastri in high regard, respecting him greatly. He appreciated Shastri's friendship and political support for the Tibetan refugees, noting that Shastri was even more of a political ally than Nehru. The Dalai Lama admired Shastri's powerful mind and spirit, describing him as a bold and decisive leader despite his frail appearance. Shastri's compassion and strict vegetarianism, stemming from a childhood incident, also left a lasting impression on the Dalai Lama. The Dalai Lama mourned Shastri's death deeply, recognizing the loss of a true and mighty friend, an enlightened leader, and a genuinely compassionate spirit.
The Dalai Lama's initial impression of the Chinese general's appearance was that he looked extremely drab and insignificant among the splendid figures of his own officials. The Dalai Lama observed the general and his aides in gray suits and peaked caps, which contrasted sharply with the red and golden robes of the Tibetan officials. This drabness, as the Dalai Lama later reflected, was indicative of the state to which China would reduce Tibet. However, the general turned out to be friendly and informal during their meeting.
What were the names of the two Lhasa Apso dogs?
The names of the two Lhasa Apso dogs were Sangye and Tashi.
The Dalai Lama's journey was marked by challenging weather conditions. During the journey, they faced an 'extraordinary sequence of snowstorms, snow glare, and torrential rain.' At one point, while crossing the Lagoe-la pass, they encountered a 'heavy storm' which made it 'very cold,' numbing their fingers and hands, and freezing their eyebrows. Additionally, they experienced a duststorm and intense snow glare. The weather did its worst when they reached Mangmang, where it 'began to pour with rain,' causing leaks in the tents and resulting in a sleepless night for many, including the Dalai Lama, who felt very ill the next morning.
- Loss:
MultipleNegativesRankingLoss
with these parameters:{ "scale": 20.0, "similarity_fct": "cos_sim" }
Training Hyperparameters
Non-Default Hyperparameters
eval_strategy
: stepslearning_rate
: 2e-05num_train_epochs
: 1warmup_ratio
: 0.1fp16
: Truebatch_sampler
: no_duplicates
All Hyperparameters
Click to expand
overwrite_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
: 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
: Falsebatch_sampler
: no_duplicatesmulti_dataset_batch_sampler
: proportional
Training Logs
Epoch | Step | Training Loss | loss | all-nli-dev_max_accuracy |
---|---|---|---|---|
0 | 0 | - | - | 0.8830 |
0.0565 | 50 | 0.7484 | 0.2587 | 0.9873 |
0.1130 | 100 | 0.2822 | 0.2313 | 0.9898 |
0.1695 | 150 | 0.3023 | 0.2291 | 0.9873 |
0.2260 | 200 | 0.2484 | 0.2155 | 0.9873 |
0.2825 | 250 | 0.2909 | 0.1965 | 0.9847 |
0.3390 | 300 | 0.2999 | 0.2008 | 0.9847 |
0.3955 | 350 | 0.2586 | 0.1670 | 0.9924 |
0.4520 | 400 | 0.2385 | 0.1467 | 0.9898 |
0.5085 | 450 | 0.2353 | 0.1311 | 0.9898 |
0.5650 | 500 | 0.2632 | 0.1340 | 0.9873 |
0.6215 | 550 | 0.3793 | 0.1218 | 0.9898 |
0.6780 | 600 | 0.1978 | 0.1174 | 0.9898 |
0.7345 | 650 | 0.179 | 0.1254 | 0.9898 |
0.7910 | 700 | 0.1326 | 0.1142 | 0.9924 |
0.8475 | 750 | 0.1842 | 0.1153 | 0.9924 |
Framework Versions
- Python: 3.10.13
- Sentence Transformers: 3.0.1
- Transformers: 4.41.2
- PyTorch: 2.2.1
- Accelerate: 0.31.0
- Datasets: 2.20.0
- Tokenizers: 0.19.1
Citation
BibTeX
Sentence Transformers
@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",
}
MultipleNegativesRankingLoss
@misc{henderson2017efficient,
title={Efficient Natural Language Response Suggestion for Smart Reply},
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},
year={2017},
eprint={1705.00652},
archivePrefix={arXiv},
primaryClass={cs.CL}
}