Instructions to use SageLite/SageLite-s with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SageLite/SageLite-s with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import SageLite model = SageLite.from_pretrained("SageLite/SageLite-s", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download modules.json from SageLite/SageLite-s: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/SageLite/SageLite-s/resolve/main/modules.json
- Command line
-
hf download hf://SageLite/SageLite-s/modules.json
-
curl -L -o modules.json https://huggingface.co/SageLite/SageLite-s/resolve/main/modules.json
385 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.models.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.models.Pooling" | |
| }, | |
| { | |
| "idx": 2, | |
| "name": "2", | |
| "path": "2_Normalize", | |
| "type": "sentence_transformers.models.Normalize" | |
| } | |
| ] |