Alec42 commited on
Commit
bc97118
1 Parent(s): 81bd8c2

alec42/xlnet-base-cased-finetune-accidents

Browse files
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: xlnet-base-cased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: xlnet_finetuned
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # xlnet_finetuned
17
+
18
+ This model is a fine-tuned version of [xlnet-base-cased](https://huggingface.co/xlnet-base-cased) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.6564
21
+ - Accuracy: 0.8098
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 2e-05
41
+ - train_batch_size: 8
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 2
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
52
+ | No log | 1.0 | 310 | 0.7622 | 0.7797 |
53
+ | 1.0144 | 2.0 | 620 | 0.6564 | 0.8098 |
54
+
55
+
56
+ ### Framework versions
57
+
58
+ - Transformers 4.33.3
59
+ - Pytorch 2.1.0
60
+ - Datasets 2.14.6
61
+ - Tokenizers 0.11.0
config.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "xlnet-base-cased",
3
+ "architectures": [
4
+ "XLNetForSequenceClassification"
5
+ ],
6
+ "attn_type": "bi",
7
+ "bi_data": false,
8
+ "bos_token_id": 1,
9
+ "clamp_len": -1,
10
+ "d_head": 64,
11
+ "d_inner": 3072,
12
+ "d_model": 768,
13
+ "dropout": 0.1,
14
+ "end_n_top": 5,
15
+ "eos_token_id": 2,
16
+ "ff_activation": "gelu",
17
+ "id2label": {
18
+ "0": "AUTOMOBILE",
19
+ "1": "DROWNING",
20
+ "2": "ELECTROCUTION",
21
+ "3": "ASPHYXIATION_GAS",
22
+ "4": "BURN_HEAT",
23
+ "5": "FALL",
24
+ "6": "EXPLOSION",
25
+ "7": "EXTREMITY_CUT_OFF",
26
+ "8": "PROTEST"
27
+ },
28
+ "initializer_range": 0.02,
29
+ "label2id": {
30
+ "ASPHYXIATION_GAS": 3,
31
+ "AUTOMOBILE": 0,
32
+ "BURN_HEAT": 4,
33
+ "DROWNING": 1,
34
+ "ELECTROCUTION": 2,
35
+ "EXPLOSION": 6,
36
+ "EXTREMITY_CUT_OFF": 7,
37
+ "FALL": 5,
38
+ "PROTEST": 8
39
+ },
40
+ "layer_norm_eps": 1e-12,
41
+ "mem_len": null,
42
+ "model_type": "xlnet",
43
+ "n_head": 12,
44
+ "n_layer": 12,
45
+ "pad_token_id": 5,
46
+ "problem_type": "single_label_classification",
47
+ "reuse_len": null,
48
+ "same_length": false,
49
+ "start_n_top": 5,
50
+ "summary_activation": "tanh",
51
+ "summary_last_dropout": 0.1,
52
+ "summary_type": "last",
53
+ "summary_use_proj": true,
54
+ "task_specific_params": {
55
+ "text-generation": {
56
+ "do_sample": true,
57
+ "max_length": 250
58
+ }
59
+ },
60
+ "torch_dtype": "float32",
61
+ "transformers_version": "4.33.3",
62
+ "untie_r": true,
63
+ "use_mems_eval": true,
64
+ "use_mems_train": false,
65
+ "vocab_size": 32000
66
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17536a46f01f6a3551fc4cbfa1abd540d7f0a7aeab25c9f5ffe55a44c2437dcb
3
+ size 469330770
special_tokens_map.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<eop>",
4
+ "<eod>"
5
+ ],
6
+ "bos_token": "<s>",
7
+ "cls_token": "<cls>",
8
+ "eos_token": "</s>",
9
+ "mask_token": {
10
+ "content": "<mask>",
11
+ "lstrip": true,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<pad>",
17
+ "sep_token": "<sep>",
18
+ "unk_token": "<unk>"
19
+ }
spiece.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f8c1c0bc2854d1af911a8550288c1258af5ba50277f3a5c829b98eb86fc5646
3
+ size 798011
tokenizer_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<eop>",
4
+ "<eod>"
5
+ ],
6
+ "bos_token": "<s>",
7
+ "clean_up_tokenization_spaces": true,
8
+ "cls_token": "<cls>",
9
+ "do_lower_case": false,
10
+ "eos_token": "</s>",
11
+ "keep_accents": false,
12
+ "mask_token": {
13
+ "__type": "AddedToken",
14
+ "content": "<mask>",
15
+ "lstrip": true,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "model_max_length": 1000000000000000019884624838656,
21
+ "pad_token": "<pad>",
22
+ "remove_space": true,
23
+ "sep_token": "<sep>",
24
+ "sp_model_kwargs": {},
25
+ "tokenizer_class": "XLNetTokenizer",
26
+ "unk_token": "<unk>"
27
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4e47d44a54adbf777ae79c8ee391581e628f7663e099b62eac72285e17bfef8
3
+ size 4536