DPhO05 commited on
Commit
542a5dc
·
verified ·
1 Parent(s): 2e42127

codebert-TD

Browse files
Files changed (4) hide show
  1. README.md +73 -0
  2. config.json +46 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: microsoft/codebert-base
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: codebert-td
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # codebert-td
17
+
18
+ This model is a fine-tuned version of [microsoft/codebert-base](https://huggingface.co/microsoft/codebert-base) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.4325
21
+ - Accuracy: 0.9492
22
+ - F1 Macro: 0.6372
23
+ - F1 Weighted: 0.9487
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
+ - learning_rate: 1e-05
43
+ - train_batch_size: 64
44
+ - eval_batch_size: 64
45
+ - seed: 42
46
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
47
+ - lr_scheduler_type: linear
48
+ - lr_scheduler_warmup_steps: 0.1
49
+ - num_epochs: 10
50
+ - mixed_precision_training: Native AMP
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | F1 Weighted |
55
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:-----------:|
56
+ | 0.3710 | 1.0 | 539 | 0.3667 | 0.9399 | 0.2785 | 0.9265 |
57
+ | 0.3190 | 2.0 | 1078 | 0.3273 | 0.9450 | 0.3737 | 0.9394 |
58
+ | 0.2832 | 3.0 | 1617 | 0.3055 | 0.9513 | 0.5054 | 0.9483 |
59
+ | 0.2518 | 4.0 | 2156 | 0.3008 | 0.9529 | 0.6363 | 0.9515 |
60
+ | 0.1736 | 5.0 | 2695 | 0.3219 | 0.9520 | 0.6821 | 0.9520 |
61
+ | 0.1768 | 6.0 | 3234 | 0.3548 | 0.9520 | 0.6803 | 0.9518 |
62
+ | 0.1445 | 7.0 | 3773 | 0.3569 | 0.9524 | 0.6808 | 0.9525 |
63
+ | 0.1154 | 8.0 | 4312 | 0.3944 | 0.9517 | 0.6895 | 0.9522 |
64
+ | 0.0974 | 9.0 | 4851 | 0.4116 | 0.9524 | 0.6966 | 0.9527 |
65
+ | 0.1000 | 10.0 | 5390 | 0.4149 | 0.9531 | 0.6886 | 0.9532 |
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 5.0.0
71
+ - Pytorch 2.10.0+cu128
72
+ - Datasets 4.8.3
73
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "LABEL_0",
16
+ "1": "LABEL_1",
17
+ "2": "LABEL_2",
18
+ "3": "LABEL_3",
19
+ "4": "LABEL_4",
20
+ "5": "LABEL_5"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "is_decoder": false,
25
+ "label2id": {
26
+ "LABEL_0": 0,
27
+ "LABEL_1": 1,
28
+ "LABEL_2": 2,
29
+ "LABEL_3": 3,
30
+ "LABEL_4": 4,
31
+ "LABEL_5": 5
32
+ },
33
+ "layer_norm_eps": 1e-05,
34
+ "max_position_embeddings": 514,
35
+ "model_type": "roberta",
36
+ "num_attention_heads": 12,
37
+ "num_hidden_layers": 12,
38
+ "output_past": true,
39
+ "pad_token_id": 1,
40
+ "problem_type": "single_label_classification",
41
+ "tie_word_embeddings": true,
42
+ "transformers_version": "5.0.0",
43
+ "type_vocab_size": 1,
44
+ "use_cache": false,
45
+ "vocab_size": 50265
46
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8aec3cd572ae49d386af2e9dee41d3d9563c5ff293f95dde0be9d235e1df1d90
3
+ size 498625104
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdd4ed5d7d38df8a3e67d8d61eec53603067bce55c574574fca01f44a9c6e7a7
3
+ size 5201