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
Config.js and modeling_codet5p.py do not match
#4
by Anonymous2023 - opened
In config.js "decoder_start_token_id": 50256 is under "decoder"
but in modeling_codet5p.py line 912: labels, self.config.pad_token_id, self.config.decoder_start_token_id
they are not under "decoder"