Instructions to use Azirqui/codet5-python-summarizer-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Azirqui/codet5-python-summarizer-v4 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-v4") - Transformers
How to use Azirqui/codet5-python-summarizer-v4 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Azirqui/codet5-python-summarizer-v4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download training_args.bin from Azirqui/codet5-python-summarizer-v4: direct link, hf CLI and curl.
- Browser
- Download file 5.91 kB
-
https://huggingface.co/Azirqui/codet5-python-summarizer-v4/resolve/7efaa1052699d124892c7d81e7cc91efd4e79138/training_args.bin
- Command line
-
hf download hf://Azirqui/codet5-python-summarizer-v4@7efaa1052699d124892c7d81e7cc91efd4e79138/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/Azirqui/codet5-python-summarizer-v4/resolve/7efaa1052699d124892c7d81e7cc91efd4e79138/training_args.bin
5.91 kB
- Xet hash:
- 70649a0b52d615e02c468a698b6c5a293bc24221e9b95990868eaa00dda42442
- Size of remote file:
- 5.91 kB
- SHA256:
- 9857de996d80bfc23af206e710127f30ecf1d68eff4e59da32e504990fb5a1ec
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.