Instructions to use SageLite/SageLite-l with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SageLite/SageLite-l with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import SageLite model = SageLite.from_pretrained("SageLite/SageLite-l", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from SageLite/SageLite-l: direct link, hf CLI and curl.
- Browser
- Download file 861 Bytes
-
https://huggingface.co/SageLite/SageLite-l/resolve/main/config.json
- Command line
-
hf download hf://SageLite/SageLite-l/config.json
-
curl -L -o config.json https://huggingface.co/SageLite/SageLite-l/resolve/main/config.json
861 Bytes
| { | |
| "_name_or_path": "SageLite/SageLite-l", | |
| "architectures": [ | |
| "SageLite" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "config_sagelite.SageLiteConfig", | |
| "AutoTokenizer": "tokenization_sagelite.SageLiteTokenizer", | |
| "AutoModel": "modeling_sagelite.SageLiteModel", | |
| "AutoModelForMaskedLM": "modeling_sagelite.SageLiteForMaskedLM", | |
| "AutoModelForSequenceClassification": "modeling_sagelite.SageLiteForSequenceClassification" | |
| }, | |
| "activation_function": "gelu_new", | |
| "attention_dropout_prob": 0.1, | |
| "embedding_dropout_prob": 0.1, | |
| "initializer_range": 0.02, | |
| "layer_norm_epsilon": 1e-05, | |
| "hidden_size": 1536, | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 24, | |
| "intermediate_size": 6144, | |
| "max_position_embeddings": 2048, | |
| "residual_dropout_prob": 0.1, | |
| "vocab_size": 100318 | |
| } | |