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
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.9aa4c19
-
Update README.md
Verified signaturef20cc91 -
Update README.md
Verified signature6ea848d -
Update README.md
Verified signature5712788 -
Update README.md
Verified signature16324a7 -
Upload tokenizer_config.json
Verified signature3201e04 -
Upload tokenizer_config.json
Verified signaturea4a3da0 -
Delete tokenizer_config.json
Verified signature9eb00ca -
Upload tokenization_codesage.py
Verified signature886041e -
enable add_eos_token
Verified signatured8ef66d
-
Update modeling_codesage.py
Verified signatured4c8b2d
-
Upload 9 files
Verified signature542998f -
Upload 9 files
Verified signaturedfe5bd3 -
Update modeling_codesage.py
Verified signature4327400 -
Upload 9 files
Verified signature2f4449c -
Update modeling_codesage.py
Verified signature0278276 -
Update config.json
Verified signature6929fa4 -
Update modeling_codesage.py
Verified signature4c7b3c8 -
Update config.json
Verified signature189ff33 -
Update config_codesage.py
Verified signature775a3c5 -
Update config_codesage.py
Verified signaturef984418 -
Update README.md
Verified signatureadc63c0 -
Update modeling_codesage.py
Verified signature49bda0e -
Upload 7 files
Verified signature68004a1 -
Create config.json
Verified signature40e6100 -
Update README.md
Verified signature007f4a5 -
Create modeling_codesage.py
Verified signature4a23933 -
Create config_codesage.py
Verified signature9e71a7f -
Update README.md
Verified signature256829f -
initial commit
Verified signature60bb0ab