Transformers
PyTorch
Safetensors
py
English
t5
text2text-generation
Code2TextGeneration
Code2TextSummarisation
text-generation-inference
Run this model with HF Jobs
Run stmnk/codet5-small-code-summarization-python on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/stmnk/codet5-small-code-summarization-python. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/stmnk/codet5-small-code-summarization-python on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use stmnk/codet5-small-code-summarization-python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stmnk/codet5-small-code-summarization-python with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("stmnk/codet5-small-code-summarization-python") model = AutoModelForSeq2SeqLM.from_pretrained("stmnk/codet5-small-code-summarization-python", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update card
Browse files13 unmodified lines1415161718192013 unmodified lines- code-x-bleu---See [this w&b report](https://wandb.ai/stmnk/CodeT5/reports/Code-T5-code_x_glue_code2text--VmlldzoxMjM4MTUy?accessToken=5stsbg6bn2x0m6svrosxtq0zv3vhlgzr4cjcyapw52xq5puc09wo6f8li40ln7fm) for fine-tuning metrics.<!-- <iframe src="https://wandb.ai/stmnk/CodeT5/reports/Code-T5-code_x_glue_code2text--VmlldzoxMjM4MTUy" style="border:none;height:1024px;width:100%"> -->13 unmodified lines14151617181920212223242526272813 unmodified lines- code-x-bleu---pretrained model: https://huggingface.co/Salesforce/codet5-smallfinetuning dataset: https://huggingface.co/datasets/code_x_glue_ct_code_to_text (only the python split)official inference check point (for comparison, using base, not small, size): https://storage.googleapis.com/sfr-codet5-data-research/finetuned_models/summarize_python_codet5_base.binfor fine-tuning process metrics see [this w&b report](https://wandb.ai/stmnk/CodeT5/reports/Code-T5-code_x_glue_code2text--VmlldzoxMjM4MTUy?accessToken=5stsbg6bn2x0m6svrosxtq0zv3vhlgzr4cjcyapw52xq5puc09wo6f8li40ln7fm)<!-- <iframe src="https://wandb.ai/stmnk/CodeT5/reports/Code-T5-code_x_glue_code2text--VmlldzoxMjM4MTUy" style="border:none;height:1024px;width:100%"> -->
README.md+10-2