Instructions to use hf-internal-testing/tiny-random-CTRLModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-CTRLModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-internal-testing/tiny-random-CTRLModel")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-CTRLModel") model = AutoModel.from_pretrained("hf-internal-testing/tiny-random-CTRLModel") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "temp/dummy/ctrl/CTRLModel", | |
| "architectures": [ | |
| "CTRLModel" | |
| ], | |
| "attn_pdrop": 0.1, | |
| "dff": 8192, | |
| "embd_pdrop": 0.1, | |
| "initializer_range": 0.02, | |
| "layer_norm_epsilon": 1e-06, | |
| "model_type": "ctrl", | |
| "n_embd": 32, | |
| "n_head": 4, | |
| "n_layer": 5, | |
| "n_positions": 512, | |
| "pad_token_id": 246533, | |
| "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, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.25.0.dev0", | |
| "use_cache": true, | |
| "vocab_size": 246534 | |
| } | |