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:
# pip install -U transformers accelerate # Load model directly from transformers import CodeSage model = CodeSage.from_pretrained("codesage/codesage-large", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download sentence_bert_config.json from codesage/codesage-large: direct link, hf CLI and curl.
- Browser
- Download file 54 Bytes
-
https://huggingface.co/codesage/codesage-large/resolve/main/sentence_bert_config.json
- Command line
-
hf download hf://codesage/codesage-large/sentence_bert_config.json
-
curl -L -o sentence_bert_config.json https://huggingface.co/codesage/codesage-large/resolve/main/sentence_bert_config.json
54 Bytes
| { | |
| "max_seq_length": 1024, | |
| "do_lower_case": false | |
| } |