Instructions to use hf-internal-testing/tiny-random-StableLmModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-StableLmModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-internal-testing/tiny-random-StableLmModel")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-StableLmModel") model = AutoModel.from_pretrained("hf-internal-testing/tiny-random-StableLmModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from hf-internal-testing/tiny-random-StableLmModel: direct link, hf CLI and curl.
- Browser
- Download file 780 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-StableLmModel/resolve/refs%2Fpr%2F10/config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-StableLmModel@refs/pr/10/config.json
-
curl -L -o config.json https://huggingface.co/hf-internal-testing/tiny-random-StableLmModel/resolve/refs%2Fpr%2F10/config.json
780 Bytes
| { | |
| "architectures": [ | |
| "StableLmModel" | |
| ], | |
| "attention_dropout": 0.0, | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "eos_token_id": 0, | |
| "hidden_act": "gelu", | |
| "hidden_dropout": 0.0, | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 64, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 37, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 512, | |
| "model_type": "stablelm", | |
| "num_attention_heads": 4, | |
| "num_hidden_layers": 2, | |
| "num_key_value_heads": 4, | |
| "pad_token_id": 0, | |
| "partial_rotary_factor": 0.25, | |
| "rope_scaling": null, | |
| "rope_theta": 10000, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.39.0.dev0", | |
| "type_vocab_size": 16, | |
| "use_cache": true, | |
| "use_qkv_bias": false, | |
| "vocab_size": 1024 | |
| } | |