gnail commited on
Commit
af18a0b
Β·
1 Parent(s): e83aca2

Mimic SentenceTransformer

Browse files
1/config.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "pooling_mode": "mean"
3
- }
 
 
 
 
1_Pooling/config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_mean_tokens": true,
4
+ "pooling_mode_cls_token": false,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false
7
+ }
2/config.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "d_from": 768,
3
- "d_to": 3072
4
- }
 
 
 
 
 
2_Dense/config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "in_features": 768,
3
+ "out_features": 3072,
4
+ "bias": false,
5
+ "activation_function": "torch.nn.modules.linear.Identity"
6
+ }
2/LinearProjection.params.bin β†’ 2_Dense/pytorch_model.bin RENAMED
File without changes
README.md CHANGED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pipeline_tag: sentence-similarity
3
+ tags:
4
+ - sentence-transformers
5
+ - feature-extraction
6
+ - sentence-similarity
7
+ - transformers
8
+ ---
0/config.json β†’ config.json RENAMED
File without changes
config_sentence_transformers.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "2.0.0",
4
+ "transformers": "4.7.0",
5
+ "pytorch": "1.9.0+cu102"
6
+ }
7
+ }
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Dense",
18
+ "type": "sentence_transformers.models.Dense"
19
+ }
20
+ ]
0/pytorch_model.bin β†’ pytorch_model.bin RENAMED
File without changes
sentence_bert_config.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "max_seq_length": 256
3
+ }
tokenizer/special_tokens_map.json β†’ special_tokens_map.json RENAMED
File without changes
tokenizer/tokenizer.json β†’ tokenizer.json RENAMED
File without changes
tokenizer/tokenizer_config.json β†’ tokenizer_config.json RENAMED
File without changes