Upload folder using huggingface_hub
Browse files- README.md +9 -6
- config.json +2 -2
- model.safetensors +3 -0
- tokenizer_config.json +49 -57
README.md
CHANGED
@@ -85,20 +85,23 @@ The model was trained with the parameters:
|
|
85 |
|
86 |
**DataLoader**:
|
87 |
|
88 |
-
`torch.utils.data.dataloader.DataLoader` of length
|
89 |
```
|
90 |
-
{'batch_size':
|
91 |
```
|
92 |
|
93 |
**Loss**:
|
94 |
|
95 |
-
`sentence_transformers.losses.
|
|
|
|
|
|
|
96 |
|
97 |
Parameters of the fit()-Method:
|
98 |
```
|
99 |
{
|
100 |
-
"epochs":
|
101 |
-
"evaluation_steps":
|
102 |
"evaluator": "sentence_transformers.evaluation.EmbeddingSimilarityEvaluator.EmbeddingSimilarityEvaluator",
|
103 |
"max_grad_norm": 1,
|
104 |
"optimizer_class": "<class 'torch.optim.adamw.AdamW'>",
|
@@ -107,7 +110,7 @@ Parameters of the fit()-Method:
|
|
107 |
},
|
108 |
"scheduler": "WarmupLinear",
|
109 |
"steps_per_epoch": null,
|
110 |
-
"warmup_steps":
|
111 |
"weight_decay": 0.01
|
112 |
}
|
113 |
```
|
|
|
85 |
|
86 |
**DataLoader**:
|
87 |
|
88 |
+
`torch.utils.data.dataloader.DataLoader` of length 34385 with parameters:
|
89 |
```
|
90 |
+
{'batch_size': 16, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
|
91 |
```
|
92 |
|
93 |
**Loss**:
|
94 |
|
95 |
+
`sentence_transformers.losses.ContrastiveLoss.ContrastiveLoss` with parameters:
|
96 |
+
```
|
97 |
+
{'distance_metric': 'SiameseDistanceMetric.COSINE_DISTANCE', 'margin': 0.5, 'size_average': True}
|
98 |
+
```
|
99 |
|
100 |
Parameters of the fit()-Method:
|
101 |
```
|
102 |
{
|
103 |
+
"epochs": 6,
|
104 |
+
"evaluation_steps": 500,
|
105 |
"evaluator": "sentence_transformers.evaluation.EmbeddingSimilarityEvaluator.EmbeddingSimilarityEvaluator",
|
106 |
"max_grad_norm": 1,
|
107 |
"optimizer_class": "<class 'torch.optim.adamw.AdamW'>",
|
|
|
110 |
},
|
111 |
"scheduler": "WarmupLinear",
|
112 |
"steps_per_epoch": null,
|
113 |
+
"warmup_steps": 20631,
|
114 |
"weight_decay": 0.01
|
115 |
}
|
116 |
```
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"RobertaModel"
|
5 |
],
|
@@ -22,7 +22,7 @@
|
|
22 |
"pad_token_id": 1,
|
23 |
"position_embedding_type": "absolute",
|
24 |
"torch_dtype": "float32",
|
25 |
-
"transformers_version": "4.
|
26 |
"type_vocab_size": 1,
|
27 |
"use_cache": true,
|
28 |
"vocab_size": 50265
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "/h/300/jessyw/.cache/torch/sentence_transformers/sentence-transformers_paraphrase-distilroberta-base-v1/",
|
3 |
"architectures": [
|
4 |
"RobertaModel"
|
5 |
],
|
|
|
22 |
"pad_token_id": 1,
|
23 |
"position_embedding_type": "absolute",
|
24 |
"torch_dtype": "float32",
|
25 |
+
"transformers_version": "4.35.1",
|
26 |
"type_vocab_size": 1,
|
27 |
"use_cache": true,
|
28 |
"vocab_size": 50265
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9bf491a6efd6a203269eec1d3a6297b0a5bed0386fdc0cd0744b11c10b24fac3
|
3 |
+
size 328485128
|
tokenizer_config.json
CHANGED
@@ -1,66 +1,58 @@
|
|
1 |
{
|
2 |
"add_prefix_space": false,
|
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 |
"errors": "replace",
|
29 |
"full_tokenizer_file": null,
|
30 |
-
"mask_token":
|
31 |
-
"__type": "AddedToken",
|
32 |
-
"content": "<mask>",
|
33 |
-
"lstrip": true,
|
34 |
-
"normalized": true,
|
35 |
-
"rstrip": false,
|
36 |
-
"single_word": false
|
37 |
-
},
|
38 |
"model_max_length": 512,
|
39 |
-
"pad_token":
|
40 |
-
|
41 |
-
"content": "<pad>",
|
42 |
-
"lstrip": false,
|
43 |
-
"normalized": true,
|
44 |
-
"rstrip": false,
|
45 |
-
"single_word": false
|
46 |
-
},
|
47 |
-
"sep_token": {
|
48 |
-
"__type": "AddedToken",
|
49 |
-
"content": "</s>",
|
50 |
-
"lstrip": false,
|
51 |
-
"normalized": true,
|
52 |
-
"rstrip": false,
|
53 |
-
"single_word": false
|
54 |
-
},
|
55 |
-
"special_tokens_map_file": "/home/ukp-reimers/.cache/torch/transformers/4f4743e3f4fbeb763d116a0f2697f5e03117bd130711d90eaf795aeaeb7c4659.01d47f83d2e88283cc7f6be55eaef5d08d20297fc3bc1c1618ac15c35d1b97dd",
|
56 |
"tokenizer_class": "RobertaTokenizer",
|
57 |
"trim_offsets": true,
|
58 |
-
"unk_token":
|
59 |
-
"__type": "AddedToken",
|
60 |
-
"content": "<unk>",
|
61 |
-
"lstrip": false,
|
62 |
-
"normalized": true,
|
63 |
-
"rstrip": false,
|
64 |
-
"single_word": false
|
65 |
-
}
|
66 |
}
|
|
|
1 |
{
|
2 |
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<pad>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"3": {
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"50264": {
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
},
|
45 |
+
"bos_token": "<s>",
|
46 |
+
"clean_up_tokenization_spaces": true,
|
47 |
+
"cls_token": "<s>",
|
48 |
+
"eos_token": "</s>",
|
49 |
"errors": "replace",
|
50 |
"full_tokenizer_file": null,
|
51 |
+
"mask_token": "<mask>",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
"model_max_length": 512,
|
53 |
+
"pad_token": "<pad>",
|
54 |
+
"sep_token": "</s>",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
"tokenizer_class": "RobertaTokenizer",
|
56 |
"trim_offsets": true,
|
57 |
+
"unk_token": "<unk>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|