Commit
·
d1ac6e3
1
Parent(s):
76ca34e
End of training
Browse files- README.md +67 -0
- config.json +40 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +16 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: jiangg/chembert_cased
|
| 3 |
+
tags:
|
| 4 |
+
- generated_from_trainer
|
| 5 |
+
metrics:
|
| 6 |
+
- f1
|
| 7 |
+
- precision
|
| 8 |
+
- recall
|
| 9 |
+
- accuracy
|
| 10 |
+
model-index:
|
| 11 |
+
- name: chembert_cased-textCLS-RHEOLOGY
|
| 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 |
+
# chembert_cased-textCLS-RHEOLOGY
|
| 19 |
+
|
| 20 |
+
This model is a fine-tuned version of [jiangg/chembert_cased](https://huggingface.co/jiangg/chembert_cased) on an unknown dataset.
|
| 21 |
+
It achieves the following results on the evaluation set:
|
| 22 |
+
- Loss: 0.6766
|
| 23 |
+
- F1: 0.7253
|
| 24 |
+
- Precision: 0.7446
|
| 25 |
+
- Recall: 0.7407
|
| 26 |
+
- Accuracy: 0.7407
|
| 27 |
+
|
| 28 |
+
## Model description
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Intended uses & limitations
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training and evaluation data
|
| 37 |
+
|
| 38 |
+
More information needed
|
| 39 |
+
|
| 40 |
+
## Training procedure
|
| 41 |
+
|
| 42 |
+
### Training hyperparameters
|
| 43 |
+
|
| 44 |
+
The following hyperparameters were used during training:
|
| 45 |
+
- learning_rate: 2e-05
|
| 46 |
+
- train_batch_size: 32
|
| 47 |
+
- eval_batch_size: 32
|
| 48 |
+
- seed: 42
|
| 49 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 50 |
+
- lr_scheduler_type: linear
|
| 51 |
+
- num_epochs: 3
|
| 52 |
+
|
| 53 |
+
### Training results
|
| 54 |
+
|
| 55 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Accuracy |
|
| 56 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:--------:|
|
| 57 |
+
| 1.2479 | 1.0 | 46 | 0.9758 | 0.6185 | 0.5919 | 0.6605 | 0.6605 |
|
| 58 |
+
| 0.8039 | 2.0 | 92 | 0.7210 | 0.7277 | 0.7472 | 0.7407 | 0.7407 |
|
| 59 |
+
| 0.5982 | 3.0 | 138 | 0.6766 | 0.7253 | 0.7446 | 0.7407 | 0.7407 |
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
### Framework versions
|
| 63 |
+
|
| 64 |
+
- Transformers 4.33.2
|
| 65 |
+
- Pytorch 2.0.1+cu118
|
| 66 |
+
- Datasets 2.14.5
|
| 67 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "jiangg/chembert_cased",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.1,
|
| 10 |
+
"hidden_size": 768,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "BIODEGRAD_POLY",
|
| 13 |
+
"1": "BIODEGRAD_PROP",
|
| 14 |
+
"2": "MECHANICAL_PROP",
|
| 15 |
+
"3": "POLY_STRUC",
|
| 16 |
+
"4": "RHEOLOGICAL_PROP"
|
| 17 |
+
},
|
| 18 |
+
"initializer_range": 0.02,
|
| 19 |
+
"intermediate_size": 3072,
|
| 20 |
+
"label2id": {
|
| 21 |
+
"BIODEGRAD_POLY": 0,
|
| 22 |
+
"BIODEGRAD_PROP": 1,
|
| 23 |
+
"MECHANICAL_PROP": 2,
|
| 24 |
+
"POLY_STRUC": 3,
|
| 25 |
+
"RHEOLOGICAL_PROP": 4
|
| 26 |
+
},
|
| 27 |
+
"layer_norm_eps": 1e-12,
|
| 28 |
+
"max_position_embeddings": 512,
|
| 29 |
+
"model_type": "bert",
|
| 30 |
+
"num_attention_heads": 12,
|
| 31 |
+
"num_hidden_layers": 12,
|
| 32 |
+
"pad_token_id": 0,
|
| 33 |
+
"position_embedding_type": "absolute",
|
| 34 |
+
"problem_type": "single_label_classification",
|
| 35 |
+
"torch_dtype": "float32",
|
| 36 |
+
"transformers_version": "4.33.2",
|
| 37 |
+
"type_vocab_size": 2,
|
| 38 |
+
"use_cache": true,
|
| 39 |
+
"vocab_size": 28996
|
| 40 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc7fd795d3f9b7e36c786e8c3330380bbb29a2ab5771308b809e6e3de3ed24e5
|
| 3 |
+
size 433324849
|
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,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"clean_up_tokenization_spaces": true,
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"do_basic_tokenize": true,
|
| 5 |
+
"do_lower_case": false,
|
| 6 |
+
"mask_token": "[MASK]",
|
| 7 |
+
"max_len": 512,
|
| 8 |
+
"model_max_length": 512,
|
| 9 |
+
"never_split": null,
|
| 10 |
+
"pad_token": "[PAD]",
|
| 11 |
+
"sep_token": "[SEP]",
|
| 12 |
+
"strip_accents": null,
|
| 13 |
+
"tokenize_chinese_chars": true,
|
| 14 |
+
"tokenizer_class": "BertTokenizer",
|
| 15 |
+
"unk_token": "[UNK]"
|
| 16 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb19ef6d777a1a168a9766161eeb36ad14a986f7fc15124440a9e09d26169d2b
|
| 3 |
+
size 4027
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|