Commit
·
70f5757
1
Parent(s):
f555f47
End of training
Browse files- README.md +73 -0
- generation_config.json +7 -0
README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Salesforce/codet5-small
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- rouge
|
| 8 |
+
model-index:
|
| 9 |
+
- name: codet5-small-Generate-docstrings-for-Python-bs-32
|
| 10 |
+
results: []
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 14 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 15 |
+
|
| 16 |
+
# codet5-small-Generate-docstrings-for-Python-bs-32
|
| 17 |
+
|
| 18 |
+
This model is a fine-tuned version of [Salesforce/codet5-small](https://huggingface.co/Salesforce/codet5-small) on the None dataset.
|
| 19 |
+
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 2.1105
|
| 21 |
+
- Rouge1: 0.3307
|
| 22 |
+
- Rouge2: 0.16
|
| 23 |
+
- Rougel: 0.297
|
| 24 |
+
- Rougelsum: 0.3149
|
| 25 |
+
- Gen Len: 16.7441
|
| 26 |
+
|
| 27 |
+
## Model description
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Intended uses & limitations
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Training and evaluation data
|
| 36 |
+
|
| 37 |
+
More information needed
|
| 38 |
+
|
| 39 |
+
## Training procedure
|
| 40 |
+
|
| 41 |
+
### Training hyperparameters
|
| 42 |
+
|
| 43 |
+
The following hyperparameters were used during training:
|
| 44 |
+
- learning_rate: 2e-05
|
| 45 |
+
- train_batch_size: 32
|
| 46 |
+
- eval_batch_size: 32
|
| 47 |
+
- seed: 42
|
| 48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 49 |
+
- lr_scheduler_type: linear
|
| 50 |
+
- num_epochs: 10
|
| 51 |
+
|
| 52 |
+
### Training results
|
| 53 |
+
|
| 54 |
+
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Gen Len |
|
| 55 |
+
|:-------------:|:-----:|:-----:|:---------------:|:------:|:------:|:------:|:---------:|:-------:|
|
| 56 |
+
| 2.7701 | 1.0 | 4472 | 2.3322 | 0.3225 | 0.1525 | 0.2894 | 0.3067 | 16.3153 |
|
| 57 |
+
| 2.4907 | 2.0 | 8944 | 2.2464 | 0.328 | 0.1555 | 0.293 | 0.3119 | 17.0097 |
|
| 58 |
+
| 2.405 | 3.0 | 13416 | 2.2004 | 0.3267 | 0.1562 | 0.2934 | 0.311 | 16.4531 |
|
| 59 |
+
| 2.3512 | 4.0 | 17888 | 2.1696 | 0.3292 | 0.1571 | 0.2944 | 0.3134 | 17.3872 |
|
| 60 |
+
| 2.3144 | 5.0 | 22360 | 2.1503 | 0.3293 | 0.1586 | 0.2954 | 0.3137 | 16.932 |
|
| 61 |
+
| 2.2862 | 6.0 | 26832 | 2.1355 | 0.3307 | 0.1588 | 0.2962 | 0.3149 | 17.0269 |
|
| 62 |
+
| 2.2666 | 7.0 | 31304 | 2.1246 | 0.33 | 0.1594 | 0.2962 | 0.3144 | 16.7064 |
|
| 63 |
+
| 2.2514 | 8.0 | 35776 | 2.1163 | 0.3305 | 0.1595 | 0.2968 | 0.3145 | 16.4765 |
|
| 64 |
+
| 2.2401 | 9.0 | 40248 | 2.1120 | 0.3305 | 0.1595 | 0.2967 | 0.3147 | 16.763 |
|
| 65 |
+
| 2.2333 | 10.0 | 44720 | 2.1105 | 0.3307 | 0.16 | 0.297 | 0.3149 | 16.7441 |
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
### Framework versions
|
| 69 |
+
|
| 70 |
+
- Transformers 4.33.0.dev0
|
| 71 |
+
- Pytorch 2.0.1+cu118
|
| 72 |
+
- Datasets 2.14.4.dev0
|
| 73 |
+
- Tokenizers 0.13.3
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 1,
|
| 3 |
+
"decoder_start_token_id": 0,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.33.0.dev0"
|
| 7 |
+
}
|