Instructions to use Salesforce/codet5p-220m-bimodal with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Salesforce/codet5p-220m-bimodal with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Salesforce/codet5p-220m-bimodal", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Salesforce/codet5p-220m-bimodal", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
18563f0
1
Parent(s): d30877e
Update modeling_codet5p_bimodal.py
Browse files
modeling_codet5p_bimodal.py
CHANGED
|
@@ -12,7 +12,7 @@ from transformers import T5ForConditionalGeneration
|
|
| 12 |
from transformers.modeling_outputs import (
|
| 13 |
BaseModelOutput,
|
| 14 |
)
|
| 15 |
-
from configuration_codet5p_bimodal import CodeT5pBimodalConfig
|
| 16 |
|
| 17 |
|
| 18 |
class CodeT5pBimodalModel(T5ForConditionalGeneration):
|
|
|
|
| 12 |
from transformers.modeling_outputs import (
|
| 13 |
BaseModelOutput,
|
| 14 |
)
|
| 15 |
+
from .configuration_codet5p_bimodal import CodeT5pBimodalConfig
|
| 16 |
|
| 17 |
|
| 18 |
class CodeT5pBimodalModel(T5ForConditionalGeneration):
|