Sentence Similarity
sentence-transformers
Safetensors
qwen2
feature-extraction
Generated from Trainer
dataset_size:921564
loss:CachedMultipleNegativesRankingLoss
custom_code
text-embeddings-inference
Instructions to use FINGU-AI/FingUv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use FINGU-AI/FingUv2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("FINGU-AI/FingUv2", trust_remote_code=True) sentences = [ "[array([{'from': 'human', 'value': '低IPの人に対する侮辱とは?'},\n {'from': 'gpt', 'value': '例えば、ジョークの最初に \"I was going to do X, but I just remembered because I\\'m changed mind because it would be too easy for you get idea of the punchline \"と言うことです。'},\n {'from': 'human', 'value': 'なるほど。IQの低い人を侮辱するという意味だったんだ。'}],\n dtype=object) ]", "['一般的な侮辱は「お前はバカだ」で、これは太古の昔から使われている。']", "[' 먼저 마이크가 매년 저축하는 금액을 계산해 봅시다. 마이크는 연봉 15만 달러의 10%를 저축합니다:\\n\\n150,000달러의 10% = 0.10 * $150,000 = $15,000\\n\\n이제 6년 동안 그가 저축할 총 금액을 계산해 봅시다:\\n\\n1년 $15,000 * 6년 = $90,000\\n\\n마이크는 집의 20%를 계약금으로 지불해야 합니다. 그가 사고 싶은 집의 가격을 P로 표시해 봅시다. 마이크가 저축한 90,000달러는 P의 20%를 나타냅니다. 다음 방정식을 설정할 수 있습니다:\\n\\n0.20 * P = $90,000\\n\\n이제 P를 풀 수 있습니다:\\n\\nP = $90,000 / 0.20\\nP = $450,000\\n\\n따라서 마이크가 사고 싶은 집의 가격은 $450,000입니다.']", "['例えば、https://www.urbandictionary.com/define.php?term=insult+for+someone+with+a+など。']" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 1,404 Bytes
c64f1a0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | {
"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-1.5B-instruct--tokenization_qwen.Qwen2Tokenizer",
"Alibaba-NLP/gte-Qwen2-1.5B-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
}
|