Instructions to use Salesforce/codet5p-2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Salesforce/codet5p-2b with Transformers:
# Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("Salesforce/codet5p-2b", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
0d030d0
1
Parent(s): a191f78
Update config.json
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
"bos_token_id": 1,
|
| 21 |
"chunk_size_feed_forward": 0,
|
| 22 |
"cross_attention_hidden_size": null,
|
| 23 |
-
"decoder_start_token_id":
|
| 24 |
"diversity_penalty": 0.0,
|
| 25 |
"do_sample": false,
|
| 26 |
"early_stopping": false,
|
|
@@ -106,7 +106,7 @@
|
|
| 106 |
"bos_token_id": 1,
|
| 107 |
"chunk_size_feed_forward": 0,
|
| 108 |
"cross_attention_hidden_size": null,
|
| 109 |
-
"decoder_start_token_id":
|
| 110 |
"diversity_penalty": 0.0,
|
| 111 |
"do_sample": false,
|
| 112 |
"early_stopping": false,
|
|
|
|
| 20 |
"bos_token_id": 1,
|
| 21 |
"chunk_size_feed_forward": 0,
|
| 22 |
"cross_attention_hidden_size": null,
|
| 23 |
+
"decoder_start_token_id": 50256,
|
| 24 |
"diversity_penalty": 0.0,
|
| 25 |
"do_sample": false,
|
| 26 |
"early_stopping": false,
|
|
|
|
| 106 |
"bos_token_id": 1,
|
| 107 |
"chunk_size_feed_forward": 0,
|
| 108 |
"cross_attention_hidden_size": null,
|
| 109 |
+
"decoder_start_token_id": 50256,
|
| 110 |
"diversity_penalty": 0.0,
|
| 111 |
"do_sample": false,
|
| 112 |
"early_stopping": false,
|