Instructions to use codesage/codesage-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use codesage/codesage-small with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import CodeSage model = CodeSage.from_pretrained("codesage/codesage-small", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update modeling_codesage.py
Verified signatured4c8b2d
-
Update modeling_codesage.py
Verified signature4327400 -
Update modeling_codesage.py
Verified signature0278276 -
Update modeling_codesage.py
Verified signature4c7b3c8 -
Update modeling_codesage.py
Verified signature49bda0e -
Create modeling_codesage.py
Verified signature4a23933