Instructions to use contemmcm/1a7d904346e7c4adfb1de13434e74811 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use contemmcm/1a7d904346e7c4adfb1de13434e74811 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="contemmcm/1a7d904346e7c4adfb1de13434e74811")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("contemmcm/1a7d904346e7c4adfb1de13434e74811") model = AutoModelForSequenceClassification.from_pretrained("contemmcm/1a7d904346e7c4adfb1de13434e74811", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +85 -0
- config.json +33 -0
- model.safetensors +3 -0
- special_tokens_map.json +15 -0
- spiece.model +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: albert/albert-base-v1
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
- rouge
|
| 10 |
+
model-index:
|
| 11 |
+
- name: 1a7d904346e7c4adfb1de13434e74811
|
| 12 |
+
results: []
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 16 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 17 |
+
|
| 18 |
+
# 1a7d904346e7c4adfb1de13434e74811
|
| 19 |
+
|
| 20 |
+
This model is a fine-tuned version of [albert/albert-base-v1](https://huggingface.co/albert/albert-base-v1) on the google/boolq dataset.
|
| 21 |
+
It achieves the following results on the evaluation set:
|
| 22 |
+
- Loss: 0.8393
|
| 23 |
+
- Data Size: 1.0
|
| 24 |
+
- Epoch Runtime: 11.5957
|
| 25 |
+
- Accuracy: 0.7365
|
| 26 |
+
- F1 Macro: 0.7092
|
| 27 |
+
- Rouge1: 0.7365
|
| 28 |
+
- Rouge2: 0.0
|
| 29 |
+
- Rougel: 0.7359
|
| 30 |
+
- Rougelsum: 0.7362
|
| 31 |
+
|
| 32 |
+
## Model description
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Intended uses & limitations
|
| 37 |
+
|
| 38 |
+
More information needed
|
| 39 |
+
|
| 40 |
+
## Training and evaluation data
|
| 41 |
+
|
| 42 |
+
More information needed
|
| 43 |
+
|
| 44 |
+
## Training procedure
|
| 45 |
+
|
| 46 |
+
### Training hyperparameters
|
| 47 |
+
|
| 48 |
+
The following hyperparameters were used during training:
|
| 49 |
+
- learning_rate: 5e-05
|
| 50 |
+
- train_batch_size: 8
|
| 51 |
+
- eval_batch_size: 8
|
| 52 |
+
- seed: 42
|
| 53 |
+
- distributed_type: multi-GPU
|
| 54 |
+
- num_devices: 4
|
| 55 |
+
- total_train_batch_size: 32
|
| 56 |
+
- total_eval_batch_size: 32
|
| 57 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 58 |
+
- lr_scheduler_type: constant
|
| 59 |
+
- num_epochs: 50
|
| 60 |
+
|
| 61 |
+
### Training results
|
| 62 |
+
|
| 63 |
+
| Training Loss | Epoch | Step | Validation Loss | Data Size | Epoch Runtime | Accuracy | F1 Macro | Rouge1 | Rouge2 | Rougel | Rougelsum |
|
| 64 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:-------------:|:--------:|:--------:|:------:|:------:|:------:|:---------:|
|
| 65 |
+
| No log | 0 | 0 | 0.7204 | 0 | 1.6779 | 0.4779 | 0.4482 | 0.4779 | 0.0 | 0.4782 | 0.4773 |
|
| 66 |
+
| No log | 1 | 294 | 0.7127 | 0.0078 | 3.0497 | 0.4605 | 0.4594 | 0.4602 | 0.0 | 0.4608 | 0.4602 |
|
| 67 |
+
| No log | 2 | 588 | 0.6631 | 0.0156 | 1.8627 | 0.6213 | 0.3832 | 0.6213 | 0.0 | 0.6207 | 0.6210 |
|
| 68 |
+
| No log | 3 | 882 | 0.6623 | 0.0312 | 2.0432 | 0.6222 | 0.4283 | 0.6222 | 0.0 | 0.6213 | 0.6225 |
|
| 69 |
+
| 0.0272 | 4 | 1176 | 0.6547 | 0.0625 | 2.3096 | 0.6219 | 0.3850 | 0.6219 | 0.0 | 0.6215 | 0.6216 |
|
| 70 |
+
| 0.0546 | 5 | 1470 | 0.6508 | 0.125 | 2.9116 | 0.6385 | 0.4884 | 0.6382 | 0.0 | 0.6382 | 0.6385 |
|
| 71 |
+
| 0.0898 | 6 | 1764 | 0.6159 | 0.25 | 4.1202 | 0.6615 | 0.5994 | 0.6615 | 0.0 | 0.6612 | 0.6615 |
|
| 72 |
+
| 0.5742 | 7 | 2058 | 0.5887 | 0.5 | 6.5760 | 0.6893 | 0.6685 | 0.6890 | 0.0 | 0.6893 | 0.6893 |
|
| 73 |
+
| 0.5151 | 8.0 | 2352 | 0.5455 | 1.0 | 11.4274 | 0.7230 | 0.6932 | 0.7237 | 0.0 | 0.7233 | 0.7233 |
|
| 74 |
+
| 0.4331 | 9.0 | 2646 | 0.5818 | 1.0 | 11.3375 | 0.7307 | 0.7003 | 0.7310 | 0.0 | 0.7304 | 0.7307 |
|
| 75 |
+
| 0.2983 | 10.0 | 2940 | 0.6985 | 1.0 | 11.3204 | 0.7374 | 0.7160 | 0.7381 | 0.0 | 0.7374 | 0.7374 |
|
| 76 |
+
| 0.2542 | 11.0 | 3234 | 0.7486 | 1.0 | 11.4927 | 0.7405 | 0.7218 | 0.7405 | 0.0 | 0.7405 | 0.7405 |
|
| 77 |
+
| 0.1905 | 12.0 | 3528 | 0.8393 | 1.0 | 11.5957 | 0.7365 | 0.7092 | 0.7365 | 0.0 | 0.7359 | 0.7362 |
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
### Framework versions
|
| 81 |
+
|
| 82 |
+
- Transformers 4.57.0
|
| 83 |
+
- Pytorch 2.8.0+cu128
|
| 84 |
+
- Datasets 4.0.0
|
| 85 |
+
- Tokenizers 0.22.1
|
config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"AlbertForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 2,
|
| 7 |
+
"classifier_dropout_prob": 0.1,
|
| 8 |
+
"down_scale_factor": 1,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"embedding_size": 128,
|
| 11 |
+
"eos_token_id": 3,
|
| 12 |
+
"gap_size": 0,
|
| 13 |
+
"hidden_act": "gelu",
|
| 14 |
+
"hidden_dropout_prob": 0.1,
|
| 15 |
+
"hidden_size": 768,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"inner_group_num": 1,
|
| 18 |
+
"intermediate_size": 3072,
|
| 19 |
+
"layer_norm_eps": 1e-12,
|
| 20 |
+
"max_position_embeddings": 512,
|
| 21 |
+
"model_type": "albert",
|
| 22 |
+
"net_structure_type": 0,
|
| 23 |
+
"num_attention_heads": 12,
|
| 24 |
+
"num_hidden_groups": 1,
|
| 25 |
+
"num_hidden_layers": 12,
|
| 26 |
+
"num_memory_blocks": 0,
|
| 27 |
+
"pad_token_id": 0,
|
| 28 |
+
"position_embedding_type": "absolute",
|
| 29 |
+
"problem_type": "single_label_classification",
|
| 30 |
+
"transformers_version": "4.57.0",
|
| 31 |
+
"type_vocab_size": 2,
|
| 32 |
+
"vocab_size": 30000
|
| 33 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e160f7047f9bb5dea17069156508e76cc5b0c6018cc0c3e5e5e09dcabcf0ccc3
|
| 3 |
+
size 46743912
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "[CLS]",
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"eos_token": "[SEP]",
|
| 5 |
+
"mask_token": {
|
| 6 |
+
"content": "[MASK]",
|
| 7 |
+
"lstrip": true,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false
|
| 11 |
+
},
|
| 12 |
+
"pad_token": "<pad>",
|
| 13 |
+
"sep_token": "[SEP]",
|
| 14 |
+
"unk_token": "<unk>"
|
| 15 |
+
}
|
spiece.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fefb02b667a6c5c2fe27602d28e5fb3428f66ab89c7d6f388e7c8d44a02d0336
|
| 3 |
+
size 760289
|
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 |
+
"1": {
|
| 12 |
+
"content": "<unk>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "[CLS]",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"3": {
|
| 28 |
+
"content": "[SEP]",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"4": {
|
| 36 |
+
"content": "[MASK]",
|
| 37 |
+
"lstrip": true,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"bos_token": "[CLS]",
|
| 45 |
+
"clean_up_tokenization_spaces": false,
|
| 46 |
+
"cls_token": "[CLS]",
|
| 47 |
+
"do_lower_case": true,
|
| 48 |
+
"eos_token": "[SEP]",
|
| 49 |
+
"extra_special_tokens": {},
|
| 50 |
+
"keep_accents": false,
|
| 51 |
+
"mask_token": "[MASK]",
|
| 52 |
+
"model_max_length": 512,
|
| 53 |
+
"pad_token": "<pad>",
|
| 54 |
+
"remove_space": true,
|
| 55 |
+
"sep_token": "[SEP]",
|
| 56 |
+
"tokenizer_class": "AlbertTokenizer",
|
| 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:f23a3f951f3cb22fb06287e8cb6dc4fdf933bf89151610ffd07c6997abedd652
|
| 3 |
+
size 5969
|