ljcnju commited on
Commit
12fd0af
·
verified ·
1 Parent(s): 583666f

End of training

Browse files
Files changed (2) hide show
  1. README.md +65 -0
  2. model.safetensors +1 -1
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/codebert-base
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ model-index:
8
+ - name: CodeBertForClone-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
+ # CodeBertForClone-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.4183
20
+ - Accuracy: 0.834
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: 24000.0
46
+ - num_epochs: 5
47
+ - mixed_precision_training: Native AMP
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
53
+ | 0.3291 | 1.0 | 5000 | 0.3769 | 0.8285 |
54
+ | 0.3053 | 2.0 | 10000 | 0.3781 | 0.8345 |
55
+ | 0.3319 | 3.0 | 15000 | 0.3811 | 0.847 |
56
+ | 0.3007 | 4.0 | 20000 | 0.3990 | 0.8413 |
57
+ | 0.291 | 5.0 | 25000 | 0.4183 | 0.834 |
58
+
59
+
60
+ ### Framework versions
61
+
62
+ - Transformers 4.37.2
63
+ - Pytorch 2.1.2+cu121
64
+ - Datasets 2.15.0
65
+ - Tokenizers 0.15.0
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9043780d315414b851ccae64956e37a1ea2fd9e192a3f7ddbd542e14fd83ffda
3
  size 498612824
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ca2b0cbfce06a4839e18c245f795d728fa52438ecd507b13237561955ea9edf
3
  size 498612824