Model save
Browse files- README.md +70 -3
- model.safetensors +1 -1
README.md
CHANGED
@@ -1,3 +1,70 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: microsoft/codebert-base
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
model-index:
|
11 |
+
- name: codebert-code-clone-detector
|
12 |
+
results: []
|
13 |
+
---
|
14 |
+
|
15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
16 |
+
should probably proofread and complete it, then remove this comment. -->
|
17 |
+
|
18 |
+
# codebert-code-clone-detector
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [microsoft/codebert-base](https://huggingface.co/microsoft/codebert-base) on the None dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.3539
|
23 |
+
- Accuracy: 0.9333
|
24 |
+
- Precision: 0.9508
|
25 |
+
- Recall: 0.9206
|
26 |
+
- F1: 0.9355
|
27 |
+
|
28 |
+
## Model description
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Intended uses & limitations
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training and evaluation data
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Training procedure
|
41 |
+
|
42 |
+
### Training hyperparameters
|
43 |
+
|
44 |
+
The following hyperparameters were used during training:
|
45 |
+
- learning_rate: 2e-05
|
46 |
+
- train_batch_size: 16
|
47 |
+
- eval_batch_size: 16
|
48 |
+
- seed: 42
|
49 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
50 |
+
- lr_scheduler_type: linear
|
51 |
+
- num_epochs: 15
|
52 |
+
|
53 |
+
### Training results
|
54 |
+
|
55 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
56 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
57 |
+
| 0.3416 | 0.49 | 33 | 0.1724 | 0.9417 | 0.9828 | 0.9048 | 0.9421 |
|
58 |
+
| 0.221 | 0.97 | 66 | 0.2768 | 0.925 | 1.0 | 0.8571 | 0.9231 |
|
59 |
+
| 0.0929 | 1.46 | 99 | 0.2469 | 0.9583 | 1.0 | 0.9206 | 0.9587 |
|
60 |
+
| 0.1696 | 1.94 | 132 | 0.2142 | 0.95 | 0.9524 | 0.9524 | 0.9524 |
|
61 |
+
| 0.0818 | 2.43 | 165 | 0.4142 | 0.925 | 1.0 | 0.8571 | 0.9231 |
|
62 |
+
| 0.0676 | 2.91 | 198 | 0.3539 | 0.9333 | 0.9508 | 0.9206 | 0.9355 |
|
63 |
+
|
64 |
+
|
65 |
+
### Framework versions
|
66 |
+
|
67 |
+
- Transformers 4.39.3
|
68 |
+
- Pytorch 2.1.2
|
69 |
+
- Datasets 2.18.0
|
70 |
+
- Tokenizers 0.15.2
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 498612824
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:35fbe6bc95fab936ae1cfb11f3826fbe5aa63c59846d48e1e93571f7a40ee799
|
3 |
size 498612824
|