codet5_train_2
Browse files- README.md +31 -2
- generation_config.json +0 -1
- model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -6,9 +6,24 @@ tags:
|
|
| 6 |
- generated_from_trainer
|
| 7 |
datasets:
|
| 8 |
- code_search_net
|
|
|
|
|
|
|
| 9 |
model-index:
|
| 10 |
- name: code_docstring_model
|
| 11 |
-
results:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -17,6 +32,9 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 17 |
# code_docstring_model
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [Salesforce/codet5-small](https://huggingface.co/Salesforce/codet5-small) on the code_search_net dataset.
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
@@ -43,9 +61,20 @@ The following hyperparameters were used during training:
|
|
| 43 |
- total_train_batch_size: 32
|
| 44 |
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 45 |
- lr_scheduler_type: linear
|
| 46 |
-
- num_epochs:
|
| 47 |
- mixed_precision_training: Native AMP
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
### Framework versions
|
| 50 |
|
| 51 |
- Transformers 4.47.0
|
|
|
|
| 6 |
- generated_from_trainer
|
| 7 |
datasets:
|
| 8 |
- code_search_net
|
| 9 |
+
metrics:
|
| 10 |
+
- bleu
|
| 11 |
model-index:
|
| 12 |
- name: code_docstring_model
|
| 13 |
+
results:
|
| 14 |
+
- task:
|
| 15 |
+
name: Sequence-to-sequence Language Modeling
|
| 16 |
+
type: text2text-generation
|
| 17 |
+
dataset:
|
| 18 |
+
name: code_search_net
|
| 19 |
+
type: code_search_net
|
| 20 |
+
config: python
|
| 21 |
+
split: validation
|
| 22 |
+
args: python
|
| 23 |
+
metrics:
|
| 24 |
+
- name: Bleu
|
| 25 |
+
type: bleu
|
| 26 |
+
value: 0.009912737763560728
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 32 |
# code_docstring_model
|
| 33 |
|
| 34 |
This model is a fine-tuned version of [Salesforce/codet5-small](https://huggingface.co/Salesforce/codet5-small) on the code_search_net dataset.
|
| 35 |
+
It achieves the following results on the evaluation set:
|
| 36 |
+
- Loss: 1.1194
|
| 37 |
+
- Bleu: 0.0099
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
|
|
| 61 |
- total_train_batch_size: 32
|
| 62 |
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 63 |
- lr_scheduler_type: linear
|
| 64 |
+
- num_epochs: 5
|
| 65 |
- mixed_precision_training: Native AMP
|
| 66 |
|
| 67 |
+
### Training results
|
| 68 |
+
|
| 69 |
+
| Training Loss | Epoch | Step | Validation Loss | Bleu |
|
| 70 |
+
|:-------------:|:------:|:-----:|:---------------:|:------:|
|
| 71 |
+
| 1.4113 | 1.0 | 2004 | 1.2082 | 0.0095 |
|
| 72 |
+
| 1.3283 | 2.0 | 4008 | 1.1537 | 0.0097 |
|
| 73 |
+
| 1.3036 | 3.0 | 6012 | 1.1331 | 0.0098 |
|
| 74 |
+
| 1.2585 | 4.0 | 8016 | 1.1226 | 0.0098 |
|
| 75 |
+
| 1.2613 | 4.9978 | 10015 | 1.1194 | 0.0099 |
|
| 76 |
+
|
| 77 |
+
|
| 78 |
### Framework versions
|
| 79 |
|
| 80 |
- Transformers 4.47.0
|
generation_config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"_from_model_config": true,
|
| 3 |
"bos_token_id": 1,
|
| 4 |
"decoder_start_token_id": 0,
|
| 5 |
"eos_token_id": 2,
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"bos_token_id": 1,
|
| 3 |
"decoder_start_token_id": 0,
|
| 4 |
"eos_token_id": 2,
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 242037800
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96e6e7f07f24e59be74c6d559a79325413ed1d8aed5a419fa41906e70a5bf66d
|
| 3 |
size 242037800
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5496
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b37b21c03d518303a92294b07f5807779171f7cb7ed6a230c85043641d48951
|
| 3 |
size 5496
|