Instructions to use codesage/codesage-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use codesage/codesage-large with Transformers:
# Load model directly from transformers import CodeSage model = CodeSage.from_pretrained("codesage/codesage-large", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
About input token number
#6
by fwj - opened
Hi! I would like to ask what is the maximum number of input token of the codesage model? Thanks
According to the model config, it's 2048 tokens
https://huggingface.co/codesage/codesage-large/blob/main/config.json#L22