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
File size: 514 Bytes
362f631 663462a 362f631 663462a 362f631 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | {
"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
}
|