Instructions to use Salesforce/codet5-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Salesforce/codet5-small with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Salesforce/codet5-small") model = AutoModelForSeq2SeqLM.from_pretrained("Salesforce/codet5-small") - Notebooks
- Google Colab
- Kaggle
Add widgetData
Browse files
README.md
CHANGED
|
@@ -4,6 +4,8 @@ tags:
|
|
| 4 |
- codet5
|
| 5 |
datasets:
|
| 6 |
- code_search_net
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
# CodeT5 (small-sized model)
|
|
|
|
| 4 |
- codet5
|
| 5 |
datasets:
|
| 6 |
- code_search_net
|
| 7 |
+
widgetData:
|
| 8 |
+
text: 'def greet(user): print(f''hello <extra_id_0>!'') </s>'
|
| 9 |
---
|
| 10 |
|
| 11 |
# CodeT5 (small-sized model)
|