Instructions to use hf-tiny-model-private/tiny-random-FNetForQuestionAnswering with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-tiny-model-private/tiny-random-FNetForQuestionAnswering with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="hf-tiny-model-private/tiny-random-FNetForQuestionAnswering")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("hf-tiny-model-private/tiny-random-FNetForQuestionAnswering") model = AutoModelForQuestionAnswering.from_pretrained("hf-tiny-model-private/tiny-random-FNetForQuestionAnswering", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from hf-tiny-model-private/tiny-random-FNetForQuestionAnswering: direct link, hf CLI and curl.
- Browser
- Download file 553 Bytes
-
https://huggingface.co/hf-tiny-model-private/tiny-random-FNetForQuestionAnswering/resolve/f9854fd76fbc4f522c51d3099bbf2ea9475148e6/config.json
- Command line
-
hf download hf://hf-tiny-model-private/tiny-random-FNetForQuestionAnswering@f9854fd76fbc4f522c51d3099bbf2ea9475148e6/config.json
-
curl -L -o config.json https://huggingface.co/hf-tiny-model-private/tiny-random-FNetForQuestionAnswering/resolve/f9854fd76fbc4f522c51d3099bbf2ea9475148e6/config.json
553 Bytes
| { | |
| "architectures": [ | |
| "FNetForQuestionAnswering" | |
| ], | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 32, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 37, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "fnet", | |
| "num_hidden_layers": 5, | |
| "pad_token_id": 3, | |
| "torch_dtype": "float32", | |
| "tpu_short_seq_length": 7, | |
| "transformers_version": "4.28.0.dev0", | |
| "type_vocab_size": 16, | |
| "use_tpu_fourier_optimizations": false, | |
| "vocab_size": 32000 | |
| } | |