ljcnju commited on
Commit
70824a3
·
verified ·
1 Parent(s): f99d9cc

End of training

Browse files
Files changed (2) hide show
  1. README.md +70 -0
  2. model.safetensors +1 -1
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/codebert-base
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ model-index:
8
+ - name: CodeBertForDefect-Detection
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # CodeBertForDefect-Detection
16
+
17
+ This model is a fine-tuned version of [microsoft/codebert-base](https://huggingface.co/microsoft/codebert-base) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.9039
20
+ - Accuracy: 0.6435
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 5e-05
40
+ - train_batch_size: 16
41
+ - eval_batch_size: 32
42
+ - seed: 42
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - lr_scheduler_warmup_steps: 13112.4
46
+ - num_epochs: 10
47
+ - mixed_precision_training: Native AMP
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
53
+ | 0.6483 | 1.0 | 1366 | 0.6494 | 0.5637 |
54
+ | 0.6213 | 2.0 | 2732 | 0.5968 | 0.6380 |
55
+ | 0.5927 | 3.0 | 4098 | 0.5767 | 0.6457 |
56
+ | 0.5615 | 4.0 | 5464 | 0.5855 | 0.6669 |
57
+ | 0.5271 | 5.0 | 6830 | 0.6677 | 0.6643 |
58
+ | 0.4488 | 6.0 | 8196 | 0.7177 | 0.6237 |
59
+ | 0.4576 | 7.0 | 9562 | 0.6643 | 0.6398 |
60
+ | 0.45 | 8.0 | 10928 | 0.7414 | 0.6479 |
61
+ | 0.4156 | 9.0 | 12294 | 0.9852 | 0.6519 |
62
+ | 0.3362 | 10.0 | 13660 | 0.9039 | 0.6435 |
63
+
64
+
65
+ ### Framework versions
66
+
67
+ - Transformers 4.37.2
68
+ - Pytorch 2.1.2+cu121
69
+ - Datasets 2.15.0
70
+ - Tokenizers 0.15.0
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4ecab172bd144bd8321bd5aaf90f285f510afe6f7ca746159b10501954356152
3
  size 498612824
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:216b5f82e8a7af79fed2268d92abad42b914664d302c9e3fc7ea7d0fab596255
3
  size 498612824