AdnanRiaz107
commited on
Commit
•
47f7beb
1
Parent(s):
6616ebd
End of training
Browse files- README.md +78 -0
- generation_config.json +8 -0
README.md
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: microsoft/codebert-base
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
model-index:
|
6 |
+
- name: CodeBert-finetuned-the-stack-bash
|
7 |
+
results: []
|
8 |
+
---
|
9 |
+
|
10 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
11 |
+
should probably proofread and complete it, then remove this comment. -->
|
12 |
+
|
13 |
+
# CodeBert-finetuned-the-stack-bash
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [microsoft/codebert-base](https://huggingface.co/microsoft/codebert-base) on an unknown dataset.
|
16 |
+
It achieves the following results on the evaluation set:
|
17 |
+
- Loss: 2.0540
|
18 |
+
|
19 |
+
## Model description
|
20 |
+
|
21 |
+
More information needed
|
22 |
+
|
23 |
+
## Intended uses & limitations
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Training and evaluation data
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training procedure
|
32 |
+
|
33 |
+
### Training hyperparameters
|
34 |
+
|
35 |
+
The following hyperparameters were used during training:
|
36 |
+
- learning_rate: 5e-05
|
37 |
+
- train_batch_size: 1
|
38 |
+
- eval_batch_size: 1
|
39 |
+
- seed: 42
|
40 |
+
- gradient_accumulation_steps: 4
|
41 |
+
- total_train_batch_size: 4
|
42 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
43 |
+
- lr_scheduler_type: cosine
|
44 |
+
- lr_scheduler_warmup_steps: 100
|
45 |
+
- training_steps: 10000
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
50 |
+
|:-------------:|:-----:|:-----:|:---------------:|
|
51 |
+
| 4.3461 | 0.05 | 500 | 4.6252 |
|
52 |
+
| 3.028 | 0.1 | 1000 | 3.2745 |
|
53 |
+
| 2.978 | 0.15 | 1500 | 2.8286 |
|
54 |
+
| 3.2116 | 0.2 | 2000 | 2.5426 |
|
55 |
+
| 2.9872 | 0.25 | 2500 | 2.4032 |
|
56 |
+
| 2.5853 | 0.3 | 3000 | 2.3376 |
|
57 |
+
| 2.6977 | 0.35 | 3500 | 2.2992 |
|
58 |
+
| 2.5997 | 0.4 | 4000 | 2.2394 |
|
59 |
+
| 2.3712 | 0.45 | 4500 | 2.1834 |
|
60 |
+
| 2.1944 | 0.5 | 5000 | 2.1589 |
|
61 |
+
| 2.4029 | 0.55 | 5500 | 2.1265 |
|
62 |
+
| 2.3307 | 0.6 | 6000 | 2.1207 |
|
63 |
+
| 2.45 | 0.65 | 6500 | 2.0951 |
|
64 |
+
| 2.3575 | 0.7 | 7000 | 2.0987 |
|
65 |
+
| 2.3894 | 0.75 | 7500 | 2.0740 |
|
66 |
+
| 2.741 | 0.8 | 8000 | 2.0610 |
|
67 |
+
| 1.6001 | 0.85 | 8500 | 2.0542 |
|
68 |
+
| 2.5929 | 0.9 | 9000 | 2.0488 |
|
69 |
+
| 2.0965 | 0.95 | 9500 | 2.0473 |
|
70 |
+
| 2.6814 | 1.0 | 10000 | 2.0540 |
|
71 |
+
|
72 |
+
|
73 |
+
### Framework versions
|
74 |
+
|
75 |
+
- Transformers 4.35.0
|
76 |
+
- Pytorch 2.1.0+cu118
|
77 |
+
- Datasets 2.14.6
|
78 |
+
- Tokenizers 0.14.1
|
generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"pad_token_id": 1,
|
6 |
+
"transformers_version": "4.35.0",
|
7 |
+
"use_cache": false
|
8 |
+
}
|