End of training
Browse files- README.md +78 -0
- generation_config.json +8 -0
- model.safetensors +1 -1
README.md
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: Salesforce/codet5-base
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: CodeT5ForCodeSummary
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# CodeT5ForCodeSummary
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [Salesforce/codet5-base](https://huggingface.co/Salesforce/codet5-base) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 0.8891
|
19 |
+
|
20 |
+
## Model description
|
21 |
+
|
22 |
+
More information needed
|
23 |
+
|
24 |
+
## Intended uses & limitations
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Training and evaluation data
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training procedure
|
33 |
+
|
34 |
+
### Training hyperparameters
|
35 |
+
|
36 |
+
The following hyperparameters were used during training:
|
37 |
+
- learning_rate: 5e-05
|
38 |
+
- train_batch_size: 16
|
39 |
+
- eval_batch_size: 16
|
40 |
+
- seed: 42
|
41 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
+
- lr_scheduler_type: linear
|
43 |
+
- lr_scheduler_warmup_steps: 14400.0
|
44 |
+
- num_epochs: 20
|
45 |
+
- mixed_precision_training: Native AMP
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
50 |
+
|:-------------:|:-----:|:-----:|:---------------:|
|
51 |
+
| 1.0295 | 1.0 | 750 | 0.7786 |
|
52 |
+
| 0.7481 | 2.0 | 1500 | 0.6092 |
|
53 |
+
| 0.6274 | 3.0 | 2250 | 0.5648 |
|
54 |
+
| 0.5562 | 4.0 | 3000 | 0.5395 |
|
55 |
+
| 0.479 | 5.0 | 3750 | 0.5328 |
|
56 |
+
| 0.4297 | 6.0 | 4500 | 0.5227 |
|
57 |
+
| 0.3519 | 7.0 | 5250 | 0.5505 |
|
58 |
+
| 0.3148 | 8.0 | 6000 | 0.5607 |
|
59 |
+
| 0.2535 | 9.0 | 6750 | 0.5909 |
|
60 |
+
| 0.2152 | 10.0 | 7500 | 0.6145 |
|
61 |
+
| 0.1801 | 11.0 | 8250 | 0.6458 |
|
62 |
+
| 0.1635 | 12.0 | 9000 | 0.6921 |
|
63 |
+
| 0.1474 | 13.0 | 9750 | 0.7425 |
|
64 |
+
| 0.1236 | 14.0 | 10500 | 0.7537 |
|
65 |
+
| 0.1075 | 15.0 | 11250 | 0.8059 |
|
66 |
+
| 0.1039 | 16.0 | 12000 | 0.8050 |
|
67 |
+
| 0.0888 | 17.0 | 12750 | 0.8645 |
|
68 |
+
| 0.0857 | 18.0 | 13500 | 0.8714 |
|
69 |
+
| 0.0763 | 19.0 | 14250 | 0.9016 |
|
70 |
+
| 0.048 | 20.0 | 15000 | 0.8891 |
|
71 |
+
|
72 |
+
|
73 |
+
### Framework versions
|
74 |
+
|
75 |
+
- Transformers 4.37.2
|
76 |
+
- Pytorch 2.1.2+cu121
|
77 |
+
- Datasets 2.15.0
|
78 |
+
- Tokenizers 0.15.0
|
generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"decoder_start_token_id": 0,
|
5 |
+
"eos_token_id": 2,
|
6 |
+
"pad_token_id": 0,
|
7 |
+
"transformers_version": "4.37.2"
|
8 |
+
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 891570984
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e47bc62d19bdd74402ddf561f6ecb458e21a0a7123aa97c5817c161f515dd22d
|
3 |
size 891570984
|