Instructions to use codesage/codesage-small-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use codesage/codesage-small-v2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import CodeSage model = CodeSage.from_pretrained("codesage/codesage-small-v2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download vocab.json from codesage/codesage-small-v2: direct link, hf CLI and curl.
- Browser
- Download file 777 kB
-
https://huggingface.co/codesage/codesage-small-v2/resolve/refs%2Fpr%2F3/vocab.json
- Command line
-
hf download hf://codesage/codesage-small-v2@refs/pr/3/vocab.json
-
curl -L -o vocab.json https://huggingface.co/codesage/codesage-small-v2/resolve/refs%2Fpr%2F3/vocab.json
777 kB
File too large to display, you can check the raw version instead.