Instructions to use hf-tiny-model-private/tiny-random-TapasForQuestionAnswering 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-TapasForQuestionAnswering with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("table-question-answering", model="hf-tiny-model-private/tiny-random-TapasForQuestionAnswering")# Load model directly from transformers import AutoTokenizer, AutoModelForTableQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("hf-tiny-model-private/tiny-random-TapasForQuestionAnswering") model = AutoModelForTableQuestionAnswering.from_pretrained("hf-tiny-model-private/tiny-random-TapasForQuestionAnswering") - Notebooks
- Google Colab
- Kaggle
File size: 864 Bytes
5250b53 | 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 26 27 28 29 | {
"additional_special_tokens": [
"[EMPTY]"
],
"cell_trim_length": -1,
"clean_up_tokenization_spaces": true,
"cls_token": "[CLS]",
"do_basic_tokenize": true,
"do_lower_case": true,
"drop_rows_to_fit": false,
"empty_token": "[EMPTY]",
"mask_token": "[MASK]",
"max_column_id": null,
"max_question_length": null,
"max_row_id": null,
"min_question_length": null,
"model_max_length": 512,
"never_split": null,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"special_tokens_map_file": "/home/runner/.cache/huggingface/hub/models--google--tapas-base-finetuned-sqa/snapshots/81916d20eef75766aeae71b9487fd615017b0413/special_tokens_map.json",
"strip_accents": null,
"strip_column_names": false,
"tokenize_chinese_chars": true,
"tokenizer_class": "TapasTokenizer",
"unk_token": "[UNK]",
"update_answer_coordinates": false
}
|