Instructions to use hf-tiny-model-private/tiny-random-NystromformerForQuestionAnswering 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-NystromformerForQuestionAnswering with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="hf-tiny-model-private/tiny-random-NystromformerForQuestionAnswering")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("hf-tiny-model-private/tiny-random-NystromformerForQuestionAnswering") model = AutoModelForQuestionAnswering.from_pretrained("hf-tiny-model-private/tiny-random-NystromformerForQuestionAnswering") - Notebooks
- Google Colab
- Kaggle
File size: 734 Bytes
5b87dad | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | {
"bos_token": "[CLS]",
"clean_up_tokenization_spaces": true,
"cls_token": "[CLS]",
"do_lower_case": true,
"eos_token": "[SEP]",
"keep_accents": false,
"mask_token": {
"__type": "AddedToken",
"content": "[MASK]",
"lstrip": true,
"normalized": false,
"rstrip": false,
"single_word": false
},
"model_max_length": 512,
"pad_token": "<pad>",
"remove_space": true,
"sep_token": "[SEP]",
"sp_model_kwargs": {},
"special_tokens_map_file": "C:\\Users\\prana/.cache\\huggingface\\transformers\\d225353999b4547543d7b66be9304faa64950fec7fb25e2d220dd84ee3f8b991.15ed5b79b197b4fcc5f3f80b2ee89a5a3ad708dbd076575cd22cffd9e1a56284",
"tokenizer_class": "AlbertTokenizer",
"unk_token": "<unk>"
}
|