Sentence Similarity
sentence-transformers
Safetensors
Transformers
bert
feature-extraction
text-embeddings-inference
Instructions to use blankoslo/nb-sbert-base-biencoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use blankoslo/nb-sbert-base-biencoder with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("blankoslo/nb-sbert-base-biencoder") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use blankoslo/nb-sbert-base-biencoder with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("blankoslo/nb-sbert-base-biencoder") model = AutoModel.from_pretrained("blankoslo/nb-sbert-base-biencoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- 1_Pooling/config.json +7 -0
- README.md +129 -0
- config.json +32 -0
- config_sentence_transformers.json +7 -0
- eval/similarity_evaluation_dev_results.csv +82 -0
- model.safetensors +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +64 -0
- vocab.txt +0 -0
1_Pooling/config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"word_embedding_dimension": 768,
|
| 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 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: sentence-similarity
|
| 3 |
+
tags:
|
| 4 |
+
- sentence-transformers
|
| 5 |
+
- feature-extraction
|
| 6 |
+
- sentence-similarity
|
| 7 |
+
- transformers
|
| 8 |
+
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# {MODEL_NAME}
|
| 12 |
+
|
| 13 |
+
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
| 14 |
+
|
| 15 |
+
<!--- Describe your model here -->
|
| 16 |
+
|
| 17 |
+
## Usage (Sentence-Transformers)
|
| 18 |
+
|
| 19 |
+
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
|
| 20 |
+
|
| 21 |
+
```
|
| 22 |
+
pip install -U sentence-transformers
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
Then you can use the model like this:
|
| 26 |
+
|
| 27 |
+
```python
|
| 28 |
+
from sentence_transformers import SentenceTransformer
|
| 29 |
+
sentences = ["This is an example sentence", "Each sentence is converted"]
|
| 30 |
+
|
| 31 |
+
model = SentenceTransformer('{MODEL_NAME}')
|
| 32 |
+
embeddings = model.encode(sentences)
|
| 33 |
+
print(embeddings)
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
## Usage (HuggingFace Transformers)
|
| 39 |
+
Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
from transformers import AutoTokenizer, AutoModel
|
| 43 |
+
import torch
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
#Mean Pooling - Take attention mask into account for correct averaging
|
| 47 |
+
def mean_pooling(model_output, attention_mask):
|
| 48 |
+
token_embeddings = model_output[0] #First element of model_output contains all token embeddings
|
| 49 |
+
input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
|
| 50 |
+
return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
# Sentences we want sentence embeddings for
|
| 54 |
+
sentences = ['This is an example sentence', 'Each sentence is converted']
|
| 55 |
+
|
| 56 |
+
# Load model from HuggingFace Hub
|
| 57 |
+
tokenizer = AutoTokenizer.from_pretrained('{MODEL_NAME}')
|
| 58 |
+
model = AutoModel.from_pretrained('{MODEL_NAME}')
|
| 59 |
+
|
| 60 |
+
# Tokenize sentences
|
| 61 |
+
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
| 62 |
+
|
| 63 |
+
# Compute token embeddings
|
| 64 |
+
with torch.no_grad():
|
| 65 |
+
model_output = model(**encoded_input)
|
| 66 |
+
|
| 67 |
+
# Perform pooling. In this case, mean pooling.
|
| 68 |
+
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
|
| 69 |
+
|
| 70 |
+
print("Sentence embeddings:")
|
| 71 |
+
print(sentence_embeddings)
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
## Evaluation Results
|
| 77 |
+
|
| 78 |
+
<!--- Describe how your model was evaluated -->
|
| 79 |
+
|
| 80 |
+
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name={MODEL_NAME})
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
## Training
|
| 84 |
+
The model was trained with the parameters:
|
| 85 |
+
|
| 86 |
+
**DataLoader**:
|
| 87 |
+
|
| 88 |
+
`sentence_transformers.datasets.NoDuplicatesDataLoader.NoDuplicatesDataLoader` of length 201723 with parameters:
|
| 89 |
+
```
|
| 90 |
+
{'batch_size': 32}
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
**Loss**:
|
| 94 |
+
|
| 95 |
+
`sentence_transformers.losses.MultipleNegativesRankingLoss.MultipleNegativesRankingLoss` with parameters:
|
| 96 |
+
```
|
| 97 |
+
{'scale': 20.0, 'similarity_fct': 'cos_sim'}
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
Parameters of the fit()-Method:
|
| 101 |
+
```
|
| 102 |
+
{
|
| 103 |
+
"epochs": 1,
|
| 104 |
+
"evaluation_steps": 2500,
|
| 105 |
+
"evaluator": "sentence_transformers.evaluation.EmbeddingSimilarityEvaluator.EmbeddingSimilarityEvaluator",
|
| 106 |
+
"max_grad_norm": 1,
|
| 107 |
+
"optimizer_class": "<class 'torch.optim.adamw.AdamW'>",
|
| 108 |
+
"optimizer_params": {
|
| 109 |
+
"lr": 1e-05
|
| 110 |
+
},
|
| 111 |
+
"scheduler": "warmupcosine",
|
| 112 |
+
"steps_per_epoch": null,
|
| 113 |
+
"warmup_steps": 181551,
|
| 114 |
+
"weight_decay": 0.01
|
| 115 |
+
}
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
## Full Model Architecture
|
| 120 |
+
```
|
| 121 |
+
SentenceTransformer(
|
| 122 |
+
(0): Transformer({'max_seq_length': 256, 'do_lower_case': False}) with Transformer model: BertModel
|
| 123 |
+
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
|
| 124 |
+
)
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
## Citing & Authors
|
| 128 |
+
|
| 129 |
+
<!--- Describe where people can find more information -->
|
config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "/home/fluffy/.cache/torch/sentence_transformers/NbAiLab_nb-sbert-base/",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"directionality": "bidi",
|
| 9 |
+
"gradient_checkpointing": false,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 3072,
|
| 15 |
+
"layer_norm_eps": 1e-12,
|
| 16 |
+
"max_position_embeddings": 512,
|
| 17 |
+
"model_type": "bert",
|
| 18 |
+
"num_attention_heads": 12,
|
| 19 |
+
"num_hidden_layers": 12,
|
| 20 |
+
"pad_token_id": 0,
|
| 21 |
+
"pooler_fc_size": 768,
|
| 22 |
+
"pooler_num_attention_heads": 12,
|
| 23 |
+
"pooler_num_fc_layers": 3,
|
| 24 |
+
"pooler_size_per_head": 128,
|
| 25 |
+
"pooler_type": "first_token_transform",
|
| 26 |
+
"position_embedding_type": "absolute",
|
| 27 |
+
"torch_dtype": "float32",
|
| 28 |
+
"transformers_version": "4.35.2",
|
| 29 |
+
"type_vocab_size": 2,
|
| 30 |
+
"use_cache": true,
|
| 31 |
+
"vocab_size": 119547
|
| 32 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"sentence_transformers": "2.2.2",
|
| 4 |
+
"transformers": "4.20.0",
|
| 5 |
+
"pytorch": "1.11.0+cu113"
|
| 6 |
+
}
|
| 7 |
+
}
|
eval/similarity_evaluation_dev_results.csv
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
epoch,steps,cosine_pearson,cosine_spearman,euclidean_pearson,euclidean_spearman,manhattan_pearson,manhattan_spearman,dot_pearson,dot_spearman
|
| 2 |
+
0,2500,0.1326027626892076,0.1351977111374469,0.13222530634086926,0.13095035426316545,0.13211500682152974,0.1309160457914961,0.13603382181286647,0.13548686305332616
|
| 3 |
+
0,5000,0.13483496904795864,0.13834484873035083,0.13613314973884452,0.13476703532431394,0.1361469329093235,0.1348389757197274,0.13817263289015272,0.13854675785979373
|
| 4 |
+
0,7500,0.13734988400176767,0.14149375109066256,0.13938789954746514,0.1379055493581067,0.13950623852956393,0.1380748828549993,0.1407333690116257,0.14155243250969624
|
| 5 |
+
0,10000,0.1373900582577247,0.14195245709954887,0.13980344436213335,0.13830778571220997,0.14009092033466702,0.1386134387842108,0.14072357795910434,0.14196544033079114
|
| 6 |
+
0,12500,0.1369461300204987,0.14176385338730282,0.13960434629603802,0.13813105354392421,0.13994550803513656,0.13847784775639277,0.14006686302558505,0.14156822833896726
|
| 7 |
+
0,15000,0.1371072192772734,0.14217938354878717,0.1394511999124504,0.13823284985655476,0.13986580983581176,0.13861630362878635,0.14027583610654332,0.14215222702913738
|
| 8 |
+
0,17500,0.1377964754063254,0.14305888209294407,0.1396637500702279,0.1384976027019209,0.14011251634850866,0.13895288366895348,0.1413192353320122,0.14331767884829508
|
| 9 |
+
0,20000,0.13734919347176472,0.14268553219476582,0.13814813150395117,0.1371441102706742,0.13863927682738844,0.13762618203242463,0.1419526226997425,0.14403978800392406
|
| 10 |
+
0,22500,0.13804307586734518,0.1434667813767631,0.13877040434515253,0.13783696434284787,0.13924208774697933,0.13827047887748303,0.14253163533210292,0.14487370446339776
|
| 11 |
+
0,25000,0.13645784346940906,0.1421520499719967,0.13666746893305717,0.13621978140968505,0.13723529514742705,0.13673354932291648,0.1410277432119618,0.14378190846313887
|
| 12 |
+
0,27500,0.13651803181319885,0.14246148220036142,0.13713081351018114,0.13682115493146932,0.13767650556791075,0.13731019578299375,0.1408537129785041,0.14397054990872535
|
| 13 |
+
0,30000,0.1377316545876497,0.14390108831506906,0.1365887491059454,0.1366708507357622,0.1371388158563767,0.1371468967456206,0.14344385852921554,0.14649577533786362
|
| 14 |
+
0,32500,0.13699619401914953,0.14318229100104496,0.1360344437226319,0.13624111826035723,0.1368114921437599,0.13689181819255314,0.14251962522065043,0.1458659507467024
|
| 15 |
+
0,35000,0.13734293648456697,0.1437954025481555,0.13609175871930548,0.13656200986657838,0.13690561721350972,0.13723930321835162,0.14288089713576577,0.1463791091185694
|
| 16 |
+
0,37500,0.14074231468872533,0.14739111325028362,0.13949954670211165,0.13998423638521704,0.1402934400322825,0.14065513826017653,0.1466580053328133,0.15029350546756554
|
| 17 |
+
0,40000,0.1411163984825354,0.1479235824733925,0.1407446710262609,0.14132328849094553,0.14148118177247523,0.1419359124052582,0.14617720386222893,0.15004784868253002
|
| 18 |
+
0,42500,0.1386178165856158,0.14557811369853446,0.13753841722544818,0.13844126946847413,0.13852066534651444,0.13927345308915154,0.14396995342734592,0.14813915984257411
|
| 19 |
+
0,45000,0.1369531785741961,0.1442185751975062,0.13681933289036452,0.13798575919791756,0.13791628828856564,0.13892007582992427,0.14143323270685712,0.14581643276631256
|
| 20 |
+
0,47500,0.13888385928202251,0.14604413420397425,0.13746035565522402,0.13847546183706147,0.13842747399258296,0.13928966398710188,0.1450250733721112,0.14913398361518343
|
| 21 |
+
0,50000,0.13910052193383107,0.14672257697647118,0.13890286027452553,0.140235872480777,0.14003915596744346,0.14118239445332317,0.14389284915778158,0.14854088244063893
|
| 22 |
+
0,52500,0.1384967400150784,0.14589536837471417,0.13818073368366637,0.13942594873091724,0.13940184489621982,0.14045441338244086,0.1433026731347462,0.1474831162644365
|
| 23 |
+
0,55000,0.13865183026665245,0.14589783556597194,0.13963587667824054,0.14062785692968052,0.14071602203977146,0.14145952389135205,0.1422419276476704,0.14658598165656142
|
| 24 |
+
0,57500,0.13923352984397483,0.14652358493772866,0.13957011900120145,0.14063290451265387,0.14082764003543582,0.14161977812432175,0.1433394549870573,0.14792459837556535
|
| 25 |
+
0,60000,0.1369665615546653,0.14501446498277926,0.13751213538275647,0.13914057887405853,0.13864532279627215,0.14003475285253394,0.14159094423699292,0.1469618509923469
|
| 26 |
+
0,62500,0.14017442994733026,0.1481148652650761,0.14036836780239265,0.14188356441110025,0.14140734100096053,0.14266726917424066,0.1451508477463212,0.149989091796485
|
| 27 |
+
0,65000,0.14032811193907452,0.14813509913619138,0.14059651464566386,0.14207678031973398,0.14194890611293362,0.1431298559300071,0.1449353921956806,0.1497296274481694
|
| 28 |
+
0,67500,0.14141099347248032,0.14943816798262774,0.14269411931974338,0.14415903171276181,0.14399141066196997,0.14514727824370965,0.14520774730582414,0.15012283968735676
|
| 29 |
+
0,70000,0.14170783285406446,0.15015859654564118,0.14181149830442194,0.14361925089584196,0.14317741495994155,0.14463443915555205,0.14721550133337208,0.1522460638712403
|
| 30 |
+
0,72500,0.13968187522077324,0.1477265293568251,0.1403386378014359,0.14215256953345556,0.14170393239722323,0.1431968909685106,0.14409529904683896,0.14893826278194547
|
| 31 |
+
0,75000,0.13623886645868555,0.14480389456041093,0.13692410825382925,0.13908508448549284,0.1383088063541733,0.14011055367660322,0.14096829108678152,0.14612307851986087
|
| 32 |
+
0,77500,0.14282428039941197,0.15124112171192725,0.14187788038090476,0.14394505946903874,0.14305946873093628,0.14482479602468892,0.149097538464466,0.15373282817044867
|
| 33 |
+
0,80000,0.1428008661036189,0.15089371505574642,0.14126661611886387,0.14329384868328066,0.1428807958016198,0.14448531050399932,0.14883165691710776,0.15323053705060985
|
| 34 |
+
0,82500,0.13816325710621638,0.1467749249703768,0.13840463210996248,0.14073773982427135,0.14019939854671784,0.14224005323400787,0.1420179790125219,0.14735546669004393
|
| 35 |
+
0,85000,0.1370578194734516,0.1450597481019504,0.1364440196658631,0.1386388798800192,0.13828910882352186,0.14013326634934495,0.14141774283509018,0.14618800338426668
|
| 36 |
+
0,87500,0.13763069441094475,0.14684124887736033,0.13884813565789675,0.14113403460137042,0.14054218824378273,0.1424425719049792,0.14193804178785396,0.1478362903431707
|
| 37 |
+
0,90000,0.14008476838251138,0.14828463705118675,0.14040892771163316,0.1423133665484312,0.14191569303980744,0.14351171618684733,0.14488858502285634,0.14994812481088357
|
| 38 |
+
0,92500,0.13729128228832338,0.14595383500294537,0.13809185023887852,0.14060744019610963,0.13975884377252878,0.14191088637790392,0.14067621796446123,0.14655369918417957
|
| 39 |
+
0,95000,0.14157254712071193,0.14975807561496438,0.14193631468136922,0.14357338145580828,0.14318640080053738,0.14442823130779653,0.1468231677306656,0.15161157773973188
|
| 40 |
+
0,97500,0.13699646285594042,0.14549588656696985,0.13778319011477297,0.14003991073356284,0.13970953153479052,0.1415693777602453,0.1410752387487292,0.1467424306098056
|
| 41 |
+
0,100000,0.13753490305504026,0.1461504033891374,0.1380446057986857,0.1407401112305422,0.14000908244964483,0.14230616235020485,0.1407816944627146,0.14632152777655813
|
| 42 |
+
0,102500,0.13837146924499058,0.1474075041081812,0.13974792419675838,0.14245415319097582,0.14142856866497272,0.14368298570321977,0.14161340699820738,0.14712928330072456
|
| 43 |
+
0,105000,0.13979814304168264,0.14838814588466895,0.13982505834554868,0.14201601484970902,0.14159680587045415,0.14334940983114028,0.145767314546624,0.15090865752711163
|
| 44 |
+
0,107500,0.14019484375615818,0.14908299112524448,0.14031608517792843,0.14313814278998627,0.14212209511171073,0.14453119155413333,0.14538947675522465,0.1505995997313648
|
| 45 |
+
0,110000,0.1413194718271946,0.15026984945712843,0.14152941968671673,0.14386224601665662,0.14285776498306835,0.1447816898390554,0.1471888961515585,0.15259909572339803
|
| 46 |
+
0,112500,0.13948315073415157,0.14836501524077927,0.1391746909036926,0.14174990940271515,0.1408377194440342,0.14307276222101636,0.14433116278903074,0.14983155437658519
|
| 47 |
+
0,115000,0.13815092174104565,0.1471412593375693,0.13886133292946695,0.14112283355291985,0.14043760017629633,0.1423071927652622,0.14338342323754427,0.14860615851676698
|
| 48 |
+
0,117500,0.14330063826528136,0.15268407449919907,0.1433828691528625,0.14580503434269837,0.14497678578625608,0.1470309004203171,0.1503134672704931,0.15592497116592222
|
| 49 |
+
0,120000,0.13918560259486756,0.1488818569839788,0.14011010680553304,0.14288030678782668,0.1419585665613301,0.144323024466341,0.1445419450062695,0.15049571936788603
|
| 50 |
+
0,122500,0.1413491952242581,0.15094779298611172,0.14122071995771276,0.14405836160058827,0.14271324987074963,0.14518965297968825,0.14818667329785284,0.15385873619822288
|
| 51 |
+
0,125000,0.1396115986968683,0.14891512633283735,0.13945822297616722,0.14210924565448035,0.14121220683837596,0.14355608499379569,0.14741947215074772,0.15297892998082344
|
| 52 |
+
0,127500,0.1430349635435858,0.1528664957200938,0.1431288303825788,0.1461709536413484,0.14460066520542086,0.1472236983575595,0.15008832767241898,0.15562134119088156
|
| 53 |
+
0,130000,0.14023284655015872,0.1500208140714264,0.139462922142415,0.1427508285891812,0.14119685558009992,0.14403748045477144,0.14752924084009703,0.15279798907458905
|
| 54 |
+
0,132500,0.14199456626441684,0.15229458916986455,0.1417373488448638,0.1451191000165446,0.14389075434945287,0.14680190443293586,0.14838279755083456,0.15365402898343655
|
| 55 |
+
0,135000,0.14118189397334444,0.15124162385787224,0.14179079803935593,0.14523466325631876,0.1437017831366031,0.1466324722483864,0.1467363724029945,0.1517841766368415
|
| 56 |
+
0,137500,0.13764777223754107,0.1484727589354095,0.13902502071354964,0.14344021117801956,0.1410766294750272,0.1450193848527882,0.14252330257715762,0.14853577970841056
|
| 57 |
+
0,140000,0.1407804500344748,0.1511197939522066,0.14004240765673623,0.14408370400898962,0.14189758488900753,0.1454415212816043,0.1476294539944806,0.15339598399565288
|
| 58 |
+
0,142500,0.1386456902680501,0.14868225250134448,0.13827445941357666,0.14212240594305256,0.1401683893397568,0.14366613914058643,0.14501028213419695,0.15032144858592147
|
| 59 |
+
0,145000,0.14465682958992188,0.15502938653458517,0.14564695943780864,0.1486500019572709,0.1469137770363994,0.149449363226063,0.15208632105818093,0.15738962362620537
|
| 60 |
+
0,147500,0.13749005521292393,0.14750450536173354,0.13923398074583587,0.14250077439863235,0.14091089299342097,0.14374763191993964,0.14238886363907752,0.14763213752073748
|
| 61 |
+
0,150000,0.13903103662130586,0.14877217436729473,0.13914644492550857,0.14249453385586025,0.14118556651626699,0.14409799630306586,0.14507322965169803,0.14988201279219612
|
| 62 |
+
0,152500,0.14171417982591003,0.15157532744346205,0.14216469703295417,0.1455060484924896,0.14390896106328363,0.1468020843928257,0.1473758125521549,0.15243623207282733
|
| 63 |
+
0,155000,0.13915966192158358,0.14919980827884946,0.14133951589291444,0.14443528457225324,0.14287124184865876,0.14550716308265932,0.14436088589547946,0.14995680932411928
|
| 64 |
+
0,157500,0.14343879079599667,0.1533117308646332,0.14445581656340017,0.14785965899852077,0.14625563243572823,0.14917625966377937,0.14868952192940887,0.15372484317849097
|
| 65 |
+
0,160000,0.14313448744131937,0.15383593064311224,0.14278255699377865,0.14651931814815275,0.14473784960716088,0.14800342949126238,0.1514904153351965,0.1567925865557846
|
| 66 |
+
0,162500,0.14222290743735544,0.15261950955451228,0.1427538702288052,0.14631652373218143,0.1447047704910703,0.14785606560715822,0.14851914229164712,0.15426255155486027
|
| 67 |
+
0,165000,0.14181881155066453,0.15267653650415738,0.1423129160980189,0.1461340821932141,0.14449552909188026,0.14781755129983035,0.14828995524434072,0.1539481791387611
|
| 68 |
+
0,167500,0.14131231995276,0.15152029746756815,0.14209595304744027,0.14548395116633003,0.14408516029597637,0.1469837045022683,0.14757920136364266,0.15287488707307664
|
| 69 |
+
0,170000,0.13954216611589754,0.15019405153569965,0.14061788782930337,0.14452984185521617,0.14281517732978907,0.14624584595855278,0.1452432410181023,0.1513261614415282
|
| 70 |
+
0,172500,0.14199117322800425,0.15215267052206097,0.14239409024932909,0.14576740822439432,0.14426282348461247,0.14718385757214902,0.1489615322955544,0.15390626881524097
|
| 71 |
+
0,175000,0.14282970192398484,0.1528952457551988,0.14312519392441125,0.14665497303269004,0.14502436768969384,0.14811273477299278,0.14932917859845524,0.15518291259186956
|
| 72 |
+
0,177500,0.14204846444507332,0.15268291056541383,0.14315952992760161,0.146977893540993,0.14496899439227462,0.1482660460394763,0.14697033828263872,0.1524137428986981
|
| 73 |
+
0,180000,0.14498043063671154,0.15556163516188554,0.14470709739706866,0.14812870475683038,0.14661612880135552,0.14951604705260263,0.15269229240267942,0.15793763034924463
|
| 74 |
+
0,182500,0.1409764470651519,0.15182495205242688,0.14168376323527268,0.1456998507218813,0.14364910683499738,0.14719709332785882,0.14633256855836563,0.15246272099959085
|
| 75 |
+
0,185000,0.14270644461203735,0.15297682270927615,0.14315705289888495,0.14673104379641153,0.14522165898886244,0.14834146952826233,0.14817056269592196,0.1537653341413346
|
| 76 |
+
0,187500,0.14251772341773206,0.1531384092256885,0.14322100219379003,0.14704443804391362,0.14512603360477025,0.1483515327662001,0.14787258516318816,0.15332481858866623
|
| 77 |
+
0,190000,0.13933731769501786,0.1506760333175055,0.13956098900226668,0.1438766921473187,0.14198022381888414,0.14585459586190797,0.14566617199081025,0.15169669003400182
|
| 78 |
+
0,192500,0.1422156452925566,0.15308453737807762,0.14299725597236582,0.14681696590996646,0.14509504159900713,0.14837664877356505,0.14832611700148676,0.15340263380174604
|
| 79 |
+
0,195000,0.1438923299041588,0.15495208507796085,0.14416390928241202,0.14818364765550762,0.14605636997040097,0.14962432191923036,0.1503727012205616,0.15568629217839725
|
| 80 |
+
0,197500,0.14296741439333266,0.1542174919343841,0.1439220445536577,0.14808597590641728,0.14577408707745085,0.14947123124861034,0.14875488606050055,0.1542476235961959
|
| 81 |
+
0,200000,0.14315733031288116,0.15442792303293382,0.14409264976024033,0.14823953969709855,0.14591160511263435,0.14961819457706754,0.14904303640352823,0.15451064360272415
|
| 82 |
+
0,-1,0.14347632402507735,0.15474692215829,0.1443334605051996,0.14848860410864315,0.1461719960296811,0.1498816441649955,0.14942450308027067,0.15486749234501024
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d377cadd26a0c0e8c76521ae47c9d1ff0548c6ef6a98aea7528df3f9e9929cb
|
| 3 |
+
size 711436136
|
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": 256,
|
| 3 |
+
"do_lower_case": false
|
| 4 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": "[CLS]",
|
| 3 |
+
"mask_token": "[MASK]",
|
| 4 |
+
"pad_token": "[PAD]",
|
| 5 |
+
"sep_token": "[SEP]",
|
| 6 |
+
"unk_token": "[UNK]"
|
| 7 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "[PAD]",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"100": {
|
| 12 |
+
"content": "[UNK]",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"101": {
|
| 20 |
+
"content": "[CLS]",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"102": {
|
| 28 |
+
"content": "[SEP]",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"103": {
|
| 36 |
+
"content": "[MASK]",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"clean_up_tokenization_spaces": true,
|
| 45 |
+
"cls_token": "[CLS]",
|
| 46 |
+
"do_basic_tokenize": true,
|
| 47 |
+
"do_lower_case": false,
|
| 48 |
+
"mask_token": "[MASK]",
|
| 49 |
+
"max_length": 75,
|
| 50 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 51 |
+
"never_split": null,
|
| 52 |
+
"pad_to_multiple_of": null,
|
| 53 |
+
"pad_token": "[PAD]",
|
| 54 |
+
"pad_token_type_id": 0,
|
| 55 |
+
"padding_side": "right",
|
| 56 |
+
"sep_token": "[SEP]",
|
| 57 |
+
"stride": 0,
|
| 58 |
+
"strip_accents": null,
|
| 59 |
+
"tokenize_chinese_chars": true,
|
| 60 |
+
"tokenizer_class": "BertTokenizer",
|
| 61 |
+
"truncation_side": "right",
|
| 62 |
+
"truncation_strategy": "longest_first",
|
| 63 |
+
"unk_token": "[UNK]"
|
| 64 |
+
}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|