Instructions to use Azirqui/codet5-python-summarizer-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Azirqui/codet5-python-summarizer-v3 with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("Salesforce/codet5-small") model = PeftModel.from_pretrained(base_model, "Azirqui/codet5-python-summarizer-v3") - Transformers
How to use Azirqui/codet5-python-summarizer-v3 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Azirqui/codet5-python-summarizer-v3", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files
README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: peft
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: Salesforce/codet5-small
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:Salesforce/codet5-small
|
| 7 |
+
- lora
|
| 8 |
+
- transformers
|
| 9 |
+
metrics:
|
| 10 |
+
- rouge
|
| 11 |
+
model-index:
|
| 12 |
+
- name: codet5-python-summarizer-v3
|
| 13 |
+
results: []
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 17 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 18 |
+
|
| 19 |
+
# codet5-python-summarizer-v3
|
| 20 |
+
|
| 21 |
+
This model is a fine-tuned version of [Salesforce/codet5-small](https://huggingface.co/Salesforce/codet5-small) on an unknown dataset.
|
| 22 |
+
It achieves the following results on the evaluation set:
|
| 23 |
+
- Loss: 0.0107
|
| 24 |
+
- Rouge1: 0.9856
|
| 25 |
+
- Rouge2: 0.9796
|
| 26 |
+
- Rougel: 0.9856
|
| 27 |
+
- Rougelsum: 0.9856
|
| 28 |
+
|
| 29 |
+
## Model description
|
| 30 |
+
|
| 31 |
+
More information needed
|
| 32 |
+
|
| 33 |
+
## Intended uses & limitations
|
| 34 |
+
|
| 35 |
+
More information needed
|
| 36 |
+
|
| 37 |
+
## Training and evaluation data
|
| 38 |
+
|
| 39 |
+
More information needed
|
| 40 |
+
|
| 41 |
+
## Training procedure
|
| 42 |
+
|
| 43 |
+
### Training hyperparameters
|
| 44 |
+
|
| 45 |
+
The following hyperparameters were used during training:
|
| 46 |
+
- learning_rate: 5e-05
|
| 47 |
+
- train_batch_size: 8
|
| 48 |
+
- eval_batch_size: 8
|
| 49 |
+
- seed: 42
|
| 50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 51 |
+
- lr_scheduler_type: linear
|
| 52 |
+
- num_epochs: 3
|
| 53 |
+
- mixed_precision_training: Native AMP
|
| 54 |
+
|
| 55 |
+
### Training results
|
| 56 |
+
|
| 57 |
+
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum |
|
| 58 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:------:|:------:|:---------:|
|
| 59 |
+
| 0.0298 | 1.0 | 1230 | 0.0146 | 0.9812 | 0.9741 | 0.9811 | 0.9812 |
|
| 60 |
+
| 0.0153 | 2.0 | 2460 | 0.0116 | 0.9855 | 0.9794 | 0.9855 | 0.9854 |
|
| 61 |
+
| 0.0236 | 3.0 | 3690 | 0.0107 | 0.9856 | 0.9796 | 0.9856 | 0.9856 |
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
### Framework versions
|
| 65 |
+
|
| 66 |
+
- PEFT 0.18.1
|
| 67 |
+
- Transformers 4.44.2
|
| 68 |
+
- Pytorch 2.10.0+cu128
|
| 69 |
+
- Datasets 4.0.0
|
| 70 |
+
- Tokenizers 0.19.1
|