eskayML/electra_interview_new
Browse files- README.md +65 -0
- config.json +75 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: mrm8488/electra-small-finetuned-squadv2
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
model-index:
|
10 |
+
- name: electra_interview_duplicated
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# electra_interview_duplicated
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [mrm8488/electra-small-finetuned-squadv2](https://huggingface.co/mrm8488/electra-small-finetuned-squadv2) on the None dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 2.2204
|
22 |
+
- Accuracy: 0.3581
|
23 |
+
|
24 |
+
## Model description
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Intended uses & limitations
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training and evaluation data
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training procedure
|
37 |
+
|
38 |
+
### Training hyperparameters
|
39 |
+
|
40 |
+
The following hyperparameters were used during training:
|
41 |
+
- learning_rate: 2e-05
|
42 |
+
- train_batch_size: 2
|
43 |
+
- eval_batch_size: 2
|
44 |
+
- seed: 42
|
45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- num_epochs: 5
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
52 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
53 |
+
| 2.5854 | 1.0 | 2121 | 2.5418 | 0.2014 |
|
54 |
+
| 2.4462 | 2.0 | 4242 | 2.4187 | 0.2898 |
|
55 |
+
| 2.3656 | 3.0 | 6363 | 2.3080 | 0.3204 |
|
56 |
+
| 2.2985 | 4.0 | 8484 | 2.2448 | 0.3298 |
|
57 |
+
| 2.2479 | 5.0 | 10605 | 2.2204 | 0.3581 |
|
58 |
+
|
59 |
+
|
60 |
+
### Framework versions
|
61 |
+
|
62 |
+
- Transformers 4.44.2
|
63 |
+
- Pytorch 2.5.0+cu121
|
64 |
+
- Datasets 3.0.2
|
65 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mrm8488/electra-small-finetuned-squadv2",
|
3 |
+
"architectures": [
|
4 |
+
"ElectraForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"embedding_size": 128,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 256,
|
12 |
+
"id2label": {
|
13 |
+
"0": "ALGORITHM",
|
14 |
+
"1": "COMANAGEMENT",
|
15 |
+
"2": "COMPETING PRIORITIES",
|
16 |
+
"3": "COST",
|
17 |
+
"4": "COVID",
|
18 |
+
"5": "EHR",
|
19 |
+
"6": "GUIDELINES",
|
20 |
+
"7": "HFREF COMFORT MANAGING",
|
21 |
+
"8": "INFO NEEDS",
|
22 |
+
"9": "INTERNAL & EXTERNAL SUPPORT BAR",
|
23 |
+
"10": "JUICY QUOTE",
|
24 |
+
"11": "MAGIC WAND",
|
25 |
+
"12": "MED MANAGEMENT",
|
26 |
+
"13": "OTHER",
|
27 |
+
"14": "PATIENT DIGITAL TOOLS",
|
28 |
+
"15": "PATIENTS",
|
29 |
+
"16": "PROVIDER EDUCATION",
|
30 |
+
"17": "ROLE OF OTHER STAFF",
|
31 |
+
"18": "TIME CONSTRAINTS",
|
32 |
+
"19": "WORKFLOW"
|
33 |
+
},
|
34 |
+
"initializer_range": 0.02,
|
35 |
+
"intermediate_size": 1024,
|
36 |
+
"label2id": {
|
37 |
+
"ALGORITHM": 0,
|
38 |
+
"COMANAGEMENT": 1,
|
39 |
+
"COMPETING PRIORITIES": 2,
|
40 |
+
"COST": 3,
|
41 |
+
"COVID": 4,
|
42 |
+
"EHR": 5,
|
43 |
+
"GUIDELINES": 6,
|
44 |
+
"HFREF COMFORT MANAGING": 7,
|
45 |
+
"INFO NEEDS": 8,
|
46 |
+
"INTERNAL & EXTERNAL SUPPORT BAR": 9,
|
47 |
+
"JUICY QUOTE": 10,
|
48 |
+
"MAGIC WAND": 11,
|
49 |
+
"MED MANAGEMENT": 12,
|
50 |
+
"OTHER": 13,
|
51 |
+
"PATIENT DIGITAL TOOLS": 14,
|
52 |
+
"PATIENTS": 15,
|
53 |
+
"PROVIDER EDUCATION": 16,
|
54 |
+
"ROLE OF OTHER STAFF": 17,
|
55 |
+
"TIME CONSTRAINTS": 18,
|
56 |
+
"WORKFLOW": 19
|
57 |
+
},
|
58 |
+
"layer_norm_eps": 1e-12,
|
59 |
+
"max_position_embeddings": 512,
|
60 |
+
"model_type": "electra",
|
61 |
+
"num_attention_heads": 4,
|
62 |
+
"num_hidden_layers": 12,
|
63 |
+
"pad_token_id": 0,
|
64 |
+
"position_embedding_type": "absolute",
|
65 |
+
"problem_type": "single_label_classification",
|
66 |
+
"summary_activation": "gelu",
|
67 |
+
"summary_last_dropout": 0.1,
|
68 |
+
"summary_type": "first",
|
69 |
+
"summary_use_proj": true,
|
70 |
+
"torch_dtype": "float32",
|
71 |
+
"transformers_version": "4.44.2",
|
72 |
+
"type_vocab_size": 2,
|
73 |
+
"use_cache": true,
|
74 |
+
"vocab_size": 30522
|
75 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b3e7e76e0c92b0fd65613ad9088a6e2c2ec0fed5f4fbbe17b8ef93ce15128465
|
3 |
+
size 54239712
|
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,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_basic_tokenize": true,
|
47 |
+
"do_lower_case": true,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"max_length": 512,
|
50 |
+
"model_max_length": 512,
|
51 |
+
"never_split": null,
|
52 |
+
"pad_token": "[PAD]",
|
53 |
+
"sep_token": "[SEP]",
|
54 |
+
"strip_accents": null,
|
55 |
+
"tokenize_chinese_chars": true,
|
56 |
+
"tokenizer_class": "ElectraTokenizer",
|
57 |
+
"unk_token": "[UNK]"
|
58 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:18338bf3ea3bc3266fedad86a6ed71864d3445c6ad89fbcf7585c5330b841661
|
3 |
+
size 5176
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|