Upload folder using huggingface_hub
Browse files- bart_base/config.json +74 -0
- bart_base/pytorch_model.bin +3 -0
- bert_base_uncased/config.json +27 -0
- bert_base_uncased/pytorch_model.bin +3 -0
- config.json +13 -0
- gpt_neo_2_7b/config.json +90 -0
- gpt_neo_2_7b/pytorch_model.bin +3 -0
- metadata.json +7 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +15 -0
- vocab.txt +0 -0
bart_base/config.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "models/bart_base",
|
| 3 |
+
"activation_dropout": 0.1,
|
| 4 |
+
"activation_function": "gelu",
|
| 5 |
+
"add_bias_logits": false,
|
| 6 |
+
"add_final_layer_norm": false,
|
| 7 |
+
"architectures": [
|
| 8 |
+
"BartForSequenceClassification"
|
| 9 |
+
],
|
| 10 |
+
"attention_dropout": 0.1,
|
| 11 |
+
"bos_token_id": 0,
|
| 12 |
+
"classif_dropout": 0.1,
|
| 13 |
+
"classifier_dropout": 0.0,
|
| 14 |
+
"d_model": 768,
|
| 15 |
+
"decoder_attention_heads": 12,
|
| 16 |
+
"decoder_ffn_dim": 3072,
|
| 17 |
+
"decoder_layerdrop": 0.0,
|
| 18 |
+
"decoder_layers": 6,
|
| 19 |
+
"decoder_start_token_id": 2,
|
| 20 |
+
"dropout": 0.1,
|
| 21 |
+
"early_stopping": true,
|
| 22 |
+
"encoder_attention_heads": 12,
|
| 23 |
+
"encoder_ffn_dim": 3072,
|
| 24 |
+
"encoder_layerdrop": 0.0,
|
| 25 |
+
"encoder_layers": 6,
|
| 26 |
+
"eos_token_id": 2,
|
| 27 |
+
"forced_bos_token_id": 0,
|
| 28 |
+
"forced_eos_token_id": 2,
|
| 29 |
+
"gradient_checkpointing": false,
|
| 30 |
+
"id2label": {
|
| 31 |
+
"0": "LABEL_0",
|
| 32 |
+
"1": "LABEL_1"
|
| 33 |
+
},
|
| 34 |
+
"init_std": 0.02,
|
| 35 |
+
"is_encoder_decoder": true,
|
| 36 |
+
"label2id": {
|
| 37 |
+
"LABEL_0": 0,
|
| 38 |
+
"LABEL_1": 1
|
| 39 |
+
},
|
| 40 |
+
"max_position_embeddings": 1024,
|
| 41 |
+
"model_type": "bart",
|
| 42 |
+
"no_repeat_ngram_size": 3,
|
| 43 |
+
"normalize_before": false,
|
| 44 |
+
"normalize_embedding": true,
|
| 45 |
+
"num_beams": 4,
|
| 46 |
+
"num_hidden_layers": 6,
|
| 47 |
+
"pad_token_id": 1,
|
| 48 |
+
"problem_type": "single_label_classification",
|
| 49 |
+
"scale_embedding": false,
|
| 50 |
+
"task_specific_params": {
|
| 51 |
+
"summarization": {
|
| 52 |
+
"length_penalty": 1.0,
|
| 53 |
+
"max_length": 128,
|
| 54 |
+
"min_length": 12,
|
| 55 |
+
"num_beams": 4
|
| 56 |
+
},
|
| 57 |
+
"summarization_cnn": {
|
| 58 |
+
"length_penalty": 2.0,
|
| 59 |
+
"max_length": 142,
|
| 60 |
+
"min_length": 56,
|
| 61 |
+
"num_beams": 4
|
| 62 |
+
},
|
| 63 |
+
"summarization_xsum": {
|
| 64 |
+
"length_penalty": 1.0,
|
| 65 |
+
"max_length": 62,
|
| 66 |
+
"min_length": 11,
|
| 67 |
+
"num_beams": 6
|
| 68 |
+
}
|
| 69 |
+
},
|
| 70 |
+
"torch_dtype": "float32",
|
| 71 |
+
"transformers_version": "4.28.0",
|
| 72 |
+
"use_cache": true,
|
| 73 |
+
"vocab_size": 50265
|
| 74 |
+
}
|
bart_base/pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0147c7f5e765e1fe739a770a31e540559bc0669deb4268587e9e5d1d275ce9c2
|
| 3 |
+
size 560140479
|
bert_base_uncased/config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "models/bert_base_uncased",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"gradient_checkpointing": false,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 3072,
|
| 14 |
+
"layer_norm_eps": 1e-12,
|
| 15 |
+
"max_position_embeddings": 512,
|
| 16 |
+
"model_type": "bert",
|
| 17 |
+
"num_attention_heads": 12,
|
| 18 |
+
"num_hidden_layers": 12,
|
| 19 |
+
"pad_token_id": 0,
|
| 20 |
+
"position_embedding_type": "absolute",
|
| 21 |
+
"problem_type": "single_label_classification",
|
| 22 |
+
"torch_dtype": "float32",
|
| 23 |
+
"transformers_version": "4.28.0",
|
| 24 |
+
"type_vocab_size": 2,
|
| 25 |
+
"use_cache": true,
|
| 26 |
+
"vocab_size": 30522
|
| 27 |
+
}
|
bert_base_uncased/pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61caa6485e7eb7cced2093d5ce9f57542bf28dd124cc57b15353b8824eafe58a
|
| 3 |
+
size 438008779
|
config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"ensemble_type": "majority_voting",
|
| 3 |
+
"model_keys": [
|
| 4 |
+
"bert_base_uncased",
|
| 5 |
+
"bart_base",
|
| 6 |
+
"gpt_neo_2_7b"
|
| 7 |
+
],
|
| 8 |
+
"num_labels": 2,
|
| 9 |
+
"device_used_during_init": "cuda",
|
| 10 |
+
"architectures": [
|
| 11 |
+
"EnsembleMajorityVoting"
|
| 12 |
+
]
|
| 13 |
+
}
|
gpt_neo_2_7b/config.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "models/gpt_neo_2_7b",
|
| 3 |
+
"activation_function": "gelu_new",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"GPTNeoForSequenceClassification"
|
| 6 |
+
],
|
| 7 |
+
"attention_dropout": 0,
|
| 8 |
+
"attention_layers": [
|
| 9 |
+
"global",
|
| 10 |
+
"local",
|
| 11 |
+
"global",
|
| 12 |
+
"local",
|
| 13 |
+
"global",
|
| 14 |
+
"local",
|
| 15 |
+
"global",
|
| 16 |
+
"local",
|
| 17 |
+
"global",
|
| 18 |
+
"local",
|
| 19 |
+
"global",
|
| 20 |
+
"local",
|
| 21 |
+
"global",
|
| 22 |
+
"local",
|
| 23 |
+
"global",
|
| 24 |
+
"local",
|
| 25 |
+
"global",
|
| 26 |
+
"local",
|
| 27 |
+
"global",
|
| 28 |
+
"local",
|
| 29 |
+
"global",
|
| 30 |
+
"local",
|
| 31 |
+
"global",
|
| 32 |
+
"local",
|
| 33 |
+
"global",
|
| 34 |
+
"local",
|
| 35 |
+
"global",
|
| 36 |
+
"local",
|
| 37 |
+
"global",
|
| 38 |
+
"local",
|
| 39 |
+
"global",
|
| 40 |
+
"local"
|
| 41 |
+
],
|
| 42 |
+
"attention_types": [
|
| 43 |
+
[
|
| 44 |
+
[
|
| 45 |
+
"global",
|
| 46 |
+
"local"
|
| 47 |
+
],
|
| 48 |
+
16
|
| 49 |
+
]
|
| 50 |
+
],
|
| 51 |
+
"bos_token_id": 50256,
|
| 52 |
+
"embed_dropout": 0,
|
| 53 |
+
"eos_token_id": 50256,
|
| 54 |
+
"gradient_checkpointing": false,
|
| 55 |
+
"hidden_size": 2560,
|
| 56 |
+
"initializer_range": 0.02,
|
| 57 |
+
"intermediate_size": null,
|
| 58 |
+
"layer_norm_epsilon": 1e-05,
|
| 59 |
+
"max_position_embeddings": 2048,
|
| 60 |
+
"model_type": "gpt_neo",
|
| 61 |
+
"num_heads": 20,
|
| 62 |
+
"num_layers": 32,
|
| 63 |
+
"pad_token_id": 50256,
|
| 64 |
+
"problem_type": "single_label_classification",
|
| 65 |
+
"quantization_config": {
|
| 66 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 67 |
+
"llm_int8_skip_modules": null,
|
| 68 |
+
"llm_int8_threshold": 6.0,
|
| 69 |
+
"load_in_8bit": true
|
| 70 |
+
},
|
| 71 |
+
"resid_dropout": 0,
|
| 72 |
+
"summary_activation": null,
|
| 73 |
+
"summary_first_dropout": 0.1,
|
| 74 |
+
"summary_proj_to_labels": true,
|
| 75 |
+
"summary_type": "cls_index",
|
| 76 |
+
"summary_use_proj": true,
|
| 77 |
+
"task_specific_params": {
|
| 78 |
+
"text-generation": {
|
| 79 |
+
"do_sample": true,
|
| 80 |
+
"max_length": 50,
|
| 81 |
+
"temperature": 0.9
|
| 82 |
+
}
|
| 83 |
+
},
|
| 84 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 85 |
+
"torch_dtype": "float16",
|
| 86 |
+
"transformers_version": "4.28.0",
|
| 87 |
+
"use_cache": false,
|
| 88 |
+
"vocab_size": 50257,
|
| 89 |
+
"window_size": 256
|
| 90 |
+
}
|
gpt_neo_2_7b/pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b681c1a061fbf9997fbcc9656f458def692548aa87b9d45c70c9293f374ba869
|
| 3 |
+
size 2923495607
|
metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_names": [
|
| 3 |
+
"bert_base_uncased",
|
| 4 |
+
"bart_base",
|
| 5 |
+
"gpt_neo_2_7b"
|
| 6 |
+
]
|
| 7 |
+
}
|
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,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"clean_up_tokenization_spaces": true,
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"do_basic_tokenize": true,
|
| 5 |
+
"do_lower_case": true,
|
| 6 |
+
"mask_token": "[MASK]",
|
| 7 |
+
"model_max_length": 512,
|
| 8 |
+
"never_split": null,
|
| 9 |
+
"pad_token": "[PAD]",
|
| 10 |
+
"sep_token": "[SEP]",
|
| 11 |
+
"strip_accents": null,
|
| 12 |
+
"tokenize_chinese_chars": true,
|
| 13 |
+
"tokenizer_class": "BertTokenizer",
|
| 14 |
+
"unk_token": "[UNK]"
|
| 15 |
+
}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|