Instructions to use hf-internal-testing/tiny-random-FNetForNextSentencePrediction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-FNetForNextSentencePrediction with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForNextSentencePrediction tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-FNetForNextSentencePrediction") model = AutoModelForNextSentencePrediction.from_pretrained("hf-internal-testing/tiny-random-FNetForNextSentencePrediction", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from hf-internal-testing/tiny-random-FNetForNextSentencePrediction: direct link, hf CLI and curl.
- Browser
- Download file 525 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-FNetForNextSentencePrediction/resolve/9b11a763f599a95c3dff8e4255cd952a04101a65/tokenizer_config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-FNetForNextSentencePrediction@9b11a763f599a95c3dff8e4255cd952a04101a65/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/hf-internal-testing/tiny-random-FNetForNextSentencePrediction/resolve/9b11a763f599a95c3dff8e4255cd952a04101a65/tokenizer_config.json
525 Bytes
| { | |
| "cls_token": "[CLS]", | |
| "do_lower_case": false, | |
| "keep_accents": true, | |
| "mask_token": { | |
| "__type": "AddedToken", | |
| "content": "[MASK]", | |
| "lstrip": true, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "model_max_length": 512, | |
| "name_or_path": "google/fnet-base", | |
| "pad_token": "<pad>", | |
| "remove_space": true, | |
| "sep_token": "[SEP]", | |
| "sp_model_kwargs": {}, | |
| "special_tokens_map_file": "./special_tokens_map.json", | |
| "tokenizer_class": "FNetTokenizer", | |
| "unk_token": "<unk>" | |
| } | |