Instructions to use hf-internal-testing/tiny-random-FunnelForMultipleChoice with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-FunnelForMultipleChoice with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultipleChoice tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-FunnelForMultipleChoice") model = AutoModelForMultipleChoice.from_pretrained("hf-internal-testing/tiny-random-FunnelForMultipleChoice", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from hf-internal-testing/tiny-random-FunnelForMultipleChoice: direct link, hf CLI and curl.
- Browser
- Download file 806 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-FunnelForMultipleChoice/resolve/c2aff8053d1552d2e7e869a19bd35d37a561c764/config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-FunnelForMultipleChoice@c2aff8053d1552d2e7e869a19bd35d37a561c764/config.json
-
curl -L -o config.json https://huggingface.co/hf-internal-testing/tiny-random-FunnelForMultipleChoice/resolve/c2aff8053d1552d2e7e869a19bd35d37a561c764/config.json
806 Bytes
| { | |
| "_name_or_path": "temp/dummy/funnel/FunnelForMultipleChoice", | |
| "activation_dropout": 0.0, | |
| "architectures": [ | |
| "FunnelForMultipleChoice" | |
| ], | |
| "attention_dropout": 0.1, | |
| "attention_type": "relative_shift", | |
| "block_repeats": [ | |
| 1, | |
| 1, | |
| 1 | |
| ], | |
| "block_sizes": [ | |
| 1, | |
| 1, | |
| 2 | |
| ], | |
| "d_head": 8, | |
| "d_inner": 37, | |
| "d_model": 32, | |
| "hidden_act": "gelu_new", | |
| "hidden_dropout": 0.1, | |
| "initializer_range": 0.1, | |
| "initializer_std": 0.02, | |
| "layer_norm_eps": 1e-09, | |
| "max_position_embeddings": 512, | |
| "model_type": "funnel", | |
| "n_head": 4, | |
| "num_decoder_layers": 1, | |
| "pool_q_only": true, | |
| "pooling_type": "mean", | |
| "separate_cls": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.25.0.dev0", | |
| "truncate_seq": true, | |
| "type_vocab_size": 3, | |
| "vocab_size": 1126 | |
| } | |