Commit
•
b922096
1
Parent(s):
0bb7ec0
Upload tiny models for TransfoXLLMHeadModel
Browse files- config.json +46 -0
- generation_config.json +6 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +7 -0
- tf_model.h5 +3 -0
- tokenizer_config.json +18 -0
- vocab.pkl +3 -0
config.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "tiny_models/transfo-xl/TransfoXLLMHeadModel",
|
3 |
+
"adaptive": true,
|
4 |
+
"architectures": [
|
5 |
+
"TransfoXLLMHeadModel"
|
6 |
+
],
|
7 |
+
"attn_type": 0,
|
8 |
+
"clamp_len": 15,
|
9 |
+
"cutoffs": [
|
10 |
+
10,
|
11 |
+
50,
|
12 |
+
80
|
13 |
+
],
|
14 |
+
"d_embed": 32,
|
15 |
+
"d_head": 8,
|
16 |
+
"d_inner": 128,
|
17 |
+
"d_model": 32,
|
18 |
+
"div_val": 2,
|
19 |
+
"dropatt": 0.0,
|
20 |
+
"dropout": 0.1,
|
21 |
+
"eos_token_id": 0,
|
22 |
+
"init": "normal",
|
23 |
+
"init_range": 0.01,
|
24 |
+
"init_std": 0.02,
|
25 |
+
"is_decoder": true,
|
26 |
+
"layer_norm_epsilon": 1e-05,
|
27 |
+
"mem_len": 30,
|
28 |
+
"model_type": "transfo-xl",
|
29 |
+
"n_head": 4,
|
30 |
+
"n_layer": 5,
|
31 |
+
"pad_token_id": 267734,
|
32 |
+
"pre_lnorm": false,
|
33 |
+
"proj_init_std": 0.01,
|
34 |
+
"same_length": true,
|
35 |
+
"sample_softmax": -1,
|
36 |
+
"tie_projs": [
|
37 |
+
false,
|
38 |
+
true,
|
39 |
+
true,
|
40 |
+
true
|
41 |
+
],
|
42 |
+
"torch_dtype": "float32",
|
43 |
+
"transformers_version": "4.28.0.dev0",
|
44 |
+
"untie_r": true,
|
45 |
+
"vocab_size": 267735
|
46 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"eos_token_id": 0,
|
4 |
+
"pad_token_id": 267734,
|
5 |
+
"transformers_version": "4.28.0.dev0"
|
6 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a036237571dd0180e864d084a2161616fadf9b09ea35e2a03207edbabef6c20b
|
3 |
+
size 5669796
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<formula>"
|
4 |
+
],
|
5 |
+
"eos_token": "<eos>",
|
6 |
+
"unk_token": "<unk>"
|
7 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c5015ea1adc56dbd9d6653eac5dea6c485b64f3e938e7b71303b8bbe7ab652f8
|
3 |
+
size 10035300
|
tokenizer_config.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<formula>"
|
4 |
+
],
|
5 |
+
"clean_up_tokenization_spaces": true,
|
6 |
+
"delimiter": null,
|
7 |
+
"eos_token": "<eos>",
|
8 |
+
"language": "en",
|
9 |
+
"lower_case": false,
|
10 |
+
"max_size": null,
|
11 |
+
"min_freq": 0,
|
12 |
+
"model_max_length": 1000000000000000019884624838656,
|
13 |
+
"never_split": null,
|
14 |
+
"special": null,
|
15 |
+
"special_tokens_map_file": null,
|
16 |
+
"tokenizer_class": "TransfoXLTokenizer",
|
17 |
+
"unk_token": "<unk>"
|
18 |
+
}
|
vocab.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f3db1913a8df72358b97e18008fe9af8a105c98293961aeb13a9450d61a7a91a
|
3 |
+
size 5379558
|