Upload TFAlbertForSequenceClassification
Browse files- README.md +60 -0
- config.json +47 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: albert/albert-base-v2
|
5 |
+
tags:
|
6 |
+
- generated_from_keras_callback
|
7 |
+
model-index:
|
8 |
+
- name: classiv1_albert_model
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
13 |
+
probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# classiv1_albert_model
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [albert/albert-base-v2](https://huggingface.co/albert/albert-base-v2) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Train Loss: 0.1577
|
20 |
+
- Train Accuracy: 0.9334
|
21 |
+
- Validation Loss: 0.2818
|
22 |
+
- Validation Accuracy: 0.8990
|
23 |
+
- Epoch: 3
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': np.float32(3e-05), 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
|
43 |
+
- training_precision: float32
|
44 |
+
|
45 |
+
### Training results
|
46 |
+
|
47 |
+
| Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
|
48 |
+
|:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
|
49 |
+
| 0.9344 | 0.6647 | 0.4468 | 0.8440 | 0 |
|
50 |
+
| 0.2788 | 0.9076 | 0.2503 | 0.9170 | 1 |
|
51 |
+
| 0.1689 | 0.9293 | 0.2698 | 0.9110 | 2 |
|
52 |
+
| 0.1577 | 0.9334 | 0.2818 | 0.8990 | 3 |
|
53 |
+
|
54 |
+
|
55 |
+
### Framework versions
|
56 |
+
|
57 |
+
- Transformers 4.52.4
|
58 |
+
- TensorFlow 2.19.0
|
59 |
+
- Datasets 3.6.0
|
60 |
+
- Tokenizers 0.21.1
|
config.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"AlbertForSequenceClassification"
|
4 |
+
],
|
5 |
+
"attention_probs_dropout_prob": 0,
|
6 |
+
"bos_token_id": 2,
|
7 |
+
"classifier_dropout_prob": 0.1,
|
8 |
+
"down_scale_factor": 1,
|
9 |
+
"embedding_size": 128,
|
10 |
+
"eos_token_id": 3,
|
11 |
+
"gap_size": 0,
|
12 |
+
"hidden_act": "gelu_new",
|
13 |
+
"hidden_dropout_prob": 0,
|
14 |
+
"hidden_size": 768,
|
15 |
+
"id2label": {
|
16 |
+
"0": "LABEL_0",
|
17 |
+
"1": "LABEL_1",
|
18 |
+
"2": "LABEL_2",
|
19 |
+
"3": "LABEL_3",
|
20 |
+
"4": "LABEL_4",
|
21 |
+
"5": "LABEL_5"
|
22 |
+
},
|
23 |
+
"initializer_range": 0.02,
|
24 |
+
"inner_group_num": 1,
|
25 |
+
"intermediate_size": 3072,
|
26 |
+
"label2id": {
|
27 |
+
"LABEL_0": 0,
|
28 |
+
"LABEL_1": 1,
|
29 |
+
"LABEL_2": 2,
|
30 |
+
"LABEL_3": 3,
|
31 |
+
"LABEL_4": 4,
|
32 |
+
"LABEL_5": 5
|
33 |
+
},
|
34 |
+
"layer_norm_eps": 1e-12,
|
35 |
+
"max_position_embeddings": 512,
|
36 |
+
"model_type": "albert",
|
37 |
+
"net_structure_type": 0,
|
38 |
+
"num_attention_heads": 12,
|
39 |
+
"num_hidden_groups": 1,
|
40 |
+
"num_hidden_layers": 12,
|
41 |
+
"num_memory_blocks": 0,
|
42 |
+
"pad_token_id": 0,
|
43 |
+
"position_embedding_type": "absolute",
|
44 |
+
"transformers_version": "4.52.4",
|
45 |
+
"type_vocab_size": 2,
|
46 |
+
"vocab_size": 30000
|
47 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:59b9fb6c77f7fcec5d8f6ea05d4ed41c4bacfe121d6cb71ee76157d72ac8632e
|
3 |
+
size 46793992
|