raygx commited on
Commit
d59f87b
·
1 Parent(s): 1df3ae5

Upload TFBertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +56 -0
  2. config.json +49 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: BertClassifier4NepaliNews
7
+ results: []
8
+ ---
9
+
10
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
11
+ probably proofread and complete it, then remove this comment. -->
12
+
13
+ # BertClassifier4NepaliNews
14
+
15
+ This model is a fine-tuned version of [Shushant/nepaliBERT](https://huggingface.co/Shushant/nepaliBERT) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Train Loss: 0.2835
18
+ - Validation Loss: 0.4827
19
+ - Epoch: 3
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': 5e-06, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False, 'weight_decay_rate': 0.0001}
39
+ - training_precision: float32
40
+
41
+ ### Training results
42
+
43
+ | Train Loss | Validation Loss | Epoch |
44
+ |:----------:|:---------------:|:-----:|
45
+ | 0.7026 | 0.5473 | 0 |
46
+ | 0.4457 | 0.4904 | 1 |
47
+ | 0.3595 | 0.4803 | 2 |
48
+ | 0.2835 | 0.4827 | 3 |
49
+
50
+
51
+ ### Framework versions
52
+
53
+ - Transformers 4.30.1
54
+ - TensorFlow 2.12.0
55
+ - Datasets 2.1.0
56
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Shushant/nepaliBERT",
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": "ArthaBanijya",
13
+ "1": "Bichar",
14
+ "2": "Desh",
15
+ "3": "Khelkud",
16
+ "4": "Manoranjan",
17
+ "5": "Prabas",
18
+ "6": "Sahitya",
19
+ "7": "SuchanaPrabidhi",
20
+ "8": "Swasthya",
21
+ "9": "Viswa"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 3072,
25
+ "label2id": {
26
+ "ArthaBanijya": 0,
27
+ "Bichar": 1,
28
+ "Desh": 2,
29
+ "Khelkud": 3,
30
+ "Manoranjan": 4,
31
+ "Prabas": 5,
32
+ "Sahitya": 6,
33
+ "SuchanaPrabidhi": 7,
34
+ "Swasthya": 8,
35
+ "Viswa": 9
36
+ },
37
+ "layer_norm_eps": 1e-12,
38
+ "max_position_embeddings": 512,
39
+ "model_type": "bert",
40
+ "num_attention_heads": 12,
41
+ "num_hidden_layers": 12,
42
+ "pad_token_id": 0,
43
+ "position_embedding_type": "absolute",
44
+ "torch_dtype": "float32",
45
+ "transformers_version": "4.30.1",
46
+ "type_vocab_size": 2,
47
+ "use_cache": true,
48
+ "vocab_size": 30522
49
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3533bc6a65737da22756fa648edd68500242df015b8bc2153679e97d5659d1b
3
+ size 438247736