Sentence Similarity
sentence-transformers
Safetensors
feature-extraction
Generated from Trainer
dataset_size:245133
loss:MultipleNegativesRankingLoss
loss:MultipleNegativesSymmetricRankingLoss
loss:CoSENTLoss
Instructions to use FINGU-AI/FinguEm7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use FINGU-AI/FinguEm7b with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("FINGU-AI/FinguEm7b") sentences = [ "Awbere (woreda)", "Counterfeit Son is a 2000 novel by Elaine Marie Alphin and was written for young adults . It received a 2001 Edgar Award from the Mystery Writers of America for Best Young Adult Mystery . It is a psychological thriller .", "Awbere ( Awbarre ) , ( also known as Teferi Ber ) , is one of the woredas in the Somali Region of Ethiopia . Part of the Jijiga Zone , Awbere is bordered on the southwest by Jijiga , on the west by the Shinile Zone , on the east by Somalia , and on the southeast by Kebri Beyah . Towns in Awbere include Āwuberē , Derwonaji , Lefe Isa , and Sheed Dheer . High points in this woreda include Sau ( 1863 meters ) , near the international border .", "Aleksandra Delcheva (Bulgarian: Александра Делчева) (born April 11, 1987) is a Bulgarian volleyball player. She currently plays for Union Stade Français-Saint-Cloud Paris in France." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
| { | |
| "add_eos_token": true, | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "151643": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "151644": { | |
| "content": "<|im_start|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "151645": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>" | |
| ], | |
| "auto_map": { | |
| "AutoTokenizer": [ | |
| "Alibaba-NLP/gte-Qwen2-7B-instruct--tokenization_qwen.Qwen2Tokenizer", | |
| "Alibaba-NLP/gte-Qwen2-7B-instruct--tokenization_qwen.Qwen2TokenizerFast" | |
| ] | |
| }, | |
| "bos_token": null, | |
| "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|endoftext|>", | |
| "errors": "replace", | |
| "model_max_length": 32768, | |
| "pad_token": "<|endoftext|>", | |
| "split_special_tokens": false, | |
| "tokenizer_class": "Qwen2Tokenizer", | |
| "unk_token": null | |
| } | |