Sentence Similarity
sentence-transformers
Safetensors
Transformers
Japanese
llama
feature-extraction
mirei
llm2vec
text-embedding
embeddings
retrieval
custom_code
text-embeddings-inference
Instructions to use iamtatsuki05/Sentence-Sarashina-Bi-0.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use iamtatsuki05/Sentence-Sarashina-Bi-0.5B with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("iamtatsuki05/Sentence-Sarashina-Bi-0.5B", trust_remote_code=True) sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use iamtatsuki05/Sentence-Sarashina-Bi-0.5B with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("iamtatsuki05/Sentence-Sarashina-Bi-0.5B", trust_remote_code=True) model = AutoModel.from_pretrained("iamtatsuki05/Sentence-Sarashina-Bi-0.5B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- 1_Pooling/config.json +10 -0
- README.md +104 -0
- README_JA.md +104 -0
- assets/concept.jpg +3 -0
- config.json +34 -0
- config_sentence_transformers.json +14 -0
- model.safetensors +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +171 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
assets/concept.jpg filter=lfs diff=lfs merge=lfs -text
|
1_Pooling/config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"word_embedding_dimension": 1280,
|
| 3 |
+
"pooling_mode_cls_token": false,
|
| 4 |
+
"pooling_mode_mean_tokens": true,
|
| 5 |
+
"pooling_mode_max_tokens": false,
|
| 6 |
+
"pooling_mode_mean_sqrt_len_tokens": false,
|
| 7 |
+
"pooling_mode_weightedmean_tokens": false,
|
| 8 |
+
"pooling_mode_lasttoken": false,
|
| 9 |
+
"include_prompt": true
|
| 10 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- ja
|
| 4 |
+
license: mit
|
| 5 |
+
library_name: sentence-transformers
|
| 6 |
+
pipeline_tag: sentence-similarity
|
| 7 |
+
tags:
|
| 8 |
+
- mirei
|
| 9 |
+
- llama
|
| 10 |
+
- transformers
|
| 11 |
+
- llm2vec
|
| 12 |
+
- text-embedding
|
| 13 |
+
- embeddings
|
| 14 |
+
- feature-extraction
|
| 15 |
+
- retrieval
|
| 16 |
+
base_model: iamtatsuki05/Sentence-Sarashina-Bi-0.5B-PT
|
| 17 |
+
datasets:
|
| 18 |
+
- cl-nagoya/ruri-v3-dataset-ft
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# Sentence-Sarashina-Bi-0.5B
|
| 22 |
+
|
| 23 |
+
English / [Japanese](README_JA.md)
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
## Overview
|
| 27 |
+
Sentence-Sarashina-Bi-0.5B fine-tunes [iamtatsuki05/Sentence-Sarashina-Bi-0.5B-PT](https://huggingface.co/iamtatsuki05/Sentence-Sarashina-Bi-0.5B-PT) with supervised examples from [cl-nagoya/ruri-v3-dataset-ft](https://huggingface.co/datasets/cl-nagoya/ruri-v3-dataset-ft), resulting in 1,280-dimensional Japanese embeddings.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
- **[Hugging Face Collection](https://huggingface.co/collections/iamtatsuki05/mirei)**
|
| 31 |
+
- **[GitHub](https://github.com/iamtatsuki05/MIREI)**
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
|
| 35 |
+
## Usage
|
| 36 |
+
### Requirements
|
| 37 |
+
```
|
| 38 |
+
sentence-transformers>=4.1.0
|
| 39 |
+
transformers>=4.51.0
|
| 40 |
+
accelerate>=1.6.0
|
| 41 |
+
sentencepiece>=0.2.0
|
| 42 |
+
flash-attn>=2.7.3
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
### Sample Code
|
| 46 |
+
```python
|
| 47 |
+
import torch
|
| 48 |
+
from sentence_transformers import SentenceTransformer
|
| 49 |
+
|
| 50 |
+
model_name = "iamtatsuki05/Sentence-Sarashina-Bi-0.5B"
|
| 51 |
+
model_kwargs = {
|
| 52 |
+
"torch_dtype": torch.bfloat16,
|
| 53 |
+
"attn_implementation": "flash_attention_2",
|
| 54 |
+
}
|
| 55 |
+
model = SentenceTransformer(model_name, model_kwargs=model_kwargs)
|
| 56 |
+
|
| 57 |
+
queries = ["ハチワレはどのようなキャラクターですか?"]
|
| 58 |
+
docs = [
|
| 59 |
+
"ハチワレは、『ちいかわ』に登場する猫風のキャラクターで、明るく社交的、前向きな性格が特徴。ちいかわたちと共に日常を楽しみつつ、討伐などの冒険にも積極的に挑む存在です。",
|
| 60 |
+
"うさぎは、天真爛漫でマイペースな性格が特徴のキャラクターで、突飛な行動力と鋭い直感でちいかわたちを引っ張る存在。自由気ままながらも仲間思いな一面を併せ持ちます。",
|
| 61 |
+
]
|
| 62 |
+
q_emb = model.encode(queries, normalize_embeddings=True)
|
| 63 |
+
d_emb = model.encode(docs, normalize_embeddings=True)
|
| 64 |
+
scores = model.similarity(q_emb, d_emb)
|
| 65 |
+
print(scores)
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
## Model Details
|
| 70 |
+
- **Base model:** [iamtatsuki05/Sentence-Sarashina-Bi-0.5B-PT](https://huggingface.co/iamtatsuki05/Sentence-Sarashina-Bi-0.5B-PT)
|
| 71 |
+
- **Architecture:** Llama
|
| 72 |
+
- **Maximum sequence length:** 8,192 tokens
|
| 73 |
+
- **Embedding dimension:** 1280 (mean pooling)
|
| 74 |
+
- **Tokenizer:** SentencePiece / vocabulary size 102,400
|
| 75 |
+
- **Positional encoding:** RoPE
|
| 76 |
+
- **Supported languages:** Japanese
|
| 77 |
+
- **Similarity metric:** cosine
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
## Model Series
|
| 81 |
+
|
| 82 |
+
The encoders below inherit from weakly supervised models and receive supervised refinement on [cl-nagoya/ruri-v3-dataset-ft](https://huggingface.co/datasets/cl-nagoya/ruri-v3-dataset-ft).
|
| 83 |
+
|
| 84 |
+
| ID | Architecture | #Param. | #Param.<br>w/o Emb. | JMTEB-Avg | JMTEB-Retrieval | JMTEB-STS | JMTEB-Classification | JMTEB-Reranking | JMTEB-Clustering |
|
| 85 |
+
|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
|
| 86 |
+
| [iamtatsuki05/Sentence-ModernBERT-JP-0.5B](https://huggingface.co/iamtatsuki05/Sentence-ModernBERT-JP-0.5B) | ModernBERT | 679M | 548M | 65.31 | 57.95 | 80.78 | 71.73 | 75.50 | **50.03** |
|
| 87 |
+
| [iamtatsuki05/Sentence-Llama-Bi-JP-0.5B](https://huggingface.co/iamtatsuki05/Sentence-Llama-Bi-JP-0.5B) | Llama | 661M | 530M | 61.02 | 51.55 | 78.01 | 68.51 | 71.96 | 48.69 |
|
| 88 |
+
| [iamtatsuki05/Sentence-Sarashina-Bi-0.5B](https://huggingface.co/iamtatsuki05/Sentence-Sarashina-Bi-0.5B)<br>(this model) | Llama | 661M | 530M | **66.84** | **59.00** | **83.50** | **74.35** | **77.36** | 49.40 |
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
## Licence
|
| 92 |
+
This model is distributed under the [MIT License](https://opensource.org/license/mit/).
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
## How to Cite
|
| 96 |
+
|
| 97 |
+
```tex
|
| 98 |
+
@article{MIREI
|
| 99 |
+
title={同一条件下における Encoder/Decoderアーキテクチャの文埋め込み性能分析},
|
| 100 |
+
author={岡田 龍樹 and 杉本 徹},
|
| 101 |
+
journal={言語処理学会第 32 回年次大会 (NLP2026)},
|
| 102 |
+
year={2026}
|
| 103 |
+
}
|
| 104 |
+
```
|
README_JA.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- ja
|
| 4 |
+
license: mit
|
| 5 |
+
library_name: sentence-transformers
|
| 6 |
+
pipeline_tag: sentence-similarity
|
| 7 |
+
tags:
|
| 8 |
+
- mirei
|
| 9 |
+
- llama
|
| 10 |
+
- transformers
|
| 11 |
+
- llm2vec
|
| 12 |
+
- text-embedding
|
| 13 |
+
- embeddings
|
| 14 |
+
- feature-extraction
|
| 15 |
+
- retrieval
|
| 16 |
+
base_model: iamtatsuki05/Sentence-Sarashina-Bi-0.5B-PT
|
| 17 |
+
datasets:
|
| 18 |
+
- cl-nagoya/ruri-v3-dataset-ft
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# Sentence-Sarashina-Bi-0.5B
|
| 22 |
+
|
| 23 |
+
[English](README.md) / Japanese
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
## Overview
|
| 27 |
+
Sentence-Sarashina-Bi-0.5B は、 [iamtatsuki05/Sentence-Sarashina-Bi-0.5B-PT](https://huggingface.co/iamtatsuki05/Sentence-Sarashina-Bi-0.5B-PT) を [cl-nagoya/ruri-v3-dataset-ft](https://huggingface.co/datasets/cl-nagoya/ruri-v3-dataset-ft) で教師あり対照学習を行った 1280 次元の日本語埋め込みモデルです。
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
- **[Hugging Face Collection](https://huggingface.co/collections/iamtatsuki05/mirei)**
|
| 31 |
+
- **[GitHub](https://github.com/iamtatsuki05/MIREI)**
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
|
| 35 |
+
## Usage
|
| 36 |
+
### Requirements
|
| 37 |
+
```
|
| 38 |
+
sentence-transformers>=4.1.0
|
| 39 |
+
transformers>=4.51.0
|
| 40 |
+
accelerate>=1.6.0
|
| 41 |
+
sentencepiece>=0.2.0
|
| 42 |
+
flash-attn>=2.7.3
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
### Sample Code
|
| 46 |
+
```python
|
| 47 |
+
import torch
|
| 48 |
+
from sentence_transformers import SentenceTransformer
|
| 49 |
+
|
| 50 |
+
model_name = "iamtatsuki05/Sentence-Sarashina-Bi-0.5B"
|
| 51 |
+
model_kwargs = {
|
| 52 |
+
"torch_dtype": torch.bfloat16,
|
| 53 |
+
"attn_implementation": "flash_attention_2",
|
| 54 |
+
}
|
| 55 |
+
model = SentenceTransformer(model_name, model_kwargs=model_kwargs)
|
| 56 |
+
|
| 57 |
+
queries = ["ハチワレはどのようなキャラクターですか?"]
|
| 58 |
+
docs = [
|
| 59 |
+
"ハチワレは、『ちいかわ』に登場する猫風のキャラクターで、明るく社交的、前向きな性格が特徴。ちいかわたちと共に日常を楽しみつつ、討伐などの冒険にも積極的に挑む存在です。",
|
| 60 |
+
"うさぎは、天真爛漫でマイペースな性格が特徴のキャラクターで、突飛な行動力と鋭い直感でちいかわたちを引っ張る存在。自由気ままながらも仲間思いな一面を併せ持ちます。",
|
| 61 |
+
]
|
| 62 |
+
q_emb = model.encode(queries, normalize_embeddings=True)
|
| 63 |
+
d_emb = model.encode(docs, normalize_embeddings=True)
|
| 64 |
+
scores = model.similarity(q_emb, d_emb)
|
| 65 |
+
print(scores)
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
## Model Details
|
| 70 |
+
- **ベースモデル:** [iamtatsuki05/Sentence-Sarashina-Bi-0.5B-PT](https://huggingface.co/iamtatsuki05/Sentence-Sarashina-Bi-0.5B-PT)
|
| 71 |
+
- **アーキテクチャ:** Llama
|
| 72 |
+
- **最大シーケンス長:** 8,192トークン
|
| 73 |
+
- **埋め込み次元:** 1280(Mean Pooling)
|
| 74 |
+
- **トークナイザ:** SentencePiece / 語彙数 102,400
|
| 75 |
+
- **位置エンコーディング:** RoPE
|
| 76 |
+
- **対応言語:** 日本語
|
| 77 |
+
- **類似度指標:** cosine
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
## Model Series
|
| 81 |
+
|
| 82 |
+
弱教師あり学習済みモデルに対して [cl-nagoya/ruri-v3-dataset-ft](https://huggingface.co/datasets/cl-nagoya/ruri-v3-dataset-ft) で教師あり学習したモデル群です。
|
| 83 |
+
|
| 84 |
+
| ID | Architecture | #Param. | #Param.<br>w/o Emb. | JMTEB-Avg | JMTEB-Retrieval | JMTEB-STS | JMTEB-Classification | JMTEB-Reranking | JMTEB-Clustering |
|
| 85 |
+
|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
|
| 86 |
+
| [iamtatsuki05/Sentence-ModernBERT-JP-0.5B](https://huggingface.co/iamtatsuki05/Sentence-ModernBERT-JP-0.5B) | ModernBERT | 679M | 548M | 65.31 | 57.95 | 80.78 | 71.73 | 75.50 | **50.03** |
|
| 87 |
+
| [iamtatsuki05/Sentence-Llama-Bi-JP-0.5B](https://huggingface.co/iamtatsuki05/Sentence-Llama-Bi-JP-0.5B) | Llama | 661M | 530M | 61.02 | 51.55 | 78.01 | 68.51 | 71.96 | 48.69 |
|
| 88 |
+
| [iamtatsuki05/Sentence-Sarashina-Bi-0.5B](https://huggingface.co/iamtatsuki05/Sentence-Sarashina-Bi-0.5B)<br>(this model) | Llama | 661M | 530M | **66.84** | **59.00** | **83.50** | **74.35** | **77.36** | 49.40 |
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
## Licence
|
| 92 |
+
このモデルは [MIT](https://licenses.opensource.jp/MIT/MIT.html) でライセンスされています。
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
## How to Cite
|
| 96 |
+
|
| 97 |
+
```tex
|
| 98 |
+
@article{MIREI
|
| 99 |
+
title={同一条件下における Encoder/Decoderアーキテクチャの文埋め込み性能分析},
|
| 100 |
+
author={岡田 龍樹 and 杉本 徹},
|
| 101 |
+
journal={言語処理学会第 32 回年次大会 (NLP2026)},
|
| 102 |
+
year={2026}
|
| 103 |
+
}
|
| 104 |
+
```
|
assets/concept.jpg
ADDED
|
Git LFS Details
|
config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaBiModel"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"auto_map": {
|
| 8 |
+
"AutoModel": "iamtatsuki05/sarashina2.2-Bi-0.5b--modeling_bidirectional_llama.LlamaBiModel",
|
| 9 |
+
"AutoModelForCausalLM": "iamtatsuki05/sarashina2.2-Bi-0.5b--modeling_bidirectional_llama.LlamaBiForMNTP",
|
| 10 |
+
"AutoModelForSequenceClassification": "iamtatsuki05/sarashina2.2-Bi-0.5b--modeling_bidirectional_llama.LlamaBiForSequenceClassification"
|
| 11 |
+
},
|
| 12 |
+
"bos_token_id": 1,
|
| 13 |
+
"dtype": "float32",
|
| 14 |
+
"eos_token_id": 2,
|
| 15 |
+
"head_dim": 80,
|
| 16 |
+
"hidden_act": "silu",
|
| 17 |
+
"hidden_size": 1280,
|
| 18 |
+
"initializer_range": 0.02,
|
| 19 |
+
"intermediate_size": 4480,
|
| 20 |
+
"max_position_embeddings": 8192,
|
| 21 |
+
"mlp_bias": false,
|
| 22 |
+
"model_type": "llama",
|
| 23 |
+
"num_attention_heads": 16,
|
| 24 |
+
"num_hidden_layers": 24,
|
| 25 |
+
"num_key_value_heads": 8,
|
| 26 |
+
"pretraining_tp": 1,
|
| 27 |
+
"rms_norm_eps": 1e-05,
|
| 28 |
+
"rope_scaling": null,
|
| 29 |
+
"rope_theta": 500000,
|
| 30 |
+
"tie_word_embeddings": false,
|
| 31 |
+
"transformers_version": "4.56.1",
|
| 32 |
+
"use_cache": true,
|
| 33 |
+
"vocab_size": 102400
|
| 34 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "SentenceTransformer",
|
| 3 |
+
"__version__": {
|
| 4 |
+
"sentence_transformers": "5.1.0",
|
| 5 |
+
"transformers": "4.56.1",
|
| 6 |
+
"pytorch": "2.8.0+cu128"
|
| 7 |
+
},
|
| 8 |
+
"prompts": {
|
| 9 |
+
"query": "",
|
| 10 |
+
"document": ""
|
| 11 |
+
},
|
| 12 |
+
"default_prompt_name": null,
|
| 13 |
+
"similarity_fn_name": "cosine"
|
| 14 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a1fdaf68ef7f93b6716633ad490db3b813ae0361980379387e8f790e8903399e
|
| 3 |
+
size 2647928904
|
modules.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"idx": 0,
|
| 4 |
+
"name": "0",
|
| 5 |
+
"path": "",
|
| 6 |
+
"type": "sentence_transformers.models.Transformer"
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"idx": 1,
|
| 10 |
+
"name": "1",
|
| 11 |
+
"path": "1_Pooling",
|
| 12 |
+
"type": "sentence_transformers.models.Pooling"
|
| 13 |
+
}
|
| 14 |
+
]
|
sentence_bert_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"max_seq_length": 8192,
|
| 3 |
+
"do_lower_case": false
|
| 4 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"cls_token": {
|
| 10 |
+
"content": "<cls>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"eos_token": {
|
| 17 |
+
"content": "</s>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"mask_token": {
|
| 24 |
+
"content": "<mask>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
+
"pad_token": {
|
| 31 |
+
"content": "<pad>",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false
|
| 36 |
+
},
|
| 37 |
+
"sep_token": {
|
| 38 |
+
"content": "<sep>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false
|
| 43 |
+
},
|
| 44 |
+
"unk_token": {
|
| 45 |
+
"content": "<unk>",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false
|
| 50 |
+
}
|
| 51 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:008293028e1a9d9a1038d9b63d989a2319797dfeaa03f171093a57b33a3a8277
|
| 3 |
+
size 1831879
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_dummy_prefix_space": false,
|
| 4 |
+
"add_eos_token": false,
|
| 5 |
+
"add_prefix_space": false,
|
| 6 |
+
"added_tokens_decoder": {
|
| 7 |
+
"0": {
|
| 8 |
+
"content": "<unk>",
|
| 9 |
+
"lstrip": false,
|
| 10 |
+
"normalized": false,
|
| 11 |
+
"rstrip": false,
|
| 12 |
+
"single_word": false,
|
| 13 |
+
"special": true
|
| 14 |
+
},
|
| 15 |
+
"1": {
|
| 16 |
+
"content": "<s>",
|
| 17 |
+
"lstrip": false,
|
| 18 |
+
"normalized": false,
|
| 19 |
+
"rstrip": false,
|
| 20 |
+
"single_word": false,
|
| 21 |
+
"special": true
|
| 22 |
+
},
|
| 23 |
+
"2": {
|
| 24 |
+
"content": "</s>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false,
|
| 29 |
+
"special": true
|
| 30 |
+
},
|
| 31 |
+
"3": {
|
| 32 |
+
"content": "<pad>",
|
| 33 |
+
"lstrip": false,
|
| 34 |
+
"normalized": false,
|
| 35 |
+
"rstrip": false,
|
| 36 |
+
"single_word": false,
|
| 37 |
+
"special": true
|
| 38 |
+
},
|
| 39 |
+
"4": {
|
| 40 |
+
"content": "<sep>",
|
| 41 |
+
"lstrip": false,
|
| 42 |
+
"normalized": false,
|
| 43 |
+
"rstrip": false,
|
| 44 |
+
"single_word": false,
|
| 45 |
+
"special": true
|
| 46 |
+
},
|
| 47 |
+
"5": {
|
| 48 |
+
"content": "<mask>",
|
| 49 |
+
"lstrip": false,
|
| 50 |
+
"normalized": false,
|
| 51 |
+
"rstrip": false,
|
| 52 |
+
"single_word": false,
|
| 53 |
+
"special": true
|
| 54 |
+
},
|
| 55 |
+
"6": {
|
| 56 |
+
"content": "<cls>",
|
| 57 |
+
"lstrip": false,
|
| 58 |
+
"normalized": false,
|
| 59 |
+
"rstrip": false,
|
| 60 |
+
"single_word": false,
|
| 61 |
+
"special": true
|
| 62 |
+
},
|
| 63 |
+
"7": {
|
| 64 |
+
"content": "<|system|>",
|
| 65 |
+
"lstrip": false,
|
| 66 |
+
"normalized": false,
|
| 67 |
+
"rstrip": false,
|
| 68 |
+
"single_word": false,
|
| 69 |
+
"special": false
|
| 70 |
+
},
|
| 71 |
+
"8": {
|
| 72 |
+
"content": "<|assistant|>",
|
| 73 |
+
"lstrip": false,
|
| 74 |
+
"normalized": false,
|
| 75 |
+
"rstrip": false,
|
| 76 |
+
"single_word": false,
|
| 77 |
+
"special": false
|
| 78 |
+
},
|
| 79 |
+
"9": {
|
| 80 |
+
"content": "<|user|>",
|
| 81 |
+
"lstrip": false,
|
| 82 |
+
"normalized": false,
|
| 83 |
+
"rstrip": false,
|
| 84 |
+
"single_word": false,
|
| 85 |
+
"special": false
|
| 86 |
+
},
|
| 87 |
+
"10": {
|
| 88 |
+
"content": "<|available_tools|>",
|
| 89 |
+
"lstrip": false,
|
| 90 |
+
"normalized": false,
|
| 91 |
+
"rstrip": false,
|
| 92 |
+
"single_word": false,
|
| 93 |
+
"special": false
|
| 94 |
+
},
|
| 95 |
+
"11": {
|
| 96 |
+
"content": "<|tool_calls|>",
|
| 97 |
+
"lstrip": false,
|
| 98 |
+
"normalized": false,
|
| 99 |
+
"rstrip": false,
|
| 100 |
+
"single_word": false,
|
| 101 |
+
"special": false
|
| 102 |
+
},
|
| 103 |
+
"12": {
|
| 104 |
+
"content": "<|tool_results|>",
|
| 105 |
+
"lstrip": false,
|
| 106 |
+
"normalized": false,
|
| 107 |
+
"rstrip": false,
|
| 108 |
+
"single_word": false,
|
| 109 |
+
"special": false
|
| 110 |
+
},
|
| 111 |
+
"13": {
|
| 112 |
+
"content": "<|code|>",
|
| 113 |
+
"lstrip": false,
|
| 114 |
+
"normalized": false,
|
| 115 |
+
"rstrip": false,
|
| 116 |
+
"single_word": false,
|
| 117 |
+
"special": false
|
| 118 |
+
},
|
| 119 |
+
"14": {
|
| 120 |
+
"content": "<|file|>",
|
| 121 |
+
"lstrip": false,
|
| 122 |
+
"normalized": false,
|
| 123 |
+
"rstrip": false,
|
| 124 |
+
"single_word": false,
|
| 125 |
+
"special": false
|
| 126 |
+
},
|
| 127 |
+
"102397": {
|
| 128 |
+
"content": "<|prefix|>",
|
| 129 |
+
"lstrip": false,
|
| 130 |
+
"normalized": false,
|
| 131 |
+
"rstrip": false,
|
| 132 |
+
"single_word": false,
|
| 133 |
+
"special": false
|
| 134 |
+
},
|
| 135 |
+
"102398": {
|
| 136 |
+
"content": "<|suffix|>",
|
| 137 |
+
"lstrip": false,
|
| 138 |
+
"normalized": false,
|
| 139 |
+
"rstrip": false,
|
| 140 |
+
"single_word": false,
|
| 141 |
+
"special": false
|
| 142 |
+
},
|
| 143 |
+
"102399": {
|
| 144 |
+
"content": "<|middle|>",
|
| 145 |
+
"lstrip": false,
|
| 146 |
+
"normalized": false,
|
| 147 |
+
"rstrip": false,
|
| 148 |
+
"single_word": false,
|
| 149 |
+
"special": false
|
| 150 |
+
}
|
| 151 |
+
},
|
| 152 |
+
"bos_token": "<s>",
|
| 153 |
+
"clean_up_tokenization_spaces": false,
|
| 154 |
+
"cls_token": "<cls>",
|
| 155 |
+
"do_lower_case": false,
|
| 156 |
+
"eos_token": "</s>",
|
| 157 |
+
"extra_ids": 0,
|
| 158 |
+
"extra_special_tokens": {},
|
| 159 |
+
"keep_accents": true,
|
| 160 |
+
"legacy": false,
|
| 161 |
+
"mask_token": "<mask>",
|
| 162 |
+
"model_max_length": 256,
|
| 163 |
+
"pad_token": "<pad>",
|
| 164 |
+
"padding_side": "left",
|
| 165 |
+
"sep_token": "<sep>",
|
| 166 |
+
"sp_model_kwargs": {},
|
| 167 |
+
"spaces_between_special_tokens": false,
|
| 168 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 169 |
+
"unk_token": "<unk>",
|
| 170 |
+
"use_default_system_prompt": false
|
| 171 |
+
}
|