newmodel
Browse files- README.md +109 -0
- config.json +40 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +65 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: projecte-aina/roberta-base-ca-v2-cased-te
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
- precision
|
| 9 |
+
- recall
|
| 10 |
+
- f1
|
| 11 |
+
model-index:
|
| 12 |
+
- name: 2404v7
|
| 13 |
+
results: []
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 17 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 18 |
+
|
| 19 |
+
# 2404v7
|
| 20 |
+
|
| 21 |
+
This model is a fine-tuned version of [projecte-aina/roberta-base-ca-v2-cased-te](https://huggingface.co/projecte-aina/roberta-base-ca-v2-cased-te) on the None dataset.
|
| 22 |
+
It achieves the following results on the evaluation set:
|
| 23 |
+
- Loss: 0.6435
|
| 24 |
+
- Accuracy: 0.8487
|
| 25 |
+
- Precision: 0.8488
|
| 26 |
+
- Recall: 0.8487
|
| 27 |
+
- F1: 0.8487
|
| 28 |
+
- Ratio: 0.4916
|
| 29 |
+
|
| 30 |
+
## Model description
|
| 31 |
+
|
| 32 |
+
More information needed
|
| 33 |
+
|
| 34 |
+
## Intended uses & limitations
|
| 35 |
+
|
| 36 |
+
More information needed
|
| 37 |
+
|
| 38 |
+
## Training and evaluation data
|
| 39 |
+
|
| 40 |
+
More information needed
|
| 41 |
+
|
| 42 |
+
## Training procedure
|
| 43 |
+
|
| 44 |
+
### Training hyperparameters
|
| 45 |
+
|
| 46 |
+
The following hyperparameters were used during training:
|
| 47 |
+
- learning_rate: 3e-05
|
| 48 |
+
- train_batch_size: 16
|
| 49 |
+
- eval_batch_size: 8
|
| 50 |
+
- seed: 42
|
| 51 |
+
- gradient_accumulation_steps: 2
|
| 52 |
+
- total_train_batch_size: 32
|
| 53 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 54 |
+
- lr_scheduler_type: linear
|
| 55 |
+
- lr_scheduler_warmup_ratio: 0.06
|
| 56 |
+
- lr_scheduler_warmup_steps: 4
|
| 57 |
+
- num_epochs: 10
|
| 58 |
+
- label_smoothing_factor: 0.1
|
| 59 |
+
|
| 60 |
+
### Training results
|
| 61 |
+
|
| 62 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 | Ratio |
|
| 63 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|:------:|
|
| 64 |
+
| 3.5609 | 0.2597 | 10 | 1.6738 | 0.5168 | 0.5191 | 0.5168 | 0.5020 | 0.3277 |
|
| 65 |
+
| 1.4146 | 0.5195 | 20 | 0.9720 | 0.5294 | 0.5309 | 0.5294 | 0.5237 | 0.6092 |
|
| 66 |
+
| 0.924 | 0.7792 | 30 | 0.9377 | 0.5 | 0.25 | 0.5 | 0.3333 | 1.0 |
|
| 67 |
+
| 0.9189 | 1.0390 | 40 | 0.8705 | 0.5042 | 0.7511 | 0.5042 | 0.3426 | 0.0042 |
|
| 68 |
+
| 0.8741 | 1.2987 | 50 | 0.8415 | 0.5 | 0.25 | 0.5 | 0.3333 | 1.0 |
|
| 69 |
+
| 0.8001 | 1.5584 | 60 | 0.7613 | 0.7311 | 0.7640 | 0.7311 | 0.7224 | 0.6765 |
|
| 70 |
+
| 0.7156 | 1.8182 | 70 | 0.6827 | 0.7773 | 0.8070 | 0.7773 | 0.7718 | 0.3445 |
|
| 71 |
+
| 0.7028 | 2.0779 | 80 | 0.6722 | 0.7941 | 0.7967 | 0.7941 | 0.7937 | 0.4538 |
|
| 72 |
+
| 0.5612 | 2.3377 | 90 | 0.6600 | 0.7689 | 0.7776 | 0.7689 | 0.7671 | 0.5882 |
|
| 73 |
+
| 0.5967 | 2.5974 | 100 | 0.6264 | 0.8067 | 0.8075 | 0.8067 | 0.8066 | 0.5252 |
|
| 74 |
+
| 0.6661 | 2.8571 | 110 | 0.6225 | 0.8193 | 0.8260 | 0.8193 | 0.8184 | 0.4286 |
|
| 75 |
+
| 0.6454 | 3.1169 | 120 | 0.6108 | 0.8109 | 0.8336 | 0.8109 | 0.8077 | 0.6303 |
|
| 76 |
+
| 0.541 | 3.3766 | 130 | 0.6002 | 0.8235 | 0.8311 | 0.8235 | 0.8225 | 0.4244 |
|
| 77 |
+
| 0.538 | 3.6364 | 140 | 0.5880 | 0.8403 | 0.8428 | 0.8403 | 0.8401 | 0.5420 |
|
| 78 |
+
| 0.5157 | 3.8961 | 150 | 0.5845 | 0.8529 | 0.8603 | 0.8529 | 0.8522 | 0.4286 |
|
| 79 |
+
| 0.4868 | 4.1558 | 160 | 0.6059 | 0.8403 | 0.8548 | 0.8403 | 0.8387 | 0.6008 |
|
| 80 |
+
| 0.4877 | 4.4156 | 170 | 0.5575 | 0.8571 | 0.8572 | 0.8571 | 0.8571 | 0.4916 |
|
| 81 |
+
| 0.4758 | 4.6753 | 180 | 0.5656 | 0.8403 | 0.8403 | 0.8403 | 0.8403 | 0.5 |
|
| 82 |
+
| 0.4686 | 4.9351 | 190 | 0.5736 | 0.8571 | 0.8581 | 0.8571 | 0.8571 | 0.5252 |
|
| 83 |
+
| 0.4311 | 5.1948 | 200 | 0.5755 | 0.8571 | 0.8571 | 0.8571 | 0.8571 | 0.5 |
|
| 84 |
+
| 0.4452 | 5.4545 | 210 | 0.6053 | 0.8487 | 0.8491 | 0.8487 | 0.8487 | 0.5168 |
|
| 85 |
+
| 0.4396 | 5.7143 | 220 | 0.5726 | 0.8613 | 0.8614 | 0.8613 | 0.8613 | 0.4958 |
|
| 86 |
+
| 0.4923 | 5.9740 | 230 | 0.5534 | 0.8487 | 0.8487 | 0.8487 | 0.8487 | 0.5 |
|
| 87 |
+
| 0.4002 | 6.2338 | 240 | 0.5841 | 0.8445 | 0.8446 | 0.8445 | 0.8445 | 0.5042 |
|
| 88 |
+
| 0.3887 | 6.4935 | 250 | 0.6092 | 0.8361 | 0.8402 | 0.8361 | 0.8356 | 0.5546 |
|
| 89 |
+
| 0.402 | 6.7532 | 260 | 0.6164 | 0.8445 | 0.8446 | 0.8445 | 0.8445 | 0.4958 |
|
| 90 |
+
| 0.4644 | 7.0130 | 270 | 0.6094 | 0.8571 | 0.8622 | 0.8571 | 0.8566 | 0.4412 |
|
| 91 |
+
| 0.3905 | 7.2727 | 280 | 0.5938 | 0.8487 | 0.8503 | 0.8487 | 0.8486 | 0.5336 |
|
| 92 |
+
| 0.3836 | 7.5325 | 290 | 0.6080 | 0.8487 | 0.8496 | 0.8487 | 0.8486 | 0.5252 |
|
| 93 |
+
| 0.3781 | 7.7922 | 300 | 0.6193 | 0.8529 | 0.8530 | 0.8529 | 0.8529 | 0.4958 |
|
| 94 |
+
| 0.4384 | 8.0519 | 310 | 0.6211 | 0.8529 | 0.8532 | 0.8529 | 0.8529 | 0.4874 |
|
| 95 |
+
| 0.3324 | 8.3117 | 320 | 0.6312 | 0.8445 | 0.8446 | 0.8445 | 0.8445 | 0.4958 |
|
| 96 |
+
| 0.3779 | 8.5714 | 330 | 0.6394 | 0.8529 | 0.8532 | 0.8529 | 0.8529 | 0.4874 |
|
| 97 |
+
| 0.3772 | 8.8312 | 340 | 0.6415 | 0.8529 | 0.8530 | 0.8529 | 0.8529 | 0.4958 |
|
| 98 |
+
| 0.3757 | 9.0909 | 350 | 0.6464 | 0.8403 | 0.8404 | 0.8403 | 0.8403 | 0.5084 |
|
| 99 |
+
| 0.3742 | 9.3506 | 360 | 0.6441 | 0.8487 | 0.8487 | 0.8487 | 0.8487 | 0.5 |
|
| 100 |
+
| 0.3647 | 9.6104 | 370 | 0.6437 | 0.8487 | 0.8488 | 0.8487 | 0.8487 | 0.4916 |
|
| 101 |
+
| 0.3502 | 9.8701 | 380 | 0.6435 | 0.8487 | 0.8488 | 0.8487 | 0.8487 | 0.4916 |
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
### Framework versions
|
| 105 |
+
|
| 106 |
+
- Transformers 4.40.0
|
| 107 |
+
- Pytorch 2.2.1+cu121
|
| 108 |
+
- Datasets 2.19.0
|
| 109 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "projecte-aina/roberta-base-ca-v2-cased-te",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"RobertaForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"finetuning_task": "mnli",
|
| 11 |
+
"gradient_checkpointing": false,
|
| 12 |
+
"hidden_act": "gelu",
|
| 13 |
+
"hidden_dropout_prob": 0.1,
|
| 14 |
+
"hidden_size": 768,
|
| 15 |
+
"id2label": {
|
| 16 |
+
"0": "ENTAILMENT",
|
| 17 |
+
"1": "NEUTRAL",
|
| 18 |
+
"2": "CONTRADICTION"
|
| 19 |
+
},
|
| 20 |
+
"initializer_range": 0.02,
|
| 21 |
+
"intermediate_size": 3072,
|
| 22 |
+
"label2id": {
|
| 23 |
+
"CONTRADICTION": 2,
|
| 24 |
+
"ENTAILMENT": 0,
|
| 25 |
+
"NEUTRAL": 1
|
| 26 |
+
},
|
| 27 |
+
"layer_norm_eps": 1e-05,
|
| 28 |
+
"max_position_embeddings": 514,
|
| 29 |
+
"model_type": "roberta",
|
| 30 |
+
"num_attention_heads": 12,
|
| 31 |
+
"num_hidden_layers": 12,
|
| 32 |
+
"pad_token_id": 1,
|
| 33 |
+
"position_embedding_type": "absolute",
|
| 34 |
+
"problem_type": "single_label_classification",
|
| 35 |
+
"torch_dtype": "float32",
|
| 36 |
+
"transformers_version": "4.40.0",
|
| 37 |
+
"type_vocab_size": 1,
|
| 38 |
+
"use_cache": true,
|
| 39 |
+
"vocab_size": 50262
|
| 40 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:11facde7a1a11c693796174fc8a98d600c56279636205a01be07a7db589abcc2
|
| 3 |
+
size 498606684
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": true,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"cls_token": {
|
| 10 |
+
"content": "<s>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": true,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"eos_token": {
|
| 17 |
+
"content": "</s>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": true,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"mask_token": {
|
| 24 |
+
"content": "<mask>",
|
| 25 |
+
"lstrip": true,
|
| 26 |
+
"normalized": true,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
+
"pad_token": {
|
| 31 |
+
"content": "<pad>",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": true,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false
|
| 36 |
+
},
|
| 37 |
+
"sep_token": {
|
| 38 |
+
"content": "</s>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": true,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false
|
| 43 |
+
},
|
| 44 |
+
"unk_token": {
|
| 45 |
+
"content": "<unk>",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": true,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false
|
| 50 |
+
}
|
| 51 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"0": {
|
| 5 |
+
"content": "<s>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"1": {
|
| 13 |
+
"content": "<pad>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": true,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"2": {
|
| 21 |
+
"content": "</s>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": true,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"3": {
|
| 29 |
+
"content": "<unk>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": true,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"4": {
|
| 37 |
+
"content": "<mask>",
|
| 38 |
+
"lstrip": true,
|
| 39 |
+
"normalized": true,
|
| 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 |
+
"mask_token": "<mask>",
|
| 51 |
+
"max_len": 512,
|
| 52 |
+
"max_length": 512,
|
| 53 |
+
"model_max_length": 512,
|
| 54 |
+
"pad_to_multiple_of": null,
|
| 55 |
+
"pad_token": "<pad>",
|
| 56 |
+
"pad_token_type_id": 0,
|
| 57 |
+
"padding_side": "right",
|
| 58 |
+
"sep_token": "</s>",
|
| 59 |
+
"stride": 0,
|
| 60 |
+
"tokenizer_class": "RobertaTokenizer",
|
| 61 |
+
"trim_offsets": true,
|
| 62 |
+
"truncation_side": "right",
|
| 63 |
+
"truncation_strategy": "longest_first",
|
| 64 |
+
"unk_token": "<unk>"
|
| 65 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:206a0b107dad8688332837f0c15021de9db0effaa9b54fa0c5ac35c97908498c
|
| 3 |
+
size 4984
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|