Instructions to use hf-internal-testing/tiny-random-ctrl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-ctrl with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("hf-internal-testing/tiny-random-ctrl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from hf-internal-testing/tiny-random-ctrl: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-ctrl/resolve/refs%2Fpr%2F1/config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-ctrl@refs/pr/1/config.json
-
curl -L -o config.json https://huggingface.co/hf-internal-testing/tiny-random-ctrl/resolve/refs%2Fpr%2F1/config.json
514 Bytes
| { | |
| "attn_pdrop": 0.1, | |
| "dff": 8192, | |
| "embd_pdrop": 0.1, | |
| "initializer_range": 0.02, | |
| "layer_norm_epsilon": 1e-06, | |
| "model_type": "ctrl", | |
| "n_ctx": 512, | |
| "n_embd": 32, | |
| "n_head": 4, | |
| "n_layer": 5, | |
| "n_positions": 512, | |
| "pad_token_id": 98, | |
| "resid_pdrop": 0.1, | |
| "summary_activation": null, | |
| "summary_first_dropout": 0.1, | |
| "summary_proj_to_labels": true, | |
| "summary_type": "cls_index", | |
| "summary_use_proj": true, | |
| "transformers_version": "4.11.0.dev0", | |
| "use_cache": true, | |
| "vocab_size": 246534 | |
| } | |