azherali commited on
Commit
4f6d148
·
verified ·
1 Parent(s): b094a22

Model save

Browse files
Files changed (2) hide show
  1. README.md +72 -0
  2. model.safetensors +1 -1
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: microsoft/codebert-base
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ - precision
10
+ - recall
11
+ model-index:
12
+ - name: CodeDetect-CodeBERT-T1
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # CodeDetect-CodeBERT-T1
20
+
21
+ This model is a fine-tuned version of [microsoft/codebert-base](https://huggingface.co/microsoft/codebert-base) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.1114
24
+ - Accuracy: 0.9747
25
+ - F1: 0.9746
26
+ - Precision: 0.9750
27
+ - Recall: 0.9744
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 2e-05
47
+ - train_batch_size: 64
48
+ - eval_batch_size: 64
49
+ - seed: 42
50
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
51
+ - lr_scheduler_type: linear
52
+ - lr_scheduler_warmup_steps: 0.1
53
+ - num_epochs: 5
54
+ - mixed_precision_training: Native AMP
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
59
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|:------:|:---------:|:------:|
60
+ | 0.0843 | 1.0 | 16897 | 0.0780 | 0.9713 | 0.9713 | 0.9712 | 0.9713 |
61
+ | 0.0650 | 2.0 | 33794 | 0.0702 | 0.9752 | 0.9751 | 0.9753 | 0.9750 |
62
+ | 0.0507 | 3.0 | 50691 | 0.0823 | 0.9729 | 0.9728 | 0.9734 | 0.9724 |
63
+ | 0.0377 | 4.0 | 67588 | 0.0838 | 0.9768 | 0.9767 | 0.9767 | 0.9767 |
64
+ | 0.0256 | 5.0 | 84485 | 0.1114 | 0.9747 | 0.9746 | 0.9750 | 0.9744 |
65
+
66
+
67
+ ### Framework versions
68
+
69
+ - Transformers 5.13.1
70
+ - Pytorch 2.11.0+cu130
71
+ - Datasets 4.0.0
72
+ - Tokenizers 0.22.2
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0c425caa00f0fd95d53cc06a6a55e8d75f8730cf04a0c951bc9f95209436378d
3
  size 498612824
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97f2db937a374962038936d1dfc02a8c0a73f18ec96c6d5715626d6fe62438f6
3
  size 498612824